OSPF和MGRE

在这里插入图片描述

要求

1,R6为ISP只能配置IP地址,R1-R5的环回为私有网段
2,R1/4/5为全连的MGRE结构,R1/2/3为星型的拓扑结构,R1为中心站点
3,所有私有网段可以互相通讯,私有网段使用OSPF完成。

分析

1.IP配置
2. R1 R2 R3 MGRE配置
3. R1 R4 R5 全连的MGRE配置
4. OSPF配置
5. 更改OSPF网络接口类型

IP配置

R1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              11.0.0.1/24          up         up        
GigabitEthernet0/0/1              10.0.0.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.1/24       up         up(s)     
NULL0                             unassigned           up         up(s) 

R2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.2.1/24       up         up(s)     
NULL0                             unassigned           up         up(s) 

R3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              13.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.3.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)

R4

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              14.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.4.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)

R5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              15.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.5.1/24       up         up(s)     
NULL0                             unassigned           up         up(s) 

R6

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              11.0.0.2/24          up         up        
GigabitEthernet0/0/1              10.0.0.2/24          up         up        
GigabitEthernet0/0/2              15.0.0.2/24          up         up        
GigabitEthernet2/0/0              12.0.0.2/24          up         up        
GigabitEthernet3/0/0              13.0.0.2/24          up         up        
GigabitEthernet4/0/0              14.0.0.2/24          up         up        
NULL0                             unassigned           up         up(s)
缺省路由
[r1]ip route-static 0.0.0.0 0 10.0.0.2
[r1]ip route-static 0.0.0.0 0 11.0.0.2
[r2]ip route-static 0.0.0.0 0 12.0.0.2
[r3]ip route-static 0.0.0.0 0 13.0.0.2
[r4]ip route-static 0.0.0.0 0 14.0.0.2
[r5]ip route-static 0.0.0.0 0 15.0.0.2

R1 R2 R3 MGRE配置

R1
[r1]int t 0/0/0
[r1-Tunnel0/0/0]ip add 192.168.8.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 10.0.0.1
[r1-Tunnel0/0/0]nhrp network	
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
R2
[r2]int t 0/0/0
[r2-Tunnel0/0/0]ip add 192.168.8.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source g 0/0/0
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 192.168.8.1 10.0.0.1 re	
[r2-Tunnel0/0/0]nhrp entry 192.168.8.1 10.0.0.1 register 
R3
[r3]int t 0/0/0
[r3-Tunnel0/0/0]ip add 192.168.8.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 192.168.8.1 10.0.0.1 register 

R1 R4 R5 全连的MGRE配置

R1

[r1]int t 0/0/1
[r1-Tunnel0/0/1]ip add 192.168.9.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source 11.0.0.1
[r1-Tunnel0/0/1]nhrp network-id 200
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp entry 192.168.9.2 14.0.0.1 register 
[r1-Tunnel0/0/1]nhrp entry 192.168.9.3 15.0.0.1 register 

R4

[r4]int t 0/0/1
[r4-Tunnel0/0/1]ip add 192.168.9.2 24
[r4-Tunnel0/0/1]tunnel-protocol gre p2mp
[r4-Tunnel0/0/1]source 14.0.0.1
[r4-Tunnel0/0/1]nhrp network-id 200
[r4-Tunnel0/0/1]nhrp entry multicast dynamic
[r4-Tunnel0/0/1]nhrp entry 192.168.9.1 11.0.0.1 register 
[r4-Tunnel0/0/1]nhrp entry 192.168.9.3 15.0.0.1 register 

R5

[r5]int t 0/0/1
[r5-Tunnel0/0/1]ip add 192.168.9.3 24
[r5-Tunnel0/0/1]tunnel-protocol gre p2mp
[r5-Tunnel0/0/1]source 15.0.0.1
[r5-Tunnel0/0/1]nhrp network-id 200
[r5-Tunnel0/0/1]nhrp entry multicast dynamic
[r5-Tunnel0/0/1]nhrp entry 192.168.9.1 11.0.0.1 register 
[r5-Tunnel0/0/1]nhrp entry 192.168.9.2 14.0.0.1 register 

更改OSPF网络接口类型

R1
[r1-Tunnel0/0/0]ospf network-type p2mp	
[r1-Tunnel0/0/1]ospf network-type broadcast
R2
[r2-Tunnel0/0/0]ospf network-type p2mp
R3
[r3-Tunnel0/0/0]ospf network-type p2mp
R4
[r4-Tunnel0/0/1]ospf network-type broadcast
R5
[r5-Tunnel0/0/1]ospf network-type broadcast
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值