划分IP及环回地址
r1:
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.1/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 192.168.1.2/27 up up(s)
NULL0 unassigned up up(s)
r2:
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.2/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 192.168.1.33/27 up up(s)
NULL0 unassigned up up(s)
r3:
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.3/30 up up
GigabitEthernet0/0/1 192.168.1.193/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 192.168.1.65/27 up up(s)
NULL0 unassigned up up(s)
r4:
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.225/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 4.4.4.4/24 up up(s)
NULL0 unassigned up up(s)
配置OSPF:
area0:
r1:
r2:
r3:
area1:
[r3-ospf-1-area-0.0.0.1]network 192.168.1.192 0.0.0.255
DR/BDR选举
手工认证
[r1-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[r2-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[r3-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[r4-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
全网可达: