当前位置: 技术问答>linux和unix
多块网卡,有一个不能用,怎么让它们都可用?
来源: 互联网 发布时间:2015-01-19
本文导语: 我的机子上有3块网卡,重设ip后,有一个网卡好用,另一个起来了(up),但不可用(没有running),在外部也ping 不通,以下是ifconfig的结果(eth2不可用,eth0可用 [root@cngas root]# ifconfig eth0 Link encap:Ethernet HWad...
我的机子上有3块网卡,重设ip后,有一个网卡好用,另一个起来了(up),但不可用(没有running),在外部也ping 不通,以下是ifconfig的结果(eth2不可用,eth0可用
[root@cngas root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:D0:B7:9C:05:5B
inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:67736 errors:10 dropped:0 overruns:0 frame:10
TX packets:1772 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
RX bytes:29341215 (27.9 Mb) TX bytes:231271 (225.8 Kb)
Interrupt:10 Base address:0xc000 Memory:e5300000-e5300038
eth1 Link encap:Ethernet HWaddr 00:D0:B7:9C:04:84
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:34219 dropped:0 overruns:0 carrier:34219
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:17790669 (16.9 Mb)
Interrupt:11 Base address:0xc400 Memory:e5302000-e5302038
eth2 Link encap:Ethernet HWaddr 00:D0:B7:9C:07:78
inet addr:166.111.3.7 Bcast:166.111.3.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:1471 dropped:0 overruns:0 carrier:1471
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:61908 (60.4 Kb)
Interrupt:12 Base address:0xc800 Memory:e5301000-e5301038
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3519 errors:0 dropped:0 overruns:0 frame:0
TX packets:3519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:534533 (522.0 Kb) TX bytes:534533 (522.0 Kb)
[root@cngas root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:D0:B7:9C:05:5B
inet addr:10.10.10.3 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:67736 errors:10 dropped:0 overruns:0 frame:10
TX packets:1772 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
RX bytes:29341215 (27.9 Mb) TX bytes:231271 (225.8 Kb)
Interrupt:10 Base address:0xc000 Memory:e5300000-e5300038
eth1 Link encap:Ethernet HWaddr 00:D0:B7:9C:04:84
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:34219 dropped:0 overruns:0 carrier:34219
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:17790669 (16.9 Mb)
Interrupt:11 Base address:0xc400 Memory:e5302000-e5302038
eth2 Link encap:Ethernet HWaddr 00:D0:B7:9C:07:78
inet addr:166.111.3.7 Bcast:166.111.3.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:1471 dropped:0 overruns:0 carrier:1471
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:61908 (60.4 Kb)
Interrupt:12 Base address:0xc800 Memory:e5301000-e5301038
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3519 errors:0 dropped:0 overruns:0 frame:0
TX packets:3519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:534533 (522.0 Kb) TX bytes:534533 (522.0 Kb)
|
使用route设定路由