多网卡上网

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

多网卡上网

#1

帖子 youqika »

环境:vbox + debian(三网卡:内网,NAT和桥接(这个口需要认证才能上))
开始2个口能上,后来加了桥接网口了就不行了,禁用掉又可以,linux如何决定使用哪个网口呢?
PS: 9月了,wps快了吧。
UCHIHA
运气是为白痴准备的
onlylove
论坛版主
帖子: 5371
注册时间: 2007-01-14 16:23

Re: 多网卡上网

#2

帖子 onlylove »

默认路由,看下路由表
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

Re: 多网卡上网

#3

帖子 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
问题还是回到选择使用哪个网口
UCHIHA
运气是为白痴准备的
回复