linux 查看有几块网卡
关键字: linux 查看有几块网卡
[
引用
ifconfig -a
引用
cat /proc/net/dev
[root@srmdr:/root]#ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:0A:62:40:80
inet addr:10.150.4.103 Bcast:10.150.7.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:220807670 errors:0 dropped:0 overruns:0 frame:0
TX packets:61149521 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
eth0 Link encap:Ethernet HWaddr 00:11:0A:62:40:80
inet addr:10.150.4.103 Bcast:10.150.7.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:220807670 errors:0 dropped:0 overruns:0 frame:0
TX packets:61149521 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000