一.实验要求:
二.实验配置
1.给各路由器接口配置IP及环回地址
R1:
R3:
R4:
R5:
R2:
[ISP]int g 0/0/0
[ISP-GigabitEthernet0/0/0]ip address 12.0.0.2 24
[ISP-GigabitEthernet0/0/0]int g 0/0/1
[ISP-GigabitEthernet0/0/1]ip address 21.0.0.2 24
[ISP-GigabitEthernet0/0/1]int g 0/0/2
[ISP-GigabitEthernet0/0/2]ip address 23.0.0.2 24
[ISP-GigabitEthernet0/0/2]int g 4/0/0
[ISP-GigabitEthernet4/0/0]ip address 24.0.0.2 24
[ISP-GigabitEthernet4/0/0]int g 4/0/1
[ISP-GigabitEthernet4/0/1]ip address 25.0.0.2 24
[ISP-GigabitEthernet4/0/1]int g 4/0/2
[ISP-GigabitEthernet4/0/2]ip address 26.0.0.2 24
2.配置缺省路由
R1:
R3:
R4:
R5:
R6:
3.构建R1-R3-R4全连的MGRE环境
R1:
[R1]int t 0/0/0
[R1-Tunnel0/0/0]ip address 192.168.2.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]source 21.0.0.1
[R1-Tunnel0/0/0]nhrp network-id 6
[R1-Tunnel0/0/0]nhrp entry multicast dynamic
[R1-Tunnel0/0/0]nhrp entry 192.168.2.3 23.0.0.1 register
[R1-Tunnel0/0/0]nhrp entry 192.168.2.3 24.0.0.1 register
R3:
[R3]int t 0/0/0
[R3-Tunnel0/0/0]ip address 192.168.2.3 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source 23.0.0.1
[R3-Tunnel0/0/0]nhrp entry multicast dynamic
[R3-Tunnel0/0/0]nhrp network-id 6
[R3-Tunnel0/0/0]nhrp entry 192.168.2.1 21.0.0.1 register
[R3-Tunnel0/0/0]nhrp entry 192.168.4.1 24.0.0.1 register
R4:
[R4]int t 0/0/0
[R4-Tunnel0/0/0]ip address 192.168.2.4 24
[R4-Tunnel0/0/0]tunnel-protocol gre p2mp
[R4-Tunnel0/0/0]source 24.0.0.1
[R4-Tunnel0/0/0]nhrp network-id 6
[R4-Tunnel0/0/0]nhrp entry multicast dynamic
[R4-Tunnel0/0/0]nhrp entry 192.168.2.1 21.0.0.1 register
[R4-Tunnel0/0/0]nhrp entry 192.168.2.3 23.0.0.1 register
4、建立R1-R5-R6hub-spoke的MGRE环境,其中R1为中心
R1:
[R1]int t 0/0/1
[R1-Tunnel0/0/1]ip address 192.168.7.1 24
[R1-Tunnel0/0/1]tunnel-protocol gre p2mp
[R1-Tunnel0/0/1]source 12.0.0.1
[R1-Tunnel0/0/1]nhrp network-id 6
[R1-Tunnel0/0/1]nhrp entry multicast dynamic
R5:
[R5]int t 0/0/0
[R5-Tunnel0/0/0]ip address 192.168.7.5 24
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp
[R5-Tunnel0/0/0]source 25.0.0.1
[R5-Tunnel0/0/0]nhrp network-id 6
[R5-Tunnel0/0/0]nhrp entry 192.168.7.1 12.0.0.1 register
R6:
[R6]int t 0/0/0
[R6-Tunnel0/0/0]ip address 192.168.7.6 24
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp
[R6-Tunnel0/0/0]source 26.0.0.1
[R6-Tunnel0/0/0]nhrp network-id 6
[R6-Tunnel0/0/0]nhrp entry 192.168.7.1 12.0.0.1 register