Chinaunix首页 | 论坛 | 博客
  • 博客访问: 273962
  • 博文数量: 757
  • 博客积分: 40040
  • 博客等级: 大将
  • 技术积分: 4935
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 12:37
文章分类

全部博文(757)

文章存档

2011年(1)

2008年(756)

我的朋友

分类:

2008-09-09 12:50:50

r1#sho run
!
interface Loopback0
 ip address 199.172.16.1 255.255.255.0
!
interface Loopback1
 ip address 199.172.17.1 255.255.255.0
!
interface Loopback2
 ip address 199.172.18.1 255.255.255.0
!
interface Loopback3
 ip address 199.172.19.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 12.0.0.1 255.255.255.0
 duplex half
!
router ospf 110
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 12
!
!
End
r2#sho run
!
interface FastEthernet0/0
 ip address 12.0.0.2 255.255.255.0
 duplex half
!
interface Serial2/2
 ip address 23.0.0.2 255.255.255.0
 serial restart-delay 0
!
router ospf 110
 log-adjacency-changes
 area 12 range 199.172.16.0 255.255.252.0     //路由汇总
 network 12.0.0.0 0.0.0.255 area 12
 network 23.0.0.0 0.0.0.255 area 0
!
End
r3#sho run
!
interface Serial2/1
 ip address 23.0.0.3 255.255.255.0
 serial restart-delay 0
!
interface Serial2/2
 ip address 34.0.0.3 255.255.255.0
 serial restart-delay 0
!
router ospf 110
 log-adjacency-changes
 network 23.0.0.0 0.0.0.255 area 0
 network 34.0.0.0 0.0.0.255 area 34
!
End
r4#sho run
!
interface Loopback0
 ip address 151.100.32.1 255.255.255.0
!
interface Loopback1
 ip address 151.100.33.1 255.255.255.0
!
interface Loopback2
 ip address 151.100.34.1 255.255.255.0
!
interface Loopback3
 ip address 151.100.35.1 255.255.255.0
!
interface Serial2/1
 ip address 34.0.0.4 255.255.255.0
 serial restart-delay 0
!
router ospf 110
 log-adjacency-changes
 summary-address 151.100.32.0 255.255.252.0
 //路由汇总把区域外的路由条目汇总成一条,
redistribute connected subnets route-map hhh
 //把域外的路由条目重分布到域内
network 34.0.0.0 0.0.0.255 area 34
!
route-map hhh permit 10
 match interface Loopback0 Loopback1 Loopback2 Loopback3
!
End

--------------------next---------------------

阅读(175) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~