CCNP精粹系列之十三-----OSPF路由汇总

                                                

一、路由器中OSPF的汇总
1)各个路由器的配置
R1
R1(config)#int lo0
R1(config-if)#ip addr 172.16.8.1 255.255.255.0
R1(config-if)#int lo1
R1(config-if)#ip addr 172.16.9.1 255.255.255.0
R1(config-if)#int lo2
R1(config-if)#ip addr 172.16.10.1 255.255.255.0
R1(config-if)#int lo3
R1(config-if)#ip addr 172.16.11.1 255.255.255.0
R1(config-if)#int s1/0
R1(config-if)#ip addr 202.110.100.1   255.255.255.0
R1(config-if)#encap hdlc
R1(config-if)#clock rate 56000
R1(config-if)#no shut
R1(config-if)#exit
 
R1(config)#router ospf 10
R1(config-router)#net 172.16.0.0    0.0.255.255 area 0
R1(config-router)#net 202.110.100.0    0.0.0.255 area 0
 
        R2
R2(config)#int s1/0
R2(config-if)#ip addr 202.110.100.2    255.255.255.0
R2(config-if)#encap hdlc
R2(config-if)#no shut
R2(config-if)#int s1/1
R2(config-if)#ip addr 202.110.101.1    255.255.255.0
R2(config-if)#encap hdlc
R2(config-if)#clock rate 56000
R2(config-if)#no shut
R2(config-if)#exit
 
R2(config)#router ospf 10
R2(config-router)#net 202.110.100.0    0.0.0.255 area 0
R2(config-router)#net 202.110.101.0     0.0.0.255 area 1
 
        R3
R3(config)#int s1/1
R3(config-if)#ip addr 202.110.101.2      255.255.255.0
R3(config-if)#encap hdlc
R3(config-if)#no shut
R3(config-if)#exit
 
R3(config)#router ospf 10
R3(config-router)#net 202.110.101.0     0.0.0.255 area 1
 
2)在R2ABR)上做路由汇总
R2(config)#router ospf 10
       R2(config-router)#area 0 range 172.16.8.0   255.255.252.0
 
 
 
二、路由器ID的更改
 
 
R1#show ip ospf
 
      Routing Process "ospf 10" with ID 202.110.100.1
 
R1#config t
R1(config)#int lo1
R1(config-if)#ip addr 1.1.1.1 255.0.0.0
R1(config-if)#exit
R1(config)#router ospf 10
R1(config-router)#router-id 1.1.1.1
R1(config-router)#^Z
R1#clear ip ospf process
Reset ALL OSPF processes? [no]: yes
R1#show ip ospf
     
      Routing Process "ospf 10" with ID 1.1.1.1

     本文转自shenleigang 51CTO博客,原文链接: http://blog.51cto.com/shenleigang/150781 ,如需转载请自行联系原作者


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值