静态路由重分发进入ospf的深入学习




路由器与三层交换机已形成ospf邻居关系,
现在要将与此台路由器ipsec vpn对接的远程场点路由器(外口:218.61.194.99)下的网段(172.17.99.0/24)宣告并重新分布到ospf中去,
以便三层交换机可以动态学习到远程场点的路由条目


本地路由器配置如下:

interface GigabitEthernet0/1
description IPSecVPN
ip address 61.161.193.17x 255.255.255.240  [出口网关地址为61.161.193.177]
duplex auto
speed auto
crypto map map1



router ospf 100
redistribute static subnets  [重新分布静态路由]


ip route 0.0.0.0 0.0.0.0 61.161.193.177 [默认路由]

ip route 172.17.99.0 255.255.255.0 218.61.194.99  [注意:因没有到218.61.194.99的明确路由条路,所以ospf不能重分发此静态路由]
ip route 218.61.194.99 255.255.255.255 61.161.193.177 [增加一条至218.61.194.99的路由条目,使配置的上一条静态路由器起作用]

或者

ip route 172.17.99.0 255.255.255.0 61.161.193.177 [将172.17.99.0/24网段直接指向internet网关出口]



远端路由器配置如下:

interface FastEthernet0/0
description isp
ip address 218.61.128.9x 255.255.255.248
ip nat outside
ip virtual-reassembly
ip route-cache flow
duplex auto
speed auto
crypto map map1

ip route 0.0.0.0 0.0.0.0 218.61.128.97



猜你喜欢

转载自cash.iteye.com/blog/1508447
今日推荐