linux系统网卡做完bond后,执行ifconfig可以看到物理网卡和bond的MAC都显示一样。
Redhat6.4、6.8及Redhat7.0版本可以在/sys/class/net/ethX/bonding_slave/perm_hwaddr中看到物理网卡原MAC,但是Redhat5版本的怎么查看做完bond后物理网卡的原MAC?Redhat5.5系统/sys/class/net/ethX下没bonding_slav/perm_hwaddr
[root@jb-yj-csdb ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@jb-yj-csdb ~]#
[root@jb-yj-csdb ~]#
[root@jb-yj-csdb ~]# ifconfig
bond0 Link encap:Ethernet HWaddr 00:E0:ED:33:2C:A0
inet addr:10.118.95.8 Bcast:10.118.95.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:edff:fe33:2ca0/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:4956637497 errors:0 dropped:0 overruns:0 frame:0
TX packets:5107341662 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1848274173384 (1.6 TiB) TX bytes:2109585613558 (1.9 TiB)
eth0 Link encap:Ethernet HWaddr 00:E0:ED:33:2C:A0
inet6 addr: fe80::2e0:edff:fe33:2ca0/64 Scope:Link
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:582586602 errors:0 dropped:0 overruns:0 frame:0
TX packets:277449669 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:230509203320 (214.6 GiB) TX bytes:121126512392 (112.8 GiB)
Memory:dfc40000-dfc5ffff
eth3 Link encap:Ethernet HWaddr 00:E0:ED:33:2C:A0
inet6 addr: fe80::2e0:edff:fe33:2ca0/64 Scope:Link
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:4374050896 errors:0 dropped:0 overruns:0 frame:0
TX packets:4829891994 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1617764970124 (1.4 TiB) TX bytes:1988459102280 (1.8 TiB)
Memory:fbe40000-fbe5ffff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128162273 errors:0 dropped:0 overruns:0 frame:0
TX packets:128162273 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27599635962 (25.7 GiB) TX bytes:27599635962 (25.7 GiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:E6:70:31
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@jb-yj-csdb ~]# more /sys/class/net/eth0/bonding_slave/perm_hwaddr
00:e0:ed:33:2c:a0
[root@jb-yj-csdb ~]# more /sys/class/net/eth3/bonding_slave/perm_hwaddr
00:e0:ed:33:2c:a4
[root@jb-yj-csdb ~]#收起
今天的文章linux网卡的mac地址怎么看_linux 查看网卡以及开启网卡分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/86320.html