时间:2023-06-02 16:16:41 来源: 人气:
FreeBSD查看ip地址命令, 第1步:使用ssh或是本地成功登录到freeBSD系统。, 第2步:成功登录后,在命令行中执行“ifconfig -a”并回车确定。, 第3步:如下这样返回一大堆字母和数字,大家在这些字母和数字中即可看到自己看到的ip地址、MAC地址等相关信息。, $ 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, $, 注:如上所示作者的FreeBSD系统中返回的值,大家可看到作者的FreeBSD IP地址为192.168.1.195,MAC地址为00:0c:29:e2:ce:a2,