FreeBSD查看ip地址命令
第1步:使用ssh或是本地成功登錄到freeBSD系統(tǒng)。
第2步:成功登錄后,在命令行中執(zhí)行“ifconfig -a”并回車(chē)確定。
第3步:如下這樣返回一大堆字母和數(shù)字,大家在這些字母和數(shù)字中即可看到自己看到的ip地址、MAC地址等相關(guān)信息。
$ ifconfig -a
em0: flags=8843
options=9b
ether 00:0c:29:e2:ce:a2
inet 192.168.1.195 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::20c:29ff:fee2:cea2%em0 prefixlen 64 scopeid 0x2
nd6 options=29
media: Ethernet autoselect (1000baseT )
status: active
plip0: flags=8810
nd6 options=29
lo0: flags=8049
options=600003
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
nd6 options=21