|
一个网卡ip为192.168.0.127,网关192.168.0.254,可以上公网
另外一个ip伪219.223.195.115网关219.223.195.1, 掩码255.255.255.128,为教育网,校内网络还有219.223.194.0-219.223.222.0(或更大一点),单网卡情况下都可以访问
存在的问题:现在默认网关为192.168.0.254,可以正常访问公网,但是无法访问与219.223.195.115非同一个子网的网络,也无法被这些网络访问。例如我在宿舍的ip 219.223.204.201就无法访问。。。
防火墙规则已经清空
ip_forward打开了
下面是我的路由表:10.11.12.1是我的pptpd自动产生的,带gateway的219.223.195.0是我自己添加的(不填加时问题相同,加了后也没改变)
[root@localhost root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.11.12.1 * 255.255.255.255 UH 0 0 0 ppp0
219.223.195.0 219.223.195.1 255.255.255.128 UG 0 0 0 eth1
219.223.195.0 * 255.255.255.128 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.254 0.0.0.0 UG 0 0 0 eth0
谢谢! |
|