表題の通り。
■ 環境
- Mac OSX El Capitan
■ ifconfig
普段は`ifconfig`で確認している。
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 60:f8:1d:d1:7b:c0
inet6 xxxx::xxxx:xxxx:xxxx:xxxx%en0 prefixlen 64 scopeid 0x4
inet 192.168.33.23 netmask 0xffffff00 broadcast 192.168.33.255
nd6 options=1
media: autoselect
status: active
:
$
“192.168.33.23“であることがわかる。
もっと簡単にわかる方法はないだろうか。
以上。