|
一、拓朴图:
见附图
二、路由表:
NAT Server:
[root@Routed-Server root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
219.x.x.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 219.x.x.1 0.0.0.0 UG 0 0 0 ppp0
PPPoE Server
[root@CentOS ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.2.11 0.0.0.0 UG 0 0 0 eth0
PPPoE进程未启动路由表,
[root@CentOS ~]# pppoe-server -I eth1 -L 192.168.3.2 -R 192.168.3.192
# 启动PPPoE 服务,eth1口本地地址为,远程地址由192.168.3.192开始分配
启动后路由表如下:
[root@CentOS ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.192 * 255.255.255.255 U 0 0 0 ppp0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.2.11 0.0.0.0 UG 0 0 0 eth0
三、IP转发和防火墙
在NAT Server和PPPoE Server中
net.ipv4.ip_forward = 1
防火墙中input 和output策略均为accept
三、故障现像
说明:
在PPPoE Server的eth0接口地址、网关、和DNS由NAT Server 动态分配,并能正常ping通外网;
在PPPoE Server上能正常ping通PPPoE进程的本地接口地址(eth1不指定地址),和建立ppp连接后的远程PPPoE Client的IP地址;
在NAT Server 上不能ping通PPPoE 进程的本地接口地址192.168.3.2,在NAT Server本机上添加静态路由,
route add -net 192.168.3.0 netmask 255.255.255.0 dev eth1
后可以ping 通192.168.3.2,但不能ping 通192.168.3.192,提示为
"Destination host unreachable"
在PPPoE Clietn上能正常ping通PPPoE进程的本地接口地址192.168.3.2(eth1不指定地址),和PPPoE Server的eth0地址192.168.2.2,
但是无法ping 通局域网网关即NAT Server的eth1接口192.168.2.11,提示为 Request time out !;
******************************************************
望精通网络路由的DX们指点,不胜感激!! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|