1)ifconfig命令
输出如下:
[root@topgun /home/cly]
# ifconfig
eth0: flags=4163 mtu 1500
inet 192.168.128.132 netmask 255.255.255.0 broadcast 192.168.128.255
inet6 fe80::20c:29ff:fe45:63ba prefixlen 64 scopeid 0x20
ether 00:0c:29:45:63:ba txqueuelen 1000 (Ethernet)
RX packets 1936 bytes 2440516 (2.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1207 bytes 94802 (92.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19 base 0x2024
lo: flags=73 mtu 16436
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 0 (Local Loopback)
RX packets 12 bytes 744 (744.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 744 (744.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
该命令属于包:
[root@topgun /home/cly]
# pacman -Qo ifconfig
/sbin/ifconfig 属于 net-tools 1.60.20120804git-2
2)ip address命令
输出如下:
[root@topgun /home/cly]
# ip address
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:45:63:ba brd ff:ff:ff:ff:ff:ff
inet 192.168.128.132/24 brd 192.168.128.255 scope global eth0
inet6 fe80::20c:29ff:fe45:63ba/64 scope link
valid_lft forever preferred_lft forever
该命令属于包:
[root@topgun /home/cly]
# pacman -Qo ip
/usr/sbin/ip 属于 iproute2 3.5.1-1
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/230766.html原文链接:https://javaforall.cn