都差不多,粘一个文件就能说明问题了。
Router#show run Building configuration... Current configuration : 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 ! no ip address shutdown duplex auto speed auto ! no ip address shutdown duplex auto speed auto ! ip address 12.0.0.1 255.255.255.0 ip ospf message-digest-key md5 md5pass serial restart-delay ! ip address 13.0.0.1 255.255.255.0 ip ospf message-digest-key md5 md5pass serial restart-delay ! no ip address shutdown serial restart-delay ! no ip address shutdown serial restart-delay ! router ospf router-id 1.1.1.1 log-adjacency-changes area authentication message-digest network network network ! ip http server no ip http secure-server ip classless ! ! ! ! ! ! ! ! ! ! ! ! line con line aux line vty ! end
测试过程截图: