R1:
[R1-ospf-1-area-0.0.0.0]display this
#
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.0.1.1 0.0.0.0
network 10.0.2.1 0.0.0.0
#return
R2:
[R2-ospf-1-area-0.0.0.0]display this
#
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.0.1.2 0.0.0.0
#
R3:(注意,R3有两个不同的网段,宣告时有两个区域)
[R3-ospf-1-area-0.0.0.0]display this
#
area 0.0.0.0
network 10.0.2.2 0.0.0.0
#[R3-ospf-1-area-0.0.0.1]display this
#
area 0.0.0.1
network 3.3.3.3 0.0.0.0
network 10.0.3.1 0.0.0.0
#return
R4[R4-ospf-1-area-0.0.0.1]display this
#
area 0.0.0.1
network 4.4.4.4 0.0.0.0
network 10.0.3.2 0.0.0.0
#return
[R3]interface e0/0/0
[R3-Ethernet0/0/1]ospf dr-priority 3[R3-Ethernet0/0/1]q
[R3]q
<R3>reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]:y
[R2]interface e0/0/0
[R2-Ethernet0/0/0]ospf dr-priority 3[R2-Ethernet0/0/0]q
[R2]q
<R2>reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]:y
[R3-Ethernet0/0/0]ospf dr-priority 4[R3-Ethernet0/0/0]q
[R3]q
<R3>reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]:y
[R4-ospf-1-area-0.0.0.1]dis ospf peer
OSPF Process 1 with Router ID 4.4.4.4
Neighbors
Area 0.0.0.1 interface 10.0.3.2(Ethernet0/0/0)'s neighbors
Router ID: 3.3.3.3 Address: 10.0.3.1
State: Full Mode:Nbr is Slave Priority: 3
DR: 10.0.3.2 BDR: 10.0.3.1 MTU: 0
Dead timer due in 35 sec
Retrans timer interval: 5
Neighbor is up for 00:08:29
Authentication Sequence: [ 0 ]
R3-ospf-1-area-0.0.0.0]dis ospf peer
OSPF Process 1 with Router ID 3.3.3.3
Neighbors
Area 0.0.0.0 interface 10.0.2.2(Ethernet0/0/0)'s neighbors
Router ID: 1.1.1.1 Address: 10.0.2.1
State: Full Mode:Nbr is Slave Priority: 1
DR: 10.0.2.1 BDR: 10.0.2.2 MTU: 0
Dead timer due in31 sec
Retrans timer interval: 5
Neighbor is up for 00:10:15
Authentication Sequence: [0]
Neighbors
Area 0.0.0.1 interface 10.0.3.1(Ethernet0/0/1)'s neighbors
Router ID: 4.4.4.4 Address: 10.0.3.2
State: Full Mode:Nbr is Master Priority: 1
DR: 10.0.3.2 BDR: 10.0.3.1 MTU: 0
Dead timer due in 38 sec
Retrans timer interval: 5
Neighbor is up for 00:10:18
Authentication Sequence: [ 0 ]
[R2-ospf-1-area-0.0.0.0]dis ospf peer
OSPF Process 1 with Router ID 2.2.2.2
Neighbors
Area 0.0.0.0 interface 10.0.1.2(Ethernet0/0/0)'s neighbors
Router ID: 1.1.1.1 Address: 10.0.1.1
State: Full Mode:Nbr is Slave Priority: 1
DR: 10.0.1.1 BDR: 10.0.1.2 MTU: 0
Dead timer due in32 sec
Retrans timer interval: 5
Neighbor is up for 00:09:01
Authentication Sequence: [0]
[R4]ping 1.1.1.1
PING 1.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 1.1.1.1: bytes=56Sequence=1ttl=254time=50 ms
Reply from 1.1.1.1: bytes=56Sequence=2ttl=254time=60 ms
Reply from 1.1.1.1: bytes=56Sequence=3ttl=254time=50 ms
Reply from 1.1.1.1: bytes=56Sequence=4ttl=254time=80 ms
Reply from 1.1.1.1: bytes=56Sequence=5ttl=254time=50 ms