san1#show run
!
interface Loopback0
ip address 192.168.31.11 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip ospf priority 200
no sh
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
!
!
interface Loopback0
ip address 192.168.31.11 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip ospf priority 200
no sh
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
!
san2#show run
!
interface Loopback0
ip address 192.168.31.22 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
ip ospf priority 100
no sh
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
!
!
interface Loopback0
ip address 192.168.31.22 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
ip ospf priority 100
no sh
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
!
san3#show run
!
interface Loopback0
ip address 192.168.31.33 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.3 255.255.255.0
no sh
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
debug ip ospf adj
show ip ospf interface 看优先级 priority 1
show ip ospf neighbor detail
!
interface Loopback0
ip address 192.168.31.33 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.3 255.255.255.0
no sh
!
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
debug ip ospf adj
show ip ospf interface 看优先级 priority 1
show ip ospf neighbor detail
转载于:https://blog.51cto.com/czywf/72606