OSPF下的MGRE实验

一.实验要求:

二.实验配置

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 

5.R1-R3...R6均存在环回网段模拟用户私网,使用OSPF使全网可达 

(1)在R1-R6上使用ospf

(2)在R1R3R4上让mgre环境中心角色认知统一,在R1R5R6上修改类型为p2mp 

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值