R0的配置信息:Router#sh run
Building configuration...
Current configuration : 569 bytes
!
version 12.4
no service password-encryption
!
hostname Router
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
ip address 4.4.4.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 2.2.2.1 255.255.255.0
clock rate 128000
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 4.4.4.0 0.0.0.255 area 2
network 2.2.2.0 0.0.0.255 area 2
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
R1的配置信息:Router#sh run
Building configuration...
Current configuration : 647 bytes
!
version 12.4
no service password-encryption
!
hostname Router
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 2.2.2.2 255.255.255.0
!
interface Serial0/1/1
ip address 1.1.1.1 255.255.255.0
clock rate 128000
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
area 1 virtual-link 3.3.3.3
network 1.1.1.0 0.0.0.255 area 1
network 2.2.2.0 0.0.0.255 area 2
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
R2的配置信息:Router#sh run
Building configuration...
Current configuration : 647 bytes
!
version 12.4
no service password-encryption
!
hostname Router
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 1.1.1.2 255.255.255.0
!
interface Serial0/1/1
ip address 3.3.3.2 255.255.255.0
clock rate 128000
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
area 1 virtual-link 2.2.2.2
network 3.3.3.0 0.0.0.255 area 0
network 1.1.1.0 0.0.0.255 area 1
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
R3的配置信息;Router#sh run
Building configuration...
Current configuration : 550 bytes
!
version 12.4
no service password-encryption
!
hostname Router
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
ip address 5.5.5.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 3.3.3.1 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 3.3.3.0 0.0.0.255 area 0
network 5.5.5.0 0.0.0.255 area 0
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end