、OSPF高级应用

                                                                                                   

         需求描述                         

                        公司路由器较多,配置静态路由比较繁琐且容易出错,故使用OSPF协议连通网络

                        杭州分公司为Area 3 ,没有和Area 0 连接,需要使用虚链路,并且为减小路由表,设置Area 3 为完全末梢

                        沈阳销售部使用默认路由 沈阳分公司为Area 1 并且在R5需要发布静态路由,可以设置Area 1为NSSA区域

                        查看IP规划,发现引入的静态路由和R1所带网段可以使用路由汇总,以减少路由条目

      实验环境 

                  R1 、R2为总公司路由器 R3为上海分公司路由器  R4为杭州分公司路由器 R5为沈阳分公司路由器 R6为沈阳销售部

                 

 

 

 

R1
conf t 
interesting f0/0
ip add 192.168.12.1 255.255.255.0
no sh
exit
int f1/0
ip add 192.168.15.1 255.255.255.0
no sh
exit

int lo 0
ip add 192.168.0.1 255.255.255.0
exit

int lo 1
ip add 192.168.1.1 255.255.255.0
exit

router ospf 1
network 192.168.12.0 0.0.0.255 area 0
network 192.168.15.0 0.0.0.255 area 1
network 192.168.0.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
area 1 nssa
summary-address 192.168.0.0 255.255.0.0 ospf进程下
路由汇总

R2
   conf t
int f0/0
ip add 192.168.12.2 255.255.255.0
no sh
exit
int f1/0
ip add 192.168.23.2 255.255.255.0
no sh
exit
int lo 0
ip add 192.168.2.2 255.255.255.0
exit

router ospf 1
network  192.168.12.0 0.0.0.255 area 0
network  192.168.23.0 0.0.0.255 area 2
network  192.168.2.2 0.0.0.255 area 2
area 2 virtual-link 192.168.3.3

R3
conf t
int f0/0
ip add 192.168.23.3 255.255.255.0
no sh 
exit
int f1/0
ip add 192.168.34.3 255.255.255.0
no sh
exit
int lo 0
ip add 192.168.3.3 255.255.255.0
exit
router ospf 1
network 192.168.23.0 0.0.0.255 area 2
network  192.168.34.0 0.0.0.255 area 3
network  192.168.3.3 0.0.0.255 area 2
area 3 stub
area 2 virtual-link 192.168.2.2


R4
conf t
int f0/0
ip add 192.168.34.4 255.255.255.0
no sh
exit
int lo 0
ip add 192.168.4.4 255.255.255.0

router ospf 1
network 192.168.34.0 0.0.0.255 area 3
area 3 stub

R5 
conf t
int f0/0
ip add 192.168.15.5 255.255.255.0
no sh
exit
int f1/0
ip add 192.168.56.5 255.255.255.0
no sh
exit
int lo 0
ip add 192.168.5.5 255.255.255.0
exit
router ospf 1
network 192.168.15.0 0.0.0.255 area 1
net work 192.168.5.5 0.0.0.0 area 1
area 1 nssa
exit
router rip
network 192.168.56.0 
exit
ip route 192.168.8.0 255.255.255.0 192.168.56.6
ip route 192.168.9.0 255.255.255.0 192.168.56.6
ip route 192.168.10.0 255.255.255.0 192.168.56.6
ip route 192.168.11.0 255.255.255.0 192.168.56.6

router ospf 1
red rip subnets

router rip
red ospf 1 metric 10

R6
conf t
int f0/0
ip add 192.168.56.6 255.255.255.0
no sh
exit
int lo 0
ip add 192.168.8.8 255.255.255.0
exit
int lo 1
ip add 192.168.9.9 255.255.255.0
exit
int lo 2
ip add 192.168.10.10 255.255.255.0
exit
int lo 03
ip add 192.168.11.11 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 192.168.56.5


 

    

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值