OSPF环境下的MGRE实验

配置ip

配置缺省路由

[R1]ip route-static 0.0.0.0 0 10.0.0.2
[R1]ip route-static 0.0.0.0 0 12.0.0.2
 
[R2]ip route-static 0.0.0.0 0 23.0.0.2
 
[R3]ip route-static 0.0.0.0 0 34.0.0.2
 
[R4]ip route-static 0.0.0.0 0 45.0.0.2
 
[R5]ip route-static 0.0.0.0 0 56.0.0.2

R1/4/5为全连的MGRE结构

R1/2/3为星型的拓扑结构

所有私有网段可以互相通讯,私有网段使用OSPF完成

更改网络类型

[R1] interface Tunnel 0/0/0
[R1-Tunnel0/0/0] ospf network-type p2mp   
[R1] interface Tunnel 0/0/1    
[R1-Tunnel0/0/1] ospf network-type broadcast   

[R2] interface Tunnel 0/0/0
[R2-Tunnel0/0/0] ospf network-type p2mp

[R3] interface Tunnel 0/0/0
[R3-Tunnel0/0/0] ospf network-type p2mp

[R4] interface Tunnel 0/0/0
[R4-Tunnel0/0/0] ospf network-type broadcast 

[R5] interface Tunnel 0/0/0
[R5-Tunnel0/0/0] ospf network-type broadcast 
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值