ospf实验

1、R4为ISP,其上只配置IP地址;R4与其他所直连设备间均使用公有IP;
2、R3-R5、R6、R7为MGRE环境,R3为中心站点;
3、整个OSPF环境IP基于172.16.0.0/16划分;除了R12有两个环回,其他路由器均有一个环回IP
4、所有设备均可访问R4的环回;
5、减少LSA的更新量,加快收敛,保障更新安全;
6、全网可达;

IP配置:

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 172.16.33.1 24
Apr 16 2024 18:06:19-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]int l0
[r1-LoopBack0]ip add 172.16.34.1 24
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 172.16.33.2 24
Apr 16 2024 18:12:23-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]int l0
[r2-LoopBack0]ip add 172.16.35.2 24
[r2-LoopBack0]
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 172.16.33.3 24
Apr 16 2024 18:13:56-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]int s4/0/0
[r3-Serial4/0/0]ip add 34.0.0.3 24
[r3-Serial4/0/0]int l0
[r3-LoopBack0]ip add 172.16.36.3 24
[r3-LoopBack0]
[r4]int s4/0/0
[r4-Serial4/0/0]ip add 34.0.0.4 24
[r4-Serial4/0/0]
Apr 16 2024 18:16:09-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[r4-Serial4/0/0]int s4/0/1
[r4-Serial4/0/1]ip add 45.0.0.4 24
[r4-Serial4/0/1]int s3/0/0
[r4-Serial3/0/0]ip add 46.0.0.4 24
[r4-Serial3/0/0]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 47.0.0.4 24
Apr 16 2024 18:16:59-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]int lo
                             ^
Error: Unrecognized command found at '^' position.
[r4-GigabitEthernet0/0/0]int l0
[r4-LoopBack0]ip add 172.16.2.4 24
[r4-LoopBack0]
[r5]int s4/0/0
[r5-Serial4/0/0]ip add 45.0.0.5 24
[r5-Serial4/0/0]
Apr 16 2024 18:18:26-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[r5-Serial4/0/0]int l0
[r5-LoopBack0]ip add 172.16.3.5 24
[r5-LoopBack0]
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]ip add 172.16.65.1 30
Apr 16 2024 18:21:18-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r6-GigabitEthernet0/0/0]int s4/0/0
[r6-Serial4/0/0]ip add 46.0.0.6 24
[r6-Serial4/0/0]
Apr 16 2024 18:22:35-08:00 r6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[r6-Serial4/0/0]
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]ip add 47.0.0.7 24
Apr 16 2024 18:23:34-08:00 r7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r7-GigabitEthernet0/0/0]int g0/0/1
[r7-GigabitEthernet0/0/1]ip add 172.16.97.1 30
Apr 16 2024 18:24:18-08:00 r7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r7-GigabitEthernet0/0/1]int l0
[r7-LoopBack0]ip add 172.16.5.7 24
[r7-LoopBack0]
[r8]int g0/0/0
[r8-GigabitEthernet0/0/0]ip add 172.16.97.2 30
Apr 16 2024 18:26:19-08:00 r8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r8-GigabitEthernet0/0/0]int g0/0/1
[r8-GigabitEthernet0/0/1]ip add 172.16.97.5 30
Apr 16 2024 18:26:43-08:00 r8 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r8-GigabitEthernet0/0/1]int l0
[r8-LoopBack0]ip add 172.16.98.8 24
[r8-LoopBack0]
[r9]int g0/0/0
[r9-GigabitEthernet0/0/0]ip add 172.16.97.6 30
Apr 16 2024 18:27:46-08:00 r9 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r9-GigabitEthernet0/0/0]int g0/0/1
[r9-GigabitEthernet0/0/1]ip add 172.16.129.1 30
Apr 16 2024 18:28:03-08:00 r9 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r9-GigabitEthernet0/0/1]int l0
[r9-LoopBack0]ip add 172.16.130.9 24
[r9-LoopBack0]
[r10]int g0/0/0
[r10-GigabitEthernet0/0/0]ip add 172.16.129.2 30
Apr 16 2024 18:29:27-08:00 r10 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r10-GigabitEthernet0/0/0]int l0
[r10-LoopBack0]ip add 172.16.131.10 24
[r10-LoopBack0]
[r11]int g0/0/0
[r11-GigabitEthernet0/0/0]ip add 172.16.65.2 30
Apr 16 2024 18:33:32-08:00 r11 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r11-GigabitEthernet0/0/0]int g0/0/1
[r11-GigabitEthernet0/0/1]ip add 172.16.65.5 30
Apr 16 2024 18:36:42-08:00 r11 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r11-GigabitEthernet0/0/1]int l0
[r11-LoopBack0]ip add 172.16.66.11 24
[r11-LoopBack0]
[r12]int g0/0/0
[r12-GigabitEthernet0/0/0]ip add 172.16.65.6 30
Apr 16 2024 18:39:58-08:00 r12 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r12-GigabitEthernet0/0/0]int l0
[r12-LoopBack0]ip add 172.16.160.12 24
[r12-LoopBack0]int l1
[r12-LoopBack1]ip add 172.16.161.12 24
[r12-LoopBack1]

路由

[r3]ip route-static 0.0.0.0 0 34.0.0.4
[r5]ip route-static 0.0.0.0 0 45.0.0.4
[r6]ip route-static 0.0.0.0 0 46.0.0.4
[r7]ip route-static 0.0.0.0 0 47.0.0.4

ospf宣告

[r1]ospf 1 rou	
[r1]ospf 1 router-id 
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]a 1
[r1-ospf-1-area-0.0.0.1]
[r1-ospf-1-area-0.0.0.1]net 0.0.0.0 255.255.255.255
[r1-ospf-1-area-0.0.0.1]
[r2]ospf 1 ro	
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a 1
[r2-ospf-1-area-0.0.0.1]net 0.0.0.0 255.255.255.255
[r2-ospf-1-area-0.0.0.1]
[r3]ospf 1 ro	
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]net 172.16.33.0 0.0.0.255
[r3-ospf-1-area-0.0.0.1]

[r3-ospf-1-area-0.0.0.1]net 172.16.36.0 0.0.0.255
[r3-ospf-1-area-0.0.0.1]
[r5]ospf 1 r	
[r5]ospf 1 router-id 5.5.5.5
[r5-ospf-1]a 0
[r5-ospf-1-area-0.0.0.0]net 172.16.3.0 0.0.0.255
[r5-ospf-1-area-0.0.0.0]
[r6]ospf 1 ro	
[r6]ospf 1 router-id 6.6.6.6
[r6-ospf-1]a 0
[r6-ospf-1-area-0.0.0.0]net 172.16.4.0 0.0.0.255
[r6-ospf-1-area-0.0.0.0]q
[r6-ospf-1]a 2
[r6-ospf-1-area-0.0.0.2]net 172.16.65.1 0.0.0.0
[r6-ospf-1-area-0.0.0.2]
[r7]ospf 1 ro	
[r7]ospf 1 router-id 7.7.7.7
[r7-ospf-1]a 0
[r7-ospf-1-area-0.0.0.0]net 172.16.5.0 0.0.0.255
[r7-ospf-1-area-0.0.0.0]

[r7]ospf 1
[r7-ospf-1]a 3
[r7-ospf-1-area-0.0.0.3]net 172.16.97.1 0.0.0.0
[r7-ospf-1-area-0.0.0.3]
[r8]ospf 1 ro	
[r8]ospf 1 router-id 8.8.8.8
[r8-ospf-1]a 3
[r8-ospf-1-area-0.0.0.3]net 0.0.0.0 255.255.255.255
[r8-ospf-1-area-0.0.0.3]
[r9]ospf 1 ro	
[r9]ospf 1 router-id 9.9.9.9
[r9-ospf-1]a 3
[r9-ospf-1-area-0.0.0.3]net 172.16.97.6 0.0.0.0
[r9-ospf-1-area-0.0.0.3]

[r9]ospf 2 ro	
[r9]ospf 2 router-id 9.9.9.9
[r9-ospf-2]a 4
[r9-ospf-2-area-0.0.0.4]net 172.16.129.1 0.0.0.0
[r9-ospf-2-area-0.0.0.4]net 172.16.130.0 0.0.0.255
[r9-ospf-2-area-0.0.0.4]
[r10]ospf 2 ro	
[r10]ospf 2 router-id 10.10.10.10
[r10-ospf-2]
[r10-ospf-2]a 4
[r10-ospf-2-area-0.0.0.4]net 0.0.0.0 255.255.255.255
[r10-ospf-2-area-0.0.0.4]
[r11]ospf 1 ro	
[r11]ospf 1 router-id 11.11.11.11
[r11-ospf-1]
[r11-ospf-1]a 2
[r11-ospf-1-area-0.0.0.2]net 0.0.0.0 255.255.255.255
[r11-ospf-1-area-0.0.0.2]
[r12]ospf 1 ro	
[r12]ospf 1 router-id 12.12.12.12
[r12-ospf-1]a 2
[r12-ospf-1-area-0.0.0.2]net 172.16.65.6 0.0.0.0
[r12-ospf-1-area-0.0.0.2]

[r12]rip 1
[r12-rip-1]v 2
[r12-rip-1]undo su	
[r12-rip-1]undo summary 
[r12-rip-1]net 172.16.0.0 
[r12-rip-1]

[r12]ospf 1
[r12-ospf-1]im	
[r12-ospf-1]import-route rip
[r12-ospf-1]

配置mgre隧道

[r3]int t0/0/0
[r3-Tunnel0/0/0]ip add 172.16.6.3 24
[r3-Tunnel0/0/0]tun	
[r3-Tunnel0/0/0]tunnel-protocol gr	
[r3-Tunnel0/0/0]tunnel-protocol gre p2	
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r3-Tunnel0/0/0]sou	
[r3-Tunnel0/0/0]source s4/0/0
Apr 16 2024 19:33:57-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]nhrp net	
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp en	
[r3-Tunnel0/0/0]nhrp entry mu	
[r3-Tunnel0/0/0]nhrp entry multicast by	
[r3-Tunnel0/0/0]nhrp entry multicast dy	
[r3-Tunnel0/0/0]nhrp entry multicast dynamic 
[r5]int t0/0/0
[r5-Tunnel0/0/0]ip add 172.16.6.5 24
[r5-Tunnel0/0/0]tu	
[r5-Tunnel0/0/0]tunnel-protocol g	
[r5-Tunnel0/0/0]tunnel-protocol gre p	
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r5-Tunnel0/0/0]so	
[r5-Tunnel0/0/0]source s4/0/0
Apr 16 2024 19:37:09-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r5-Tunnel0/0/0]
[r5-Tunnel0/0/0]nhrp n	
[r5-Tunnel0/0/0]nhrp network-id 100
[r5-Tunnel0/0/0]nhrp e	
[r5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re	
[r5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register 
[r5-Tunnel0/0/0]
[r6]int t0/0/0
[r6-Tunnel0/0/0]ip add 172.16.6.6 24
[r6-Tunnel0/0/0]tu	
[r6-Tunnel0/0/0]tunnel-protocol g	
[r6-Tunnel0/0/0]tunnel-protocol gre p	
[r6-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r6-Tunnel0/0/0]so	
[r6-Tunnel0/0/0]source s4/0/0
Apr 16 2024 19:38:54-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r6-Tunnel0/0/0]nhrp n	
[r6-Tunnel0/0/0]nhrp network-id 100
[r6-Tunnel0/0/0]nhrp en	
[r6-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re	
[r6-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register 
[r6-Tunnel0/0/0]
[r7]int t 0/0/0
[r7-Tunnel0/0/0]ip add 172.16.6.7 24
[r7-Tunnel0/0/0]tu	
[r7-Tunnel0/0/0]tunnel-protocol g	
[r7-Tunnel0/0/0]tunnel-protocol gre p	
[r7-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r7-Tunnel0/0/0]so	
[r7-Tunnel0/0/0]source g	
[r7-Tunnel0/0/0]source GigabitEthernet 0/0/0
Apr 16 2024 19:41:10-08:00 r7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r7-Tunnel0/0/0]nhrp n	
[r7-Tunnel0/0/0]nhrp network-id 100
[r7-Tunnel0/0/0]nhr	
[r7-Tunnel0/0/0]nhrp en	
[r7-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re	
[r7-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register 
[r7-Tunnel0/0/0]

配置公私网互通

[r3]ospf 1
[r3-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 3.3.3.3 
 area 0.0.0.1 
  network 172.16.33.0 0.0.0.255 
  network 172.16.36.0 0.0.0.255 
#
return
[r3-ospf-1]a 0
[r3-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]
[r5]ospf 1
[r5-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 5.5.5.5 
 area 0.0.0.0 
  network 172.16.3.0 0.0.0.255 
#
return
[r5-ospf-1]a 0
[r5-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
[r5-ospf-1-area-0.0.0.0]
[r6]ospf 1
[r6-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 6.6.6.6 
 area 0.0.0.0 
  network 172.16.4.0 0.0.0.255 
 area 0.0.0.2 
  network 172.16.65.1 0.0.0.0 
#
return
[r6-ospf-1]a 0
[r6-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
[r6-ospf-1-area-0.0.0.0]
[r7]ospf 1
[r7-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 7.7.7.7 
 area 0.0.0.0 
  network 172.16.5.0 0.0.0.255 
 area 0.0.0.3 
  network 172.16.97.1 0.0.0.0 
#
return
[r7-ospf-1]a 0
[r7-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
[r7-ospf-1-area-0.0.0.0]
[r3]int t0/0/0
[r3-Tunnel0/0/0]ospf ne	
[r3-Tunnel0/0/0]ospf network-type b	
[r3-Tunnel0/0/0]ospf network-type broadcast 
[r5]int t0/0/0
[r5-Tunnel0/0/0]ospf n	
[r5-Tunnel0/0/0]ospf network-type b	
[r5-Tunnel0/0/0]ospf network-type broadcast 

[r5-Tunnel0/0/0]ospf dr-priority 0
[r6]int t0/0/0
[r6-Tunnel0/0/0]ospf n	
[r6-Tunnel0/0/0]ospf network-type b	
[r6-Tunnel0/0/0]ospf network-type broadcast

[r6-Tunnel0/0/0]ospf dr-priority 0
[r7]int t0/0/0
[r7-Tunnel0/0/0]ospf n	
[r7-Tunnel0/0/0]ospf network-type b	
[r7-Tunnel0/0/0]ospf network-type broadcast 

[r7-Tunnel0/0/0]ospf d	
[r7-Tunnel0/0/0]ospf dr-priority 0
[r9]ospf 1
[r9-ospf-1]im	
[r9-ospf-1]import-route osp	
[r9-ospf-1]import-route ospf 2
[r9-ospf-1]ospf 2
[r9-ospf-2]im	
[r9-ospf-2]import-route o	
[r9-ospf-2]import-route ospf 1
[r9-ospf-2]

配置easy IP

[r3]acl 2000
[r3-acl-basic-2000]ru	
[r3-acl-basic-2000]rule pe	
[r3-acl-basic-2000]rule permit so	
[r3-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r3-acl-basic-2000]
[r3-acl-basic-2000]q
[r3]int g0/0/0
[r3]int s4/0/0
[r3-Serial4/0/0]nat o	
[r3-Serial4/0/0]nat outbound 2000
[r3-Serial4/0/0]
[r5]acl 2000
[r5-acl-basic-2000]ru	
[r5-acl-basic-2000]rule p	
[r5-acl-basic-2000]rule permit s	
[r5-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r5-acl-basic-2000]
[r5-acl-basic-2000]q
[r5]int g0/0/0
[r5]int s4/0/0
[r5-Serial4/0/0]nat o	
[r5-Serial4/0/0]nat outbound 2000
[r5-Serial4/0/0]
[r6]acl 2000	
[r6-acl-basic-2000]ru	
[r6-acl-basic-2000]rule p	
[r6-acl-basic-2000]rule permit s	
[r6-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r6-acl-basic-2000]q
[r6]int g0/0/0
[r6]int s4/0/0
[r6-Serial4/0/0]nat o	
[r6-Serial4/0/0]nat outbound 2000
[r6-Serial4/0/0]
[r7]acl 2000
[r7-acl-basic-2000]ru	
[r7-acl-basic-2000]rule p	
[r7-acl-basic-2000]rule permit s	
[r7-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r7-acl-basic-2000]q
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]nat o	
[r7-GigabitEthernet0/0/0]nat outbound 2000
[r7-GigabitEthernet0/0/0]

划分区域路由

[r3]ospf 1
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]ab	
[r3-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0
[r3-ospf-1-area-0.0.0.1]
[r6]ospf 1
[r6-ospf-1]a 2
[r6-ospf-1-area-0.0.0.2]ab	
[r6-ospf-1-area-0.0.0.2]abr-summary 172.16.64.0 255.255.224.0
[r6-ospf-1-area-0.0.0.2]
[r7]ospf 1
[r7-ospf-1]a 3
[r7-ospf-1-area-0.0.0.3]ab	
[r7-ospf-1-area-0.0.0.3]abr-summary 172.16.96.0 255.255.224.0
[r9]ospf 1
[r9-ospf-1]as	
[r9-ospf-1]asbr-summary 172.16.128.0 255.255.224.0
[r9-ospf-1]
[r12]ospf 1
[r12-ospf-1]as	
[r12-ospf-1]asbr-summary 172.16.160.0 255.255.224.0
[r12-ospf-1]
[r1]ospf 1
[r1-ospf-1]a 1
[r1-ospf-1-area-0.0.0.1]st	
[r1-ospf-1-area-0.0.0.1]stub n	
[r1-ospf-1-area-0.0.0.1]stub no-summary 
[r2]ospf 1
[r2-ospf-1]a 1
[r2-ospf-1-area-0.0.0.1]st	
[r2-ospf-1-area-0.0.0.1]stub n	
[r2-ospf-1-area-0.0.0.1]stub no-summary 
[r3]ospf 1
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]st	
[r3-ospf-1-area-0.0.0.1]stub no	
[r3-ospf-1-area-0.0.0.1]stub no-summary 

r9手动缺省

[r9]ospf 2
[r9-ospf-2]de	
[r9-ospf-2]default-	
[r9-ospf-2]default-route-advertise 
[r9-ospf-2]

更改hello时间

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ospf ti	
[r1-GigabitEthernet0/0/0]ospf timer h	
[r1-GigabitEthernet0/0/0]ospf timer hello 5
[r1-GigabitEthernet0/0/0]
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospf ti	
[r2-GigabitEthernet0/0/0]ospf timer h	
[r2-GigabitEthernet0/0/0]ospf timer hello 5
[r2-GigabitEthernet0/0/0]
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ospf t	
[r3-GigabitEthernet0/0/0]ospf timerh	
[r3-GigabitEthernet0/0/0]ospf timer h	
[r3-GigabitEthernet0/0/0]ospf timer hello 5
[r3-GigabitEthernet0/0/0]
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]ospf t	
[r6-GigabitEthernet0/0/0]ospf timer h	
[r6-GigabitEthernet0/0/0]ospf timer hello 5
[r6-GigabitEthernet0/0/0]
[r7]int g0/0/1
[r7-GigabitEthernet0/0/1]ospf t	
[r7-GigabitEthernet0/0/1]ospf timer h	
[r7-GigabitEthernet0/0/1]ospf timer hello 5
[r7-GigabitEthernet0/0/1]
[r8]int g0/0/0
[r8-GigabitEthernet0/0/0]ospf t	
[r8-GigabitEthernet0/0/0]ospf timer h	
[r8-GigabitEthernet0/0/0]ospf timer hello 5
[r8-GigabitEthernet0/0/0]int g0/0/1
[r8-GigabitEthernet0/0/1]ospf t	
[r8-GigabitEthernet0/0/1]ospf timer h	
[r8-GigabitEthernet0/0/1]ospf timer hello 5
[r8-GigabitEthernet0/0/1]
[r9]int g0/0/0
[r9-GigabitEthernet0/0/0]ospf ti	
[r9-GigabitEthernet0/0/0]ospf timer 
[r9-GigabitEthernet0/0/0]ospf timer h	
[r9-GigabitEthernet0/0/0]ospf timer hello 5
[r9-GigabitEthernet0/0/0]int g0/0/1
[r9-GigabitEthernet0/0/1]ospf t	
[r9-GigabitEthernet0/0/1]ospf timer h	
[r9-GigabitEthernet0/0/1]ospf timer hello 5
[r9-GigabitEthernet0/0/1]
[r10]int g0/0/0
[r10-GigabitEthernet0/0/0]ospf t	
[r10-GigabitEthernet0/0/0]ospf timer h	
[r10-GigabitEthernet0/0/0]ospf timer hello 5
[r10-GigabitEthernet0/0/0]
[r11]int g0/0/0
[r11-GigabitEthernet0/0/0]ospf t	
[r11-GigabitEthernet0/0/0]ospf timer h	
[r11-GigabitEthernet0/0/0]ospf timer hello 5
[r11-GigabitEthernet0/0/0]int g0/0/1
[r11-GigabitEthernet0/0/1]ospf t	
[r11-GigabitEthernet0/0/1]ospf timer h	
[r11-GigabitEthernet0/0/1]ospf timer hello 5
[r11-GigabitEthernet0/0/1]

接口认证

[r1]ospf 1
[r1-ospf-1]a 1
[r1-ospf-1-area-0.0.0.1]au	
[r1-ospf-1-area-0.0.0.1]authentication-mode md5 1 ci	
[r1-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 12345
[r1-ospf-1-area-0.0.0.1]
[r2]ospf 1
[r2-ospf-1]a 1
[r2-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 12345
[r2-ospf-1-area-0.0.0.1]
[r3]ospf 1
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 12345
[r3-ospf-1-area-0.0.0.1]
[r6]ospf 1
[r6-ospf-1]a 2
[r6-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[r6-ospf-1-area-0.0.0.2]
[r7]ospf 1
[r7-ospf-1]a 3
[r7-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 12345
[r7-ospf-1-area-0.0.0.3]
[r8]ospf 1
[r8-ospf-1]a 3
[r8-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 12345
[r9]ospf 1
[r9-ospf-1]a 3
[r9-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 12345
[r9-ospf-1-area-0.0.0.3]ospf 1
[r9-ospf-1]a 4
[r9-ospf-1-area-0.0.0.4]authentication-mode md5 1 cipher 12345
[r9-ospf-1-area-0.0.0.4]
[r10]ospf 1
[r10-ospf-1]a 4
[r10-ospf-1-area-0.0.0.4]authentication-mode md5 1 cipher 12345
[r10-ospf-1-area-0.0.0.4]
[r11]ospf 1
[r11-ospf-1]a 2
[r11-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[r11-ospf-1-area-0.0.0.2]
[r12]ospf 1
[r12-ospf-1]a 2
[r12-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[r12-ospf-1-area-0.0.0.2]

  • 8
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值