eth4
当我使用时,接口名称后面的这些数字 2043、2091、2276、2324 是什么(如本例中所示) ifconfig -a
?
eth4 Link encap:Ethernet HWaddr 00:0F:53:27:81:00
inet6 addr: fe80::20f:53ff:fe27:8100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57475580 errors:0 dropped:0 overruns:0 frame:0
TX packets:19428989 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8432560535 (7.8 GiB) TX bytes:3992007736 (3.7 GiB)
Interrupt:32
eth4.2043 Link encap:Ethernet HWaddr 00:0F:53:27:81:00
inet addr:10.253.33.167 Bcast:10.253.33.175 Mask:255.255.255.240
inet6 addr: fe80::20f:53ff:fe27:8100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3275 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:137550 (134.3 KiB) TX bytes:1698 (1.6 KiB)
eth4.2091 Link encap:Ethernet HWaddr 00:0F:53:27:81:00
inet addr:208.92.146.44 Bcast:208.92.146.47 Mask:255.255.255.248
inet6 addr: fe80::20f:53ff:fe27:8100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:347 errors:0 dropped:0 overruns:0 frame:0
TX packets:353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14634 (14.2 KiB) TX bytes:16222 (15.8 KiB)
eth4.2276 Link encap:Ethernet HWaddr 00:0F:53:27:81:00
inet addr:10.55.37.64 Bcast:10.55.37.255 Mask:255.255.255.0
inet6 addr: fe80::20f:53ff:fe27:8100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6033 errors:0 dropped:0 overruns:0 frame:0
TX packets:632 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:367624 (359.0 KiB) TX bytes:30792 (30.0 KiB)
eth4.2324 Link encap:Ethernet HWaddr 00:0F:53:27:81:00
inet addr:10.253.64.70 Bcast:10.253.64.79 Mask:255.255.255.240
inet6 addr: fe80::20f:53ff:fe27:8100/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3312 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:139104 (135.8 KiB) TX bytes:3816 (3.7 KiB)
提前谢谢,我在任何地方都找不到这些信息。
答案1
它们是子接口。这些是“逻辑”接口,因此是物理接口上的接口。如您所见,点的左侧是eth4
,右侧是子接口 ID。单个物理网卡上可能有许多子接口。
每个子接口可能有自己的 IP 地址、网络掩码、网关和其他参数。
通常,子接口 ID 与向该子接口发送数据包的标记 VLAN 相匹配,但这不是强制性的,只是一种惯例。