【发布时间】:2018-04-11 17:30:13
【问题描述】:
什么是终端命令或如何从 IP 地址中找到网络接口名称(例如 en0、en1、en3、en8 等)。 我有一个 IP 地址,需要找到该 IP 分配给 macOS 中的哪个网络接口。
【问题讨论】:
-
在 macOS 中,但您标记了 Ubuntu 和 Linux。它是哪一个?我猜
ifconfig可能会给你一些结果? -
是的.. ifconfig 会显示,但也会显示其他内容。但我只想要接口名称 en1,en2 例如。 Xxxxx 10.20.30.40 结果应该是 en1 或 en2
标签: macos shell terminal command-line-interface