OSPF配置:
R1:
system
int e0/1/0
ip address 192.168.123.1 255.255.255.0
ospf authentication-mode simple 123
ospf cost 12
ospf dr-priority 1
ospf network-type broadcast
ospf timer hello 10
ospf timer dead 40
ospf trans-delay 25
undo shutdown
quit
int lo1
ip address 192.168.1.33 255.255.255.224
undo shutdown
quit
int lo2
ip address 192.168.1.66 255.255.255.224
undo shutdown
quit
ospf 100 router-id 1.1.1.1
area 12
network 192.168.123.0 0.0.0.255
network 192.168.1.32 0.0.0.31
network 192.168.1.64 0.0.0.31
return
display ip routing-table
R2:
system
int e0/1/0
ip address 192.168.123.2 255.255.255.0
ospf authentication-mode simple 123
ospf cost 12
ospf dr-priority 2
ospf network-type broadcast
ospf timer hello 10
ospf timer dead 40
ospf trans-delay 25
undo shutdown
quit
int lo1
ip address 192.168.2.33 255.255.255.224
undo shutdown
quit
int lo2
ip address 192.168.2.66 255.255.255.224
undo shutdown
quit
ospf 100 router-id 2.2.2.2
area 12
network 192.168.123.0 0.0.0.255
network 192.168.2.32 0.0.0.31
network 192.168.2.64 0.0.0.31
return
display ip routing-table
R3:
system
int e0/1/0
ip address 192.168.123.3 255.255.255.0
ospf authentication-mode simple 123
ospf cost 12
ospf dr-priority 3
ospf network-type broadcast
ospf timer hello 10
ospf timer dead 40
ospf trans-delay 25
undo shutdown
quit
int lo1
ip address 192.168.3.33 255.255.255.224
undo shutdown
quit
int lo2
ip address 192.168.3.66 255.255.255.224
undo shutdown
quit
int s0/2/2
ip address 192.168.34.1 255.255.255.0
ospf authentication-mode md5 1 789
undo shutdown
quit
ospf 100 router-id 3.3.3.3
area 12
network 192.168.123.0 0.0.0.255
network 192.168.3.32 0.0.0.31
network 192.168.3.64 0.0.0.31
abr-summary 192.168.1.0 255.255.255.0
abr-summary 192.168.2.0 255.255.255.0
abr-summary 192.168.3.0 255.255.255.0
quit
area 34
network 192.168.34.0 0.0.0.255
vlink-peer 4.4.4.4 simple 123
quit
return
R4:
system
int s0/2/0
ip add 192.168.34.2 255.255.255.0
ospf authentication-mode md5 1 789
undo shutdown
quit
int s0/2/2
ip add 192.168.45.1 255.255.255.0
ospf authentication-mode simple 123
undo shutdown
quit
ospf 100 router-id 4.4.4.4
area 34
network 192.168.34.0 0.0.0.255
vlink-peer 3.3.3.3 simple 123
quit
area 0
network 192.168.45.0 0.0.0.255
authentication-mode simple
quit
quit
R5:
system
int s0/2/2
ip add 192.168.45.2 255.255.255.0
ospf authentication-mode simple 123
undo shutdown
quit
int s0/2/0
ip add 192.168.56.1 255.255.255.0
ospf authentication-mode simple 123
undo shutdown
quit
int s0/2/1
ip add 192.168.50.1 255.255.255.0
undo shutdown
quit
ospf 100 router-id 5.5.5.5
import-route rip
asbr-summary 192.168.10.1 255.255.255.0
area 0
network 192.168.45.0 0.0.0.255
authentication-mode simple
network 192.168.56.0 0.0.0.255
authentication-mode simple
quit
quit
rip
network 192.168.50.0
import-route ospf 100
return
R6:
system
int s0/2/2
ip add 192.168.56.2 255.255.255.0
ospf authentication-mode simple 123
undo shutdown
quit
int s0/2/0
ip add 192.168.67.1 255.255.255.0
ospf authentication-mode md5 1 67
undo shutdown
quit
ospf 100 router-id 6.6.6.6
area 0
network 192.168.56.0 0.0.0.255
authentication-mode simple
quit
area 67
network 192.168.67.0 0.0.0.255
authentication-mode md5
stub
quit
quit
R10:
system
int s0/2/5
ip add 192.168.50.2 255.255.255.0
undo shutdown
quit
int lo10
ip add 192.168.10.1 255.255.255.224
undo shutdown
quit
rip
network 192.168.50.0
network 192.168.10.0
return
R7
system
int s0/2/2
ip add 192.168.67.2 255.255.255.0
ospf authentication-mode md5 1 67
undo shutdown
quit
ospf 100 router-id 7.7.7.7
area 67
network 192.168.67.0 0.0.0.255
authentication-mode md5
stub
quit
quit