hcip的ospf综合实验

news2024/11/24 5:41:23

题目

在这里插入图片描述

拓扑图

在这里插入图片描述

IP地址分配及环回

R1

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 172.16.0.1 27
Aug 6 2023 19:03:33-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]q
[r1]int lo
[r1]int LoopBack 0
[r1-LoopBack0]ip add 172.16.1.1 24
[r1-LoopBack0]

R2

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 172.16.0.2 27
Aug 6 2023 19:04:24-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]q
[r2]int l0
[r2]int l0
[r2-LoopBack0]ip add 172.16.2.1 24
[r2-LoopBack0]

R3

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 172.16.0.3 27
Aug 6 2023 19:05:10-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]q
[r3]int s4/0/0
[r3-Serial4/0/0]ip add 34.0.0.1 24
[r3-Serial4/0/0]q
[r3]int l0
[r3-LoopBack0]ip add 172.16.3.1 24

R4

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r4
[r4]int s4/0/0
[r4-Serial4/0/0]ip add 34.0.0.2 24
[r4-Serial4/0/0]
Aug 6 2023 19:11:52-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 s3/0/1
[r4-Serial3/0/1]ip add 54.0.0.2 24
[r4-Serial3/0/1]int s3/0/0
[r4-Serial3/0/0]ip add 64.0.0.2 24
[r4-Serial3/0/0]int s4/0/1
[r4-Serial4/0/1]ip add 74.0.0.2 24
[r4-Serial4/0/1]q
[r4]int l0
[r4-LoopBack0]ip add 4.4.4.4 24
[r4-LoopBack0]

R5

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r5
[r5]int s4/0/0
[r5-Serial4/0/0]ip add 54.0.0.1 24
[r5-Serial4/0/0]
Aug 6 2023 19:14:28-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]q
[r5]int l0
[r5-LoopBack0]ip add 172.16.5.1 24
[r5-LoopBack0]

R6

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r6
[r6]int s4/0/0
[r6-Serial4/0/0]ip add 64.0.0.1 24
[r6-Serial4/0/0]
Aug 6 2023 19:15:52-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[r6-Serial4/0/0]int s4/0/1
[r6-Serial4/0/1]ip add 172.16.0.129 27
[r6-Serial4/0/1]q
[r6]int l0
[r6-LoopBack0]ip add 172.16.6.1 24
[r6-LoopBack0]

R7

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r7
[r7]int s4/0/0
[r7-Serial4/0/0]ip add 74.0.0.1 24
[r7-Serial4/0/0]
Aug 6 2023 19:17:42-08:00 r7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[r7-Serial4/0/0]int s4/0/1
[r7-Serial4/0/1]ip add 172.16.0.33 27
[r7-Serial4/0/1]q
[r7]int l0
[r7-LoopBack0]ip add 172.16.7.1 24
[r7-LoopBack0]

R8

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r8
[r8]int s4/0/0
[r8-Serial4/0/0]ip add 172.16.0.34 27
[r8-Serial4/0/0]
Aug 6 2023 19:19:49-08:00 r8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[r8-Serial4/0/0]int s4/0/1
[r8-Serial4/0/1]ip add 172.16.0.65 27
[r8-Serial4/0/1]q
[r8]int l0
[r8-LoopBack0]ip add 172.16.8.1 24
[r8-LoopBack0]

R9

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r9
[r9]int s4/0/0
[r9-Serial4/0/0]ip add 172.16.0.66 27
[r9-Serial4/0/0]
Aug 6 2023 19:22:20-08:00 r9 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[r9-Serial4/0/0]int s4/0/1
[r9-Serial4/0/1]ip add 172.16.0.97 27
[r9-Serial4/0/1]q
[r9]int l0
[r9-LoopBack0]ip add 172.16.9.1 24
[r9-LoopBack0]

R10

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r10
[r10]int s4/0/0
[r10-Serial4/0/0]ip add 172.16.0.98 27
[r10-Serial4/0/0]
Aug 6 2023 19:24:09-08:00 r10 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state.
[r10-Serial4/0/0]q
[r10]int l0
[r10-LoopBack0]ip add 172.16.10.1 24
[r10-LoopBack0]

R11

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r11
[r11]int s4/0/0
[r11-Serial4/0/0]ip add 172.16.0.130 27
[r11-Serial4/0/0]
Aug 6 2023 19:25:15-08:00 r11 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state.
[r11-Serial4/0/0]int s4/0/1
[r11-Serial4/0/1]ip add 172.16.0.161 27
[r11-Serial4/0/1]q
[r11]int l0
[r11-LoopBack0]ip add 172.16.11.1 24
[r11-LoopBack0]

R12

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r12
[r12]int s3/0/1
[r12-Serial3/0/1]ip add 172.16.0.162 27
[r12-Serial3/0/1]
Aug 6 2023 19:26:50-08:00 r12 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the UP state.
[r12-Serial3/0/1]q
[r12]int l0
[r12-LoopBack0]ip add 10.1.1.1 24
[r12-LoopBack0]int l1
[r12-LoopBack1]ip add 11.11.1.1 24
[r12-LoopBack1]

配置缺省

R1

[r1]ip rou
[r1]ip route
[r1]ip route-static 0.0.0.0 0 172.16.0.3

R2

[r2]ip rou
[r2]ip route
[r2]ip route-static 0.0.0.0 0 172.16.0.3

R3

[r3]ip rou
[r3]ip route
[r3]ip route-static 0.0.0.0 0 34.0.0.2

R5

[r5]ip rou
[r5]ip route
[r5]ip route-static 0.0.0.0 0 54.0.0.2

R6

[r6]ip rou
[r6]ip route
[r6]ip route-static 0.0.0.0 0 64.0.0.2

R7

[r7]ip rou
[r7]ip route
[r7]ip route-static 0.0.0.0 0 74.0.0.2

R8

[r8]ip ro
[r8]ip route
[r8]ip route-static 0.0.0.0 0 172.16.0.33

R9

[r9]ip rou
[r9]ip route
[r9]ip route-static 0.0.0.0 0 172.16.0.65

R10

[r10]ip rou
[r10]ip route
[r10]ip route-static 0.0.0.0 0 172.16.0.97

R11

[r11]ip rou
[r11]ip route
[r11]ip route-static 0.0.0.0 0 172.16.0.129

R12

[r12]ip rou
[r12]ip route
[r12]ip route-static 0.0.0.0 0 172.16.0.161

搭建R3/5/6/7之间的MGRE环境

R3

[r3]int t0/0/0
[r3-Tunnel0/0/0]ip add 172.16.12.1 24
[r3-Tunnel0/0/0]tun
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]sou
[r3-Tunnel0/0/0]source 34.0.0.1
Aug 6 2023 19:39:30-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]nh
[r3-Tunnel0/0/0]nhrp en
[r3-Tunnel0/0/0]nhrp entry mu
[r3-Tunnel0/0/0]nhrp entry multicast dy
[r3-Tunnel0/0/0]nhrp entry multicast dynamic
[r3-Tunnel0/0/0]nh
[r3-Tunnel0/0/0]nhrp netw
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]

R5

[r5]int t0/0/0
[r5-Tunnel0/0/0]ip add 172.16.12.2 24
[r5-Tunnel0/0/0]tun
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp
[r5-Tunnel0/0/0]sou
[r5-Tunnel0/0/0]source s
[r5-Tunnel0/0/0]source Serial 4/0/0
Aug 6 2023 19:41:33-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]nh
[r5-Tunnel0/0/0]nhrp en
[r5-Tunnel0/0/0]nhrp entry 172.16.12.1 34.0.0.1 re
[r5-Tunnel0/0/0]nhrp entry 172.16.12.1 34.0.0.1 register
[r5-Tunnel0/0/0]nh
[r5-Tunnel0/0/0]nhrp net
[r5-Tunnel0/0/0]nhrp network-id 100
[r5-Tunnel0/0/0]

R6

[r6]int t0/0/0
[r6-Tunnel0/0/0]ip add 172.16.12.3 24
[r6-Tunnel0/0/0]tun
[r6-Tunnel0/0/0]tunnel-protocol gre p2mp
[r6-Tunnel0/0/0]sou
[r6-Tunnel0/0/0]source s
[r6-Tunnel0/0/0]source Serial 4/0/0
Aug 6 2023 19:43:19-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]
[r6-Tunnel0/0/0]nh
[r6-Tunnel0/0/0]nhrp en
[r6-Tunnel0/0/0]nhrp entry 172.16.12.1 34.0.0.1 re
[r6-Tunnel0/0/0]nhrp entry 172.16.12.1 34.0.0.1 register
[r6-Tunnel0/0/0]nh
[r6-Tunnel0/0/0]nhrp net
[r6-Tunnel0/0/0]nhrp network-id 100
[r6-Tunnel0/0/0]

R7

[r7]int t0/0/0
[r7-Tunnel0/0/0]ip add 172.16.12.4 24
[r7-Tunnel0/0/0]tun
[r7-Tunnel0/0/0]tunnel-protocol gre p2mp
[r7-Tunnel0/0/0]sou
[r7-Tunnel0/0/0]source s4/0/0
Aug 6 2023 19:44:38-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]
[r7-Tunnel0/0/0]nh
[r7-Tunnel0/0/0]nhrp en
[r7-Tunnel0/0/0]nhrp entry 172.16.12.1 34.0.0.1 re
[r7-Tunnel0/0/0]nhrp entry 172.16.12.1 34.0.0.1 register
[r7-Tunnel0/0/0]nh
[r7-Tunnel0/0/0]nhrp net
[r7-Tunnel0/0/0]nhrp network-id 100
[r7-Tunnel0/0/0]

所以设备上启动ospf

R1

[r1]ospf 1 rou
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]ar
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]net
[r1-ospf-1-area-0.0.0.1]network 172.16.1.1 0.0.0.0
[r1-ospf-1-area-0.0.0.1]network 172.16.0.1 0.0.0.0
[r1-ospf-1-area-0.0.0.1]

R2

[r2]ospf 1 rou
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]ar
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]net
[r2-ospf-1-area-0.0.0.1]network 172.16.2.1 0.0.0.0
[r2-ospf-1-area-0.0.0.1]network 172.16.0.2 0.0.0.0
[r2-ospf-1-area-0.0.0.1]

R3

[r3]ospf 1 rou
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]ar
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]net
[r3-ospf-1-area-0.0.0.0]network 172.16.12.1 0.0.0.0
[r3-ospf-1-area-0.0.0.0]q
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]net
[r3-ospf-1-area-0.0.0.1]network 172.16.0.3 0.0.0.0
[r3-ospf-1-area-0.0.0.1]network 172.16.3.1 0.0.0.0

R5

[r5]ospf 1 rou
[r5]ospf 1 router-id 5.5.5.5
[r5-ospf-1]ar
[r5-ospf-1]area 0
[r5-ospf-1-area-0.0.0.0]net
[r5-ospf-1-area-0.0.0.0]network 172.16.5.1 0.0.0.0
[r5-ospf-1-area-0.0.0.0]network 172.16.12.2 0.0.0.0
[r5-ospf-1-area-0.0.0.0]

R6

[r6]ospf 1 rou
[r6]ospf 1 router-id 6.6.6.6
[r6-ospf-1]ar
[r6-ospf-1]area 0
[r6-ospf-1-area-0.0.0.0]net
[r6-ospf-1-area-0.0.0.0]network 172.16.6.1 0.0.0.0
[r6-ospf-1-area-0.0.0.0]network 172.16.12.3 0.0.0.0
[r6-ospf-1-area-0.0.0.0]
Aug 6 2023 19:55:30-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[r6-ospf-1-area-0.0.0.0]q
[r6-ospf-1]ar
[r6-ospf-1]area 2
[r6-ospf-1-area-0.0.0.2]net
[r6-ospf-1-area-0.0.0.2]network 172.16.0.129 0.0.0.0
[r6-ospf-1-area-0.0.0.2]

R7

[r7]ospf 1 rou
[r7]ospf 1 router-id 7.7.7.7
[r7-ospf-1]ar
[r7-ospf-1]area 0
[r7-ospf-1-area-0.0.0.0]net
[r7-ospf-1-area-0.0.0.0]network 172.16.7.1 0.0.0.0
[r7-ospf-1-area-0.0.0.0]network 172.16.12.4 0.0.0.0
[r7-ospf-1-area-0.0.0.0]
Aug 6 2023 19:57:02-08:00 r7 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[r7-ospf-1-area-0.0.0.0]q
[r7-ospf-1]ar
[r7-ospf-1]area 3
[r7-ospf-1-area-0.0.0.3]net
[r7-ospf-1-area-0.0.0.3]network 172.16.0.33 0.0.0.0
[r7-ospf-1-area-0.0.0.3]

R8

[r8]ospf 1 rou
[r8]ospf 1 router-id 8.8.8.8
[r8-ospf-1]ar
[r8-ospf-1]area 3
[r8-ospf-1-area-0.0.0.3]net
[r8-ospf-1-area-0.0.0.3]network 172.16.0.34 0.0.0.0
[r8-ospf-1-area-0.0.0.3]network 172.16.0.65 0.0.0.0
[r8-ospf-1-area-0.0.0.3]network 172.16.8.1 0.0.0.0

R9

[r9]ospf 1 rou
[r9]ospf 1 router-id 9.9.9.9
[r9-ospf-1]imp
[r9-ospf-1]import-route ospf 2
[r9-ospf-1]ar
[r9-ospf-1]area 3
[r9-ospf-1-area-0.0.0.3]net
[r9-ospf-1-area-0.0.0.3]network 172.16.0.66 0.0.0.0
[r9-ospf-1-area-0.0.0.3]q
[r9-ospf-1]ar
[r9-ospf-1]area 4
[r9-ospf-1-area-0.0.0.4]net
[r9-ospf-1-area-0.0.0.4]network 172.16.9.1 0.0.0.0
[r9-ospf-1-area-0.0.0.4]network 172.16.0.9 0.0.0.0
[r9-ospf-1-area-0.0.0.4]

R10

[r10]ospf 1 rou
[r10]ospf 1 router-id 10.10.10.10
[r10-ospf-1]ar
[r10-ospf-1]area 4
[r10-ospf-1-area-0.0.0.4]ne
[r10-ospf-1-area-0.0.0.4]network 172.16.10.1 0.0.0.0
[r10-ospf-1-area-0.0.0.4]network 172.16.0.98 0.0.0.0
[r10-ospf-1-area-0.0.0.4]

R11

[r11]ospf 1 rou
[r11]ospf 1 router-id 11.11.11.11
[r11-ospf-1]ar
[r11-ospf-1]area 2
[r11-ospf-1-area-0.0.0.2]net
[r11-ospf-1-area-0.0.0.2]network 172.16.0.130 0.0.0.0
[r11-ospf-1-area-0.0.0.2]network 172.16.0.161 0.0.0.0
[r11-ospf-1-area-0.0.0.2]network 172.16.11.1 0.0.0.0

R12

[r12]ospf 1 rou
[r12]ospf 1 router-id 12.12.12.12
[r12-ospf-1]asb
[r12-ospf-1]asbr-summary 11.1.0.0 255.255.254.0
[r12-ospf-1]asbr-summary 10.1.0.0 255.255.254.0
[r12-ospf-1]imp
[r12-ospf-1]import-route rip 1
[r12-ospf-1]ar
[r12-ospf-1]area 2
[r12-ospf-1-area-0.0.0.2]net
[r12-ospf-1-area-0.0.0.2]network 172.16.0.162 0.0.0.0
[r12-ospf-1-area-0.0.0.2]q
[r12-ospf-1]q
[r12]rip 1
[r12-rip-1]vers
[r12-rip-1]version 2
[r12-rip-1]net
[r12-rip-1]network 10.0.0.0
[r12-rip-1]network 11.0.0.0
[r12-rip-1]

修改选举

R3

[r3]int t0/0/0
[r3-Tunnel0/0/0]ospf net
[r3-Tunnel0/0/0]ospf network-type bro
[r3-Tunnel0/0/0]ospf network-type broadcast

R5

[r5]int t0/0/0
[r5-Tunnel0/0/0]ospf net
[r5-Tunnel0/0/0]ospf network-type br
[r5-Tunnel0/0/0]ospf network-type broadcast 、
[r5-Tunnel0/0/0]ospf dr-p
[r5-Tunnel0/0/0]ospf dr-priority 0

R6

[r6]int t0/0/0
[r6-Tunnel0/0/0]ospf dr-
[r6-Tunnel0/0/0]ospf dr-priority 0
[r6-Tunnel0/0/0]ospf ne
[r6-Tunnel0/0/0]ospf network-type broadcast

R7

[r7]int t0/0/0
[r7-Tunnel0/0/0]ospf dr
[r7-Tunnel0/0/0]ospf dr-priority 0
[r7-Tunnel0/0/0]ospf ne
[r7-Tunnel0/0/0]ospf network-type br
[r7-Tunnel0/0/0]ospf network-type broadcast

汇总与末梢区域

汇总

R3

[r3]ospf 1
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]abr
[r3-ospf-1-area-0.0.0.1]abr-summary 172.16.0.0 255.255.255.224
[r3-ospf-1-area-0.0.0.1]q
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]abr
[r3-ospf-1-area-0.0.0.0]abr-summary 172.16.12.0 255.255.255.0
[r3-ospf-1-area-0.0.0.0]

R7

[r7]ospf 1
[r7-ospf-1]area 0
[r7-ospf-1-area-0.0.0.0]abr
[r7-ospf-1-area-0.0.0.0]abr-summary 172.16.12.0 255.255.255.0
[r7-ospf-1-area-0.0.0.0]q
[r7-ospf-1]area 3
[r7-ospf-1-area-0.0.0.3]abr
[r7-ospf-1-area-0.0.0.3]abr-summary 172.16.0.32 255.255.255.224
[r7-ospf-1-area-0.0.0.3]nssa no
[r7-ospf-1-area-0.0.0.3]nssa no-s
[r7-ospf-1-area-0.0.0.3]nssa no-summary

R9

[r9]ospf 1
[r9-ospf-1]asbr
[r9-ospf-1]asbr-summary 172.16.0.96 255.255.255.224
[r9-ospf-1]q
[r9]ospf 2
[r9-ospf-2]asbr
[r9-ospf-2]asbr-summary 172.16.0.32 255.255.255.224
[r9-ospf-2]

R12

[r12]ospf 1
[r12-ospf-1]asb
[r12-ospf-1]asbr-summary 10.1.1.0 255.255.255.0
[r12-ospf-1]asbr-summary 11.1.1.0 255.255.255.0
[r12-ospf-1]

在area1上配置完全末梢区域

R1

[r1]ospf 1
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]stub

R2

[r2]ospf 1
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]stub no-s
[r2-ospf-1-area-0.0.0.1]stub no-summary

R3

[r3]ospf 1
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]stub no-s
[r3-ospf-1-area-0.0.0.1]stub no-summary

在area2上,配置完全nssa

R6

[r6]ospf 1
[r6-ospf-1]abr
[r6-ospf-1]area 0
[r6-ospf-1-area-0.0.0.0]abr
[r6-ospf-1-area-0.0.0.0]abr-summary 172.16.12.0 255.255.255.0
[r6-ospf-1-area-0.0.0.0]q
[r6-ospf-1]area 2
[r6-ospf-1-area-0.0.0.2]abr
[r6-ospf-1-area-0.0.0.2]abr-summary 172.16.0.128 255.255.255.224
[r6-ospf-1-area-0.0.0.2]nssa no-s
[r6-ospf-1-area-0.0.0.2]nssa no-summary

R11

[r11]ospf 1
[r11-ospf-1]area 2
[r11-ospf-1-area-0.0.0.2]nssa

R12

[r12]ospf 1
[r12-ospf-1]area 2
[r12-ospf-1-area-0.0.0.2]nssa

area3配置完全nssa

R7

[r7]ospf 1
[r7-ospf-1]area 3
[r7-ospf-1-area-0.0.0.3]nssa no-s
[r7-ospf-1-area-0.0.0.3]nssa no-summary
[r7-ospf-1-area-0.0.0.3]

R8

[r8]ospf 1
[r8-ospf-1]area 3
[r8-ospf-1-area-0.0.0.3]nssa

R9

[r9]ospf 1
[r9-ospf-1]area 3
[r9-ospf-1-area-0.0.0.3]nssa

在R3/5/6/7上配置动态nat

R3

[r3]nat address-group 1 34.0.0.4 34.0.0.5
[r3]acl 2000
[r3-acl-basic-2000]rule per
[r3-acl-basic-2000]rule permit sou
[r3-acl-basic-2000]rule permit source 172.16.0.128 0.0.0.31
[r3-acl-basic-2000]q
[r3]int s4/0/0
[r3-Serial4/0/0]nat out
[r3-Serial4/0/0]nat outbound 2000 address-group 1 no-pat
[r3-Serial4/0/0]

R5

[r5]nat address-group 1 54.0.0.4 54.0.0.5
[r5]acl 2000
[r5-acl-basic-2000]rule per
[r5-acl-basic-2000]rule permit sou
[r5-acl-basic-2000]rule permit source 172.16.5.0 0.0.0.255
[r5-acl-basic-2000]q
[r5]int s4/0/0
[r5-Serial4/0/0]nat out
[r5-Serial4/0/0]nat outbound 2000 add
[r5-Serial4/0/0]nat outbound 2000 address-group 1 no
[r5-Serial4/0/0]nat outbound 2000 address-group 1 no-pat
[r5-Serial4/0/0]

R6

[r6]nat add
[r6]nat address-group 1 64.0.0.4 64.0.0.5
[r6]acl 2000
[r6-acl-basic-2000]rule per
[r6-acl-basic-2000]rule permit sou
[r6-acl-basic-2000]rule permit source 172.16.6.0 0.0.0.255
[r6-acl-basic-2000]rule permit source 172.16.0.128 0.0.0.31
[r6-acl-basic-2000]rule permit source 10.1.1.0 0.0.0.255
[r6-acl-basic-2000]rule permit source 11.1.1.0 0.0.0.255
[r6-acl-basic-2000]q
[r6]int s4/0/0
[r6-Serial4/0/0]nat out
[r6-Serial4/0/0]nat outbound 2000 add
[r6-Serial4/0/0]nat outbound 2000 address-group 1 no
[r6-Serial4/0/0]nat outbound 2000 address-group 1 no-pat
[r6-Serial4/0/0]

R7

[r7]nat add
[r7]nat address-group 1 74.0.0.4 74.0.0.5
[r7]acl 2000
[r7-acl-basic-2000]rule per
[r7-acl-basic-2000]rule permit sou
[r7-acl-basic-2000]rule permit source 172.16.0.32 0.0.0.31
[r7-acl-basic-2000]rule permit source 172.16.0.96 0.0.0.31
[r7-acl-basic-2000]q
[r7]int s4/0/0
[r7-Serial4/0/0]nat out
[r7-Serial4/0/0]nat outbound 2000 add
[r7-Serial4/0/0]nat outbound 2000 address-group 1 no
[r7-Serial4/0/0]nat outbound 2000 address-group 1 no-pat
[r7-Serial4/0/0]

防环

R3

[r3]ip rou
[r3]ip route
[r3]ip route-static 172.16.0.0 16 null 0
[r3]

R6

[r6]ip rou
[r6]ip route
[r6]ip route-static 172.16.0.128 27 nu
[r6]ip route-static 172.16.0.128 27 NULL 0
[r6]ip route-static 172.16.6.0 24 NULL 0
[r6]

R9

[r9]ip rou
[r9]ip route
[r9]ip route-static 172.16.0.96 27 nu
[r9]ip route-static 172.16.0.96 27 NULL 0
[r9]

检验

在这里插入图片描述
在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/840803.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

第3章 语言基础

引言 任何语言的核心所描述的都是这门语言在最基本的层面上如何工作&#xff0c;涉及语法、操作符、数据类型以及内置功能&#xff0c;在此基础之上才可以构建复杂的解决方案 本章接下来的内容主要基于ECMAScript第6版。ES6 语法 js的语法借鉴了c/c&#xff0c;java。js是相对…

如何在PCB设计过程中处理好散热

在现代高性能电子设备中&#xff0c;散热是一个常见而重要的问题。正确处理散热问题对于确保电子设备的可靠性、稳定性和寿命至关重要。 下面将介绍在PCB设计过程中处理散热问题的方法和技巧&#xff0c;以帮助大家提高设计质量和性能。 首先&#xff0c;在处理散热问题之前&…

项目部署(前后端分离)

1、前端项目 &#xff08;打包成dist文件,放到nginx的html目录下面&#xff09;&#xff0c;然后配置nginx 2、后端项目部署 使用之前的shell脚本&#xff08;然后赋予用户权限&#xff09;&#xff0c;最后运行脚本 查看进程

Flutter编译一直显示Running Gradle task ‘assembleDebug‘

&#x1f525; 目前开发的Android Studio版本 &#x1f525; &#x1f525; 当前Flutter SDK 版本 &#x1f525; Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision f468f3366c (3 周前) • 2023-07-12 15:19:05 -0700 Eng…

算法与数据结构-哈希表

文章目录 什么是散列表散列函数的设计原则散列冲突的解决办法1. 开放寻址法2. 链表法 什么是散列表 散列表用的是数组支持按照下标随机访问数据的特性&#xff0c;所以散列表其实就是数组的一种扩展&#xff0c;由数组演化而来。可以说&#xff0c;如果没有数组&#xff0c;就…

网络安全预警分类流程

网络安全预警指南 随着信息技术的广泛应用与快速发展&#xff0c;传统业务与信息系统的融合程度不断加深&#xff0c;网络安全对国家政治、经济、文化、公共服务活动的影响进一步增大。网络安全形势日趋复杂&#xff0c;安全威胁不断变化&#xff0c;利用网络漏洞、恶意程序从…

HIVE语法优化之Join优化

桶用两表关联字段,MapJoin时需要将小表填入内存,这时候,分桶就起到了作用 一个stage阶段代表一个mr执行,好几个MR,会吧每一个MR的结果都压缩 Mysql 慢查询 如果sql语句执行超过指定时间,定义该sql为慢查询,存储日志, 查问题: SQL日志,模拟慢SQL 然后查询执行计划 分组聚合 就…

使用webpack建立React+TS项目

之前写过类似的文章&#xff0c;这次看到一本新书里也介绍了这个知识点&#xff0c;故尝试之。 Refer: 《Learn React With TypeScript - A Beginners Guide To Reactive Web Development With React 18 and TypeScript》chapter3 Creating a project with webpack 1.先建立一…

Mysql主从复制-主库/从库

介绍 mysql的主从复制是一个异步的复制过程&#xff0c;底层是基于Mysql数据库自带的二进制日志功能&#xff0c;就是一台或多台数据库&#xff08;slave,从库&#xff09;从另一台MYSQL数据库&#xff08;master,主库&#xff09;进行日志的复制然后再解析并应用到自己&#…

小程序wx:else提示 Bad attr `wx

问题&#xff1a;以下wx:for里的wx:if &#xff0c; wx:else 会报这个错&#xff1a;Bad attr wx <scroll-view class"scroll1" scroll-x enable-flex"true"><view wx:if"{{playlist.length>0}}" class"item" wx:for"…

2023.8.7论文阅读

文章目录 CMUNeXt: An Efficient Medical Image Segmentation Network based on Large Kernel and Skip Fusion摘要本文方法实验结果 Boundary Difference Over Union Loss For Medical Image Segmentation&#xff08;损失函数&#xff09;摘要本文方法实验结果 CMUNeXt: An E…

Gof23设计模式之组合模式

1.定义 ​组合模式又名部分整体模式&#xff0c;是用于把一组相似的对象当作一个单一的对象。组合模式依据树形结构来组合对象&#xff0c;用来表示部分以及整体层次。这种类型的设计模式属于结构型模式&#xff0c;它创建了对象组的树形结构。 2.结构 组合模式主要包含三种…

为react项目添加开发/提交规范(前端工程化、eslint、prettier、husky、commitlint、stylelint)

因历史遗留原因&#xff0c;接手的项目没有代码提醒/格式化&#xff0c;包括 eslint、pretttier&#xff0c;也没有 commit 提交校验&#xff0c;如 husky、commitlint、stylelint&#xff0c;与其期待自己或者同事的代码写得完美无缺&#xff0c;不如通过一些工具来进行规范和…

百度智能云“千帆大模型平台”升级,大模型最多、Prompt模板最全—测评结果超预期

目录 写在前面 什么是Prompt 1 体验分享 打开链接 登录注册 申请成功 2 具体使用 2.1 预置模板 2.2 自制模板 创建Prompt模板 2.3 在线测试 引入Prompt模板 问题1 回答1 总结 问题2 回答2 总结 2.4 API调用说明 其请求方式如下 基础说明 Query参数 响应说明 2.5 API调用代码示例…

java中javamail发送带附件的邮件实现方法

java中javamail发送带附件的邮件实现方法 本文实例讲述了java中javamail发送带附件的邮件实现方法。分享给大家供大家参考。具体分析如下&#xff1a; JavaMail&#xff0c;顾名思义&#xff0c;提供给开发者处理电子邮件相关的编程接口。它是Sun发布的用来处理email的API。它…

24届近5年上海交通大学自动化考研院校分析

今天给大家带来的是上海交通大学控制考研分析 满满干货&#xff5e;还不快快点赞收藏 一、上海交通大学 学校简介 上海交通大学是我国历史最悠久、享誉海内外的高等学府之一&#xff0c;是教育部直属并与上海市共建的全国重点大学。经过120多年的不懈努力&#xff0c;上海交…

码出高效_第二章 | 面向对象_下

目录 四. 方法1. 方法签名2. 方法参数1. 形参和实参2. 可变参数 3. 构造方法4. 类内方法5. getter和setter6. 覆写 五. 重载六. 泛型七. 数据类型1. 基本数据类型2. 引用大小3. 包装类型4. 选择包装类型还是基本数据类型5. 字符串 四. 方法 1. 方法签名 方法签名包括方法名称…

PCA和自动编码器:每个人都能理解的算法

一、说明 本文的主要重点是提供主成分分析 &#xff08;PCA&#xff09; 和自动编码器数据转换技术的直观信息。我不打算深入研究支撑这些模型的数学理论&#xff0c;因为已经有大量的资源可用。 二、pca降维和自编码 2.1 pca和自编码的共同点 自动编码器通过组合数据最重要的特…

VMWare虚拟机设置固定ip

1、在主机上刷新并重新获取ip 1、输入以下命令以释放原先的 ip 地址 #windows命令 ipconfig /release #linux/macos命令 sudo dhclient -r2、再输入以下命令以重新获取 ip 地址 #windows命令 windows&#xff1a;ipconfig /renew #linux/macos命令 sudo dhclient2、设置虚拟…