靜態路由重分發進入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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章