分页: 1 / 1

多网卡上网

发表于 : 2012-08-29 18:10
youqika
环境:vbox + debian(三网卡:内网,NAT和桥接(这个口需要认证才能上))
开始2个口能上,后来加了桥接网口了就不行了,禁用掉又可以,linux如何决定使用哪个网口呢?
PS: 9月了,wps快了吧。

Re: 多网卡上网

发表于 : 2012-08-29 18:16
onlylove
默认路由,看下路由表

Re: 多网卡上网

发表于 : 2012-08-30 16:30
youqika

代码: 全选

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.2.0        *               255.255.255.0   U     0      0        0 eth0
10.10.28.0      *               255.255.255.0   U     0      0        0 eth2
192.168.56.0    *               255.255.255.0   U     0      0        0 eth1
default         10.10.28.232    0.0.0.0         UG    0      0        0 eth2
default         10.0.2.2        0.0.0.0         UG    0      0        0 eth0
NAT和桥接网口都有自己的默认路由 :em20
问题还是回到选择使用哪个网口