R1:
Router#show runBuilding configuration...Current configuration : 1133 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname Router!boot-start-markerboot-end-marker!!no aaa new-modelip subnet-zero!!!ip cef!!!key chain RIP-MK5-KEY key 1 key-string ripv2md5!!!!!!!!!!!! !!!!interface Loopback0 ip address 1.1.1.1 255.255.255.0!interface FastEthernet0/0 ip address 12.0.0.1 255.255.255.0 ip rip authentication mode md5 ip rip authentication key-chain RIP-MK5-KEY duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto!interface Serial1/0 ip address 21.0.0.1 255.255.255.0 serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!router rip version 2 passive-interface Loopback0 network 1.0.0.0 network 12.0.0.0 network 21.0.0.0!ip http serverno ip http secure-serverip classless!!!!!! !!!!!!line con 0line aux 0line vty 0 4!end
R2:
Router#show runBuilding configuration...Current configuration : 1059 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname Router!boot-start-markerboot-end-marker!!no aaa new-modelip subnet-zero!!!ip cef!!!key chain RIP-MK5-KEY key 1 key-string ripv2md5!!!!!!!!!!!! !!!!interface FastEthernet0/0 ip address 12.0.0.2 255.255.255.0 ip rip authentication mode md5 ip rip authentication key-chain RIP-MK5-KEY duplex auto speed auto!interface FastEthernet0/1 ip address 23.0.0.2 255.255.255.0 duplex auto speed auto!interface Serial1/0 ip address 21.0.0.2 255.255.255.0 serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!router rip version 2 network 12.0.0.0 network 21.0.0.0 network 23.0.0.0!ip http serverno ip http secure-serverip classless!!!!!!!!!!! !line con 0line aux 0line vty 0 4!end
拓朴结构同前.
测试过程: