ifconfig的使用
查看网卡信息:ifconfig命令及详细介绍
[root@]# ifconfig
ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 103.109.61.70 netmask 255.255.255.0 broadcast 103.109.61.255
inet6 fe80::3877:cbff:fe3d:2f43 prefixlen 64 scopeid 0x20<link>
ether 3a:77:cb:3d:2f:43 txqueuelen 1000 (Ethernet)
RX packets 579216 bytes 85631220 (81.6 MiB) //接收数据包
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 427506 bytes 100034382 (95.4 MiB) //发送数据包
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
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
1、ens18 以太网接口(virbr0、virbr-nic类似)
ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ens18 :网卡名称
UP :表示“接口已启用”
BROADCAST:表示“主机支持广播”
RUNNING :表示“接口在工作中”
MULTICAST :表示“主机支持多播”
MTU 1500 :(最大传输单元):1500字节