HCIP第三天作业
作者:互联网
拓扑搭建
一、底层搭建
配置所有接口和环回的IP地址,所有路由缺省指向运营商
结果:
二、R1/2/3MGRE配置
R1的配置
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 10.1.1.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]source 61.1.1.1
[R1-Tunnel0/0/0]nhrp entry multicast dynamic
[R1-Tunnel0/0/0]nhrp network-id 100
R2的配置
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ip address 10.1.1.2 24
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp
[R2-Tunnel0/0/0]source GigabitEthernet 0/0/0
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 61.1.1.1 register
[R2-Tunnel0/0/0]nhrp network-id 100
R3的配置
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 10.1.1.3 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source GigabitEthernet 0/0/0
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 61.1.1.1 register
[R3-Tunnel0/0/0]nhrp network-id 100
结果:
三、R1/4/5全连MGRE的配置
R1的配置
[R1]interface Tunnel 0/0/1
[R1-Tunnel0/0/1]ip address 10.1.2.1 24
[R1-Tunnel0/0/1]tunnel-protocol gre p2mp
[R1-Tunnel0/0/1]source 16.1.1.1
[R1-Tunnel0/0/1]nhrp entry 10.1.2.2 56.1.1.1 register
[R1-Tunnel0/0/1]nhrp entry 10.1.2.3 46.1.1.1 register
[R1-Tunnel0/0/1]nhrp network-id 100
R4的配置
[R4]interface Tunnel 0/0/1
[R4-Tunnel0/0/1]ip address 10.1.2.3 24
[R4-Tunnel0/0/1]tunnel-protocol gre p2mp
[R4-Tunnel0/0/1]source 46.1.1.1
[R4-Tunnel0/0/1]nhrp entry 10.1.2.1 16.1.1.1 register
[R4-Tunnel0/0/1]nhrp entry 10.1.2.2 56.1.1.1 register
[R4-Tunnel0/0/1]nhrp network-id 100
R5的配置
[R5]interface Tunnel 0/0/1
[R5-Tunnel0/0/1]ip address 10.1.2.2 24
[R5-Tunnel0/0/1]tunnel-protocol gre p2mp
[R5-Tunnel0/0/1]source 56.1.1.1
[R5-Tunnel0/0/1]nhrp entry 10.1.2.1 16.1.1.1 register
[R5-Tunnel0/0/1]nhrp entry 10.1.2.3 46.1.1.1 register
[R5-Tunnel0/0/1]nhrp network-id 100
结果:
四、R1/2/3/4/5运行OSPF协议
R1
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 10.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.1.2.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0
R2
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 10.1.1.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]192.168.2.1 0.0.0.0
R3
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 10.1.1.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 192.168.3.1 0.0.0.0
R4
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 10.1.2.3 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 192.168.4.1 0.0.0.0
R5
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 10.1.2.2 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 192.168.5.1 0.0.0.0
五、R1/2/3的接口模式和降低R2/3的优先级
R1
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ospf network-type broadcast
R2
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ospf network-type broadcast
[R2-Tunnel0/0/0]ospf dr-priority 0
R3
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ospf network-type broadcast
[R3-Tunnel0/0/0]ospf dr-priority 0
结果:
六、改R1/4/5的接口模式
R1
[R1]interface Tunnel 0/0/1
[R1-Tunnel0/0/1]ospf network-type broadcast
R4
[R4]interface Tunnel 0/0/1
[R4-Tunnel0/0/1]ospf network-type broadcast
R5
[R5]interface Tunnel 0/0/1
[R5-Tunnel0/0/1]ospf network-type broadcast
结果:
标签:10.1,R1,0.0,ospf,作业,第三天,HCIP,Tunnel0,network 来源: https://blog.csdn.net/m0_57735079/article/details/120577599