“Linux ifconfig”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) (建立内容为“1”的新页面) |
Jihongchang(讨论 | 贡献) |
||
(未显示同一用户的2个中间版本) | |||
第1行: | 第1行: | ||
− | 1 | + | <syntaxhighlight lang="shell-session"> |
+ | [root@iZ8vbcjkeqbrdmmbt23vboZ ~]# ifconfig | ||
+ | docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | ||
+ | inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 | ||
+ | ether 02:42:19:66:51:43 txqueuelen 0 (Ethernet) | ||
+ | RX packets 2000353 bytes 1752226525 (1.6 GiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 2146262 bytes 1030199462 (982.4 MiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | |||
+ | eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | ||
+ | inet 172.26.92.162 netmask 255.255.240.0 broadcast 172.26.95.255 | ||
+ | ether 00:16:3e:14:2d:ac txqueuelen 1000 (Ethernet) | ||
+ | RX packets 18249823 bytes 5534789430 (5.1 GiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 17177583 bytes 14146937215 (13.1 GiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | |||
+ | lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 | ||
+ | inet 127.0.0.1 netmask 255.0.0.0 | ||
+ | loop txqueuelen 1000 (Local Loopback) | ||
+ | RX packets 255 bytes 88531 (86.4 KiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 255 bytes 88531 (86.4 KiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | |||
+ | veth796eacc: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | ||
+ | ether 2a:af:ea:37:8e:cf txqueuelen 0 (Ethernet) | ||
+ | RX packets 38018930 bytes 111407699178 (103.7 GiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 37747658 bytes 7068885542 (6.5 GiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | |||
+ | vethb9d0457: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | ||
+ | ether fe:ab:a2:38:9c:23 txqueuelen 0 (Ethernet) | ||
+ | RX packets 5919234 bytes 1289361311 (1.2 GiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 5970363 bytes 14344223447 (13.3 GiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | </syntaxhighlight> |
2023年2月11日 (六) 10:19的最新版本
[root@iZ8vbcjkeqbrdmmbt23vboZ ~]# ifconfig
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:19:66:51:43 txqueuelen 0 (Ethernet)
RX packets 2000353 bytes 1752226525 (1.6 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2146262 bytes 1030199462 (982.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.26.92.162 netmask 255.255.240.0 broadcast 172.26.95.255
ether 00:16:3e:14:2d:ac txqueuelen 1000 (Ethernet)
RX packets 18249823 bytes 5534789430 (5.1 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17177583 bytes 14146937215 (13.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 255 bytes 88531 (86.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 255 bytes 88531 (86.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth796eacc: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 2a:af:ea:37:8e:cf txqueuelen 0 (Ethernet)
RX packets 38018930 bytes 111407699178 (103.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37747658 bytes 7068885542 (6.5 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethb9d0457: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether fe:ab:a2:38:9c:23 txqueuelen 0 (Ethernet)
RX packets 5919234 bytes 1289361311 (1.2 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5970363 bytes 14344223447 (13.3 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0