双网卡配置问题

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
woody_cheng
帖子: 1
注册时间: 2008-02-06 22:52

双网卡配置问题

#1

帖子 woody_cheng » 2008-11-19 18:19

有台测试机有两块网卡,地址分别为:
eth0
192.168.0.150
192.168.0.250
255.255.255.0

eth1
192.168.1.117
192.168.1.1
255.255.255.0

由于公司对访问外网做了限制,走192.168.1.1网关可以访问外网,其他的不行。

我的机子的IP是:
192.168.70.159
192.168.70.254
255.255.255.0

我能够ping通192.168.0.150 而不能ping通192.168.1.117。
现在我如果把测试机上的两块网卡都激活,要么只能连通外网,要么只能连通内网,请问我需要怎么配置才能让测试机能同时访问外网和内网?

在测试机上用route -n看到的信息如下:

代码: 全选

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.0.250   0.0.0.0         UG    100    0        0 eth0
回复