分类: 系统运维
2008-05-21 16:02:10
r3--r2--r4--r6
3-2之间是area 0,serial 0互连
2-4之间是area 1,ethernet 0互连
4-6之间是area 0 ,serial 0互连
以下是起tunnel一侧的配置,就是在r2上,在r4的配置相同.略了.
interface Loopback0
ip address 1.1.1
.1 255.255.255.0
!
interface Tunnel0
ip unnumbered Serial0
ip ospf cost 50
tunnel source Ethernet0
tunnel destination 192.168.2.4
!
interface Ethernet0
ip address 192.168.2.2 255.255.255.0
!
interface Serial0
ip address 192.168.1.2 255.255.255.0
no ip mroute-cache
clockrate 64000
!
router ospf 100
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 1
结果:
r3#show ip ospf data
OSPF Router with ID (192.168.1.3) (Process ID 100)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 438 0x80000005 0xD0CB 3
9.9.9.9 9.9.9.9 380 0x80000002 0x7579 3
192.168.1.3 192.168.1.3 438 0x80000002 0xA629 3
192.168.3.4 192.168.3.4 380 0x80000008 0xE38D 3
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
192.168.2.0 1.1.1.1 986 0x80000003 0x4BD
192.168.2.0 192.168.3.4 990 0x80000001 0xEC6A
r3#
9.9.9.9是被分割的另一个area 0的内部router r6的id (area 0内收到r6的类型一的lsa,说明tunnel成功)
1。1。1。1是本端的abr
192。168。3。4是对端的abr
192。168。1。3是r3自己
注意一点:tunnel 0 的ip ospf cost一定要改小,默认很大.不会被选中.