都差不多,粘一个文件就能说明问题了。
Router#show run Building configuration... Current configuration : 1179 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero ! ! ! ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.0 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 ip address 12.0.0.1 255.255.255.0 ip ospf message-digest-key 5 md5 md5pass serial restart-delay 0 ! interface Serial1/1 ip address 13.0.0.1 255.255.255.0 ip ospf message-digest-key 5 md5 md5pass 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 ospf 100 router-id 1.1.1.1 log-adjacency-changes area 0 authentication message-digest network 1.1.1.0 0.0.0.255 area 0 network 12.0.0.1 0.0.0.0 area 0 network 13.0.0.1 0.0.0.0 area 0 ! ip http server no ip http secure-server ip classless ! ! ! ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! end
测试过程截图: