CCNP精粹系列之十三-----OSPF路由汇总
2009-04-17 17:18
211 查看
一、路由器中OSPF的汇总
1)各个路由器的配置
R1[/b]
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[/b]
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[/b]
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)在R2(ABR)上做路由汇总
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本文出自 “申雷岗 鸿鹄驰骋 欢迎您” 博客,请务必保留此出处http://shenleigang.blog.51cto.com/639523/150781
1)各个路由器的配置
R1[/b]
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[/b]
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[/b]
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)在R2(ABR)上做路由汇总
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本文出自 “申雷岗 鸿鹄驰骋 欢迎您” 博客,请务必保留此出处http://shenleigang.blog.51cto.com/639523/150781
相关文章推荐
- CCNP精粹系列之一---Eigrp (enhanced interior gateway routing protoral)
- CCNP精粹系列之二十三--BGP单自治系统通信,推荐
- CCNP精粹系列之三十--BGP源地址问题,推荐
- CCNP精粹系列之三----OSPF(open short path first)
- CCNP精粹系列之十一----路由控制
- CCNP精粹系列之十九--策略路由实战,博主推荐文章
- CCNP精粹系列之二十--策略路由实战二,博主推荐文章
- CCNP精粹系列之二十四--BGP的水平分隔,推荐
- CCNP精粹系列之十二----路由映射实战
- CCNP精粹系列之三十一--BGP源地址问题二,推荐
- CCNP精粹系列之五----OSPF(open short path first)
- CCNP精粹系列之十七--路由映射实战,博主推荐
- CCNP精粹系列之二十五--BGP的水平分隔,推荐
- CCNP精粹系列之三十二--BGP下一跳问题,推荐
- CCNP精粹系列之十八--路由映射实战二,博主推荐文章
- CCNP精粹系列之二十一--路由地址转换实战二,博主推荐
- CCNP精粹系列之二十六--BGP不同自治系统间通信,推荐
- CCNP精粹系列之七------有类路由和无类路由
- CCNP精粹系列之二十七--挑战BGP,推荐
- CCNP精粹系列之十五---实现单交换机VLAN间的通信