HCIP 第五次作业(1)

HCIP 第五次作业(1)_第1张图片

 一、接口IP配置

R1

[R1]INT g 0/0/0
[R1-GigabitEthernet0/0/0]ip add 172.16.32.129 29
Aug 18 2021 17:57:38-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]int lo0
[R1-LoopBack0]ip add 172.16.33.1 25
[R1-LoopBack0]

R2

[R2]INT g 0/0/0
[R2-GigabitEthernet0/0/0]ip add 172.16.32.130 29
Aug 18 2021 17:59:07-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 lo0
[R2-LoopBack0]ip add 172.16.33.129 25

R5

[R5]int g 0/0/0
[R5-GigabitEthernet0/0/0]ip add 45.1.1.1 24
Aug 18 2021 13:42:40-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]

R4

[R4]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip add 34.1.1.2 24
Aug 18 2021 13:42:03-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]int g 0/0/1
[R4-GigabitEthernet0/0/1]ip ad 45.1.1.2 24
Aug 18 2021 13:44:18-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]int g 0/0/02
[R4-GigabitEthernet0/0/2]ip add 46.1.1.2 24
[R4-GigabitEthernet0/0/2]
Aug 18 2021 13:44:54-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]int g 4/0/0
[R4-GigabitEthernet4/0/0]ip add 47.1.1.2 24
[R4-GigabitEthernet4/0/0]
Aug 18 2021 13:45:20-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state. 
[R4]int lo0
[R4-LoopBack0]ip add 7.7.7.7 32
[R4-LoopBack0]

R3

[R3]int g 0/0/1
[R3-GigabitEthernet0/0/1]ip ad 34.1.1.1 24
Aug 18 2021 13:41:41-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip add 172.16.32.131 29
Aug 18 2021 18:01:19-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]int lo0
[R3-LoopBack0]ip add 172.16.34.1 25
[R3-LoopBack0]

R6

[R6]int g 0/0/0
[R6-GigabitEthernet0/0/0]ip add 46.1.1.1 24
Aug 18 2021 13:42:57-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]

R7

[R7]int  g 0/0/0
[R7-GigabitEthernet0/0/0]ip add 47.1.1.1 24
Aug 18 2021 13:43:24-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]

R3ping R2 R1

HCIP 第五次作业(1)_第2张图片

二、静态缺省配置

[R3]ip route-static 0.0.0.0 0 34.1.1.2

[R5]ip route-static 0.0.0.0 0 45.1.1.2

[R6]ip route-static 0.0.0.0 0 46.1.1.2

[R7]ip route-static 0.0.0.0 0 47.1.1.2

可以ping通示例

HCIP 第五次作业(1)_第3张图片

 三、R3 R5 R6 R7建立MGRE

R3

[R3]int TUN 0/0/0
[R3-Tunnel0/0/0]ip add 172.16.0.129 29  
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source 34.1.1.1
Aug 18 2021 14:14: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]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp entry multicast dynamic 
[R3-Tunnel0/0/0]

R5

[R5]int tun 0/0/0
[R5-Tunnel0/0/0]ip add 172.16.0.130 29 
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp
[R5-Tunnel0/0/0]nhrp network-id 100 
[R5-Tunnel0/0/0]source 45.1.1.1
Aug 18 2021 14:19:37-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]nhrp entry 172.16.0.129 34.1.1.1 register 
[R5-Tunnel0/0/0]

R6

[R6]int tun 0/0/0
[R6-Tunnel0/0/0]ip add 172.16.0.131 29
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R6-Tunnel0/0/0]nhrp network-id 100
[R6-Tunnel0/0/0]source 46.1.1.1
Aug 18 2021 14:32:45-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 entry 172.16.0.129 34.1.1.1 register
[R6-Tunnel0/0/0]

R7

[R7]int tun 0/0/0
[R7-Tunnel0/0/0]ip add 172.16.0.132 29
[R7-Tunnel0/0/0]tunnel-protocol gre p2mp
[R7-Tunnel0/0/0]nhrp network-id 100  
[R7-Tunnel0/0/0]source 47.1.1.1
Aug 18 2021 14:30:42-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 entry 172.16.0.129 34.1.1.1 register

建立完成之后ping

HCIP 第五次作业(1)_第4张图片

你可能感兴趣的:(网络安全,网络安全)