当前位置: 首页 > news >正文

hcip的ospf综合实验

题目

在这里插入图片描述

拓扑图

在这里插入图片描述

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]

检验

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

相关文章:

hcip的ospf综合实验

题目 拓扑图 IP地址分配及环回 R1 < Huawei>sy Enter system view, return user view with CtrlZ. [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 I…...

AP5179 高端电流采样降压恒流驱动IC SOP8 LED车灯电源驱动

产品描述 AP5179是一款连续电感电流导通模式的降压恒流源&#xff0c;用于驱动一颗或多颗串联LED输入电压范围从 5 V 到 60V&#xff0c;输出电流 最大可达 2.0A 。根据不同的输入电压和外部器件&#xff0c; 可以驱动高达数十瓦的 LED。内置功率开关&#xff0c;采用高端电流…...

vue3+vite项目配置ESlint、pritter插件

配置ESlint、pritter插件 在 Vue 3 Vite 项目中&#xff0c;你可以通过以下步骤配置 ESLint 和 Prettier 插件&#xff1a; 安装插件&#xff1a; 在项目根目录下&#xff0c;打开终端并执行以下命令安装 ESLint 和 Prettier 插件&#xff1a; npm install eslint prettier e…...

K8S kubeadm搭建

kubeadm搭建整体步骤 1&#xff09;所有节点进行初始化&#xff0c;安装docker引擎和kubeadm kubelet kubectl 2&#xff09;生成集群初始化配置文件并进行修改 3&#xff09;使用kubeadm init根据初始化配置文件生成K8S的master控制管理节点 4&#xff09;安装CNI网络插件&am…...

Squeeze-and-Excitation Networks阅读笔记一

文章目录 Abstract1 INTRODUCTION Abstract 卷积算子&#xff08;convolution operator&#xff09;是卷积神经网络&#xff08;cnn&#xff09;的核心组成部分&#xff0c;它使网络能够通过融合每层局部接受域内的空间和通道信息来构建信息特征。广泛的先前研究已经调查了这种…...

LabVIEW开发3D颈动脉图像边缘检测

LabVIEW开发3D颈动脉图像边缘检测 近年来&#xff0c;超声图像在医学领域对疾病诊断具有重要意义。边缘检测是图像处理技术的重要组成部分。边缘包含图像信息。边缘检测的主要目的是根据强度和纹理等属性识别图像中均匀区域的边界。超声&#xff08;US&#xff09;图像存在视觉…...

python10.4.3

10.4.3重构 错误实例 import jsondef laoyonghu(): #获取老用户名字filenameusername.jsonwith open(filename) as f:usernamejson.load(f)return usernamedef xinyonghu(): #获取新用户名字filenameusername.jsonusernameinput("whats your name:")with ope…...

系统架构设计高级技能 · 软件架构概念、架构风格、ABSD、架构复用、DSSA(一)【系统架构设计师】

系列文章目录 系统架构设计高级技能 软件架构概念、架构风格、ABSD、架构复用、DSSA&#xff08;一&#xff09;【系统架构设计师】 系统架构设计高级技能 系统质量属性与架构评估&#xff08;二&#xff09;【系统架构设计师】 系统架构设计高级技能 软件可靠性分析与设计…...

Vue中,$forceUpdate()的使用

在Vue官方文档中指出&#xff0c;$forceUpdate具有强制刷新的作用。 那在vue框架中&#xff0c;如果data中有一个变量:age&#xff0c;修改他&#xff0c;页面会自动更新。 但如果data中的变量为数组或对象&#xff0c;我们直接去给某个对象或数组添加属性&#xff0c;页面是识…...

K8s中的Ingress

1.把端口号对外暴露&#xff0c;通过ip端口号进行访问 使用Service里面的NodePort实现 2.NodePort缺陷 在每个节点上都会起到端口&#xff0c;在访问时候通过任何节点&#xff0c;通过节点ip暴露端口号实现访问 意味着每个端口只能使用一次&#xff0c;一个端口对应一个应用…...

c++调用ffmpeg api录屏 并进行udp组播推流

代码及工程见https://download.csdn.net/download/daqinzl/88155241 开发工具&#xff1a;visual studio 2019 播放&#xff0c;采用ffmpeg工具集里的ffplay.exe, 执行命令 ffplay udp://224.1.1.1:5001 主要代码如下: #include "pch.h" #include <iostream>…...

war包方式安装linux和windows的geoserver

注意&#xff1a; 从Java 9开始&#xff0c;Oracle已经不再单独提供JRE&#xff08;Java Runtime Environment&#xff09;了&#xff0c;而是直接将JRE集成在JDK&#xff08;Java Development Kit&#xff09;中。这是因为JRE包含了运行Java程序所需的环境&#xff0c;而JDK除…...

安装CUDA与CUDNN与Pytorch(最新超级详细图文版本2023年8月最新)

一、安装CUDA 1.1、下载安装包 cuda可以认为就是Nvidia为了显卡炼丹搞的一个软件&#xff0c;其下载地址为&#xff1a;CUDA Toolkit 12.2 Update 1 Downloads | NVIDIA Developer 当你点进这个链接的时候&#xff0c;你需要依次选择 1是选择系统&#xff0c;这里选windows…...

内存快照:宕机后,Redis如何实现快速恢复?RDB

AOF的回顾 回顾Redis 的AOF的持久化机制。 Redis 避免数据丢失的 AOF 方法。这个方法的好处&#xff0c;是每次执行只需要记录操作命令&#xff0c;需要持久化的数据量不大。一般而言&#xff0c;只要你采用的不是 always 的持久化策略&#xff0c;就不会对性能造成太大影响。 …...

Linux之 Ubuntu 安装常见服务 (二) Tomcat

安装TomCat 服务 1、安装JDK环境 https://www.oracle.com/java/technologies/downloads/ 下载的官网 wget https://download.oracle.com/java/20/latest/jdk-20_linux-x64_bin.deb (sha256) 使用dpkg进行软件安装时&#xff0c;提示&#xff1a;dpkg&#xff1a;处理软件包XX…...

docker 配置 Mysql主从集群

Docker version 20.10.17, build 100c701 MySQL Image version: 8.0.32 Docker container mysql-master is source. mys ql-replica is replication. master source. replica slave.名称叫法不一样而已。 Choose one of the way&#xff0c;与replica同步数据两种情况&…...

Layui实现OA会议系统之会议管理模块总合

目录 一、项目背景 二、项目概述 1. 概述 2. 环境搭建 3. 工具类引用 4. 功能设计 4.1 会议发布 4.2 我的会议 4.3 会议审批 4.4 会议通知 4.5 待开会议 4.6 历史会议 4.7 所有会议 5. 性能优点 5.1 兼容性好 5.2 可维护性和可扩展性 5.3 轻量灵活 5.4 模块化设计…...

fishing之踩坑篇捕获数据不齐全

文章目录 一、问题记录二、解决方法三、更新钓鱼模板四、进行点击邮件五、查看仪表盘免责声明 一、问题记录 通过点击邮件内的链接&#xff0c;提交数据&#xff0c;但是只记录密码&#xff0c;无法记录username 二、解决方法 对于需要被捕获的表单数据&#xff0c;除了inp…...

ppt使用笔记

文章目录 如何让文档好看纯文字绝对不可行多用流程图和效果图切换动画母版音乐视频 作品渐变星空放大镜随机抽奖 其他快捷键 作为一个开发&#xff0c;对这种表现类型的软件一直不太上心&#xff0c;但有些场景要用到ppt&#xff0c;例如述职和项目案例分享。 很直观的体验就是…...

java中的hashmap和concurrenthashmap解析

hashmap的初始化数组大小为16&#xff0c;如果发生哈希冲突的时候在当前的索引后面采用头插法以链表的形式继续插入节点。 concurrenthashmap的结构图如下所示&#xff1a; 本身不是16个节点吗&#xff1f;这里分为两个长度为4的数组&#xff0c;变成了4*4总共16个节点&#x…...

java调用dll出现unsatisfiedLinkError以及JNA和JNI的区别

UnsatisfiedLinkError 在对接硬件设备中&#xff0c;我们会遇到使用 java 调用 dll文件 的情况&#xff0c;此时大概率出现UnsatisfiedLinkError链接错误&#xff0c;原因可能有如下几种 类名错误包名错误方法名参数错误使用 JNI 协议调用&#xff0c;结果 dll 未实现 JNI 协…...

Ascend NPU上适配Step-Audio模型

1 概述 1.1 简述 Step-Audio 是业界首个集语音理解与生成控制一体化的产品级开源实时语音对话系统&#xff0c;支持多语言对话&#xff08;如 中文&#xff0c;英文&#xff0c;日语&#xff09;&#xff0c;语音情感&#xff08;如 开心&#xff0c;悲伤&#xff09;&#x…...

涂鸦T5AI手搓语音、emoji、otto机器人从入门到实战

“&#x1f916;手搓TuyaAI语音指令 &#x1f60d;秒变表情包大师&#xff0c;让萌系Otto机器人&#x1f525;玩出智能新花样&#xff01;开整&#xff01;” &#x1f916; Otto机器人 → 直接点明主体 手搓TuyaAI语音 → 强调 自主编程/自定义 语音控制&#xff08;TuyaAI…...

【JavaSE】绘图与事件入门学习笔记

-Java绘图坐标体系 坐标体系-介绍 坐标原点位于左上角&#xff0c;以像素为单位。 在Java坐标系中,第一个是x坐标,表示当前位置为水平方向&#xff0c;距离坐标原点x个像素;第二个是y坐标&#xff0c;表示当前位置为垂直方向&#xff0c;距离坐标原点y个像素。 坐标体系-像素 …...

UR 协作机器人「三剑客」:精密轻量担当(UR7e)、全能协作主力(UR12e)、重型任务专家(UR15)

UR协作机器人正以其卓越性能在现代制造业自动化中扮演重要角色。UR7e、UR12e和UR15通过创新技术和精准设计满足了不同行业的多样化需求。其中&#xff0c;UR15以其速度、精度及人工智能准备能力成为自动化领域的重要突破。UR7e和UR12e则在负载规格和市场定位上不断优化&#xf…...

【Java学习笔记】BigInteger 和 BigDecimal 类

BigInteger 和 BigDecimal 类 二者共有的常见方法 方法功能add加subtract减multiply乘divide除 注意点&#xff1a;传参类型必须是类对象 一、BigInteger 1. 作用&#xff1a;适合保存比较大的整型数 2. 使用说明 创建BigInteger对象 传入字符串 3. 代码示例 import j…...

安宝特方案丨船舶智造的“AR+AI+作业标准化管理解决方案”(装配)

船舶制造装配管理现状&#xff1a;装配工作依赖人工经验&#xff0c;装配工人凭借长期实践积累的操作技巧完成零部件组装。企业通常制定了装配作业指导书&#xff0c;但在实际执行中&#xff0c;工人对指导书的理解和遵循程度参差不齐。 船舶装配过程中的挑战与需求 挑战 (1…...

大模型真的像人一样“思考”和“理解”吗?​

Yann LeCun 新研究的核心探讨&#xff1a;大语言模型&#xff08;LLM&#xff09;的“理解”和“思考”方式与人类认知的根本差异。 核心问题&#xff1a;大模型真的像人一样“思考”和“理解”吗&#xff1f; 人类的思考方式&#xff1a; 你的大脑是个超级整理师。面对海量信…...

Qt学习及使用_第1部分_认识Qt---Qt开发基本流程

前言 学以致用,通过QT框架的学习,一边实践,一边探索编程的方方面面. 参考书:<Qt 6 C开发指南>(以下称"本书") 标识说明:概念用粗体倾斜.重点内容用(加粗黑体)---重点内容(红字)---重点内容(加粗红字), 本书原话内容用深蓝色标识,比较重要的内容用加粗倾…...

SQLSERVER-DB操作记录

在SQL Server中&#xff0c;将查询结果放入一张新表可以通过几种方法实现。 方法1&#xff1a;使用SELECT INTO语句 SELECT INTO 语句可以直接将查询结果作为一个新表创建出来。这个新表的结构&#xff08;包括列名和数据类型&#xff09;将与查询结果匹配。 SELECT * INTO 新…...