OSPF综合实验

该配置案例涉及网络中的区域划分,使用OSPF和RIP协议进行路由宣告,配置MGRE隧道,并设置默认路由及下一跳。R3作为MGRE中心站点,通过配置验证了网络间的连通性,如R6成功ping通1.1.1.1。
摘要由CSDN通过智能技术生成
一、题目要求

在这里插入图片描述

二、搭建拓扑图,子网划分

区域0–area 0
骨干区域
172.16.1.0 24
172.16.2.0 24
172.16.3.0 24
172.16.4.0 24
172.16.5.0 24–R4环回
172.16.6.0 24–R5环回
172.16.7.0 24–R6环回
172.16.8.0 24–R7环回
172.16.9.0 24–tunnel
区域1–area 1
骨干区域
172.16.10.0 24
172.16.11.0 24–R1环回
172.16.12.0 24–R2环回
172.16.13.0 24–R3环回
区域2–area 2
骨干区域
172.16.14.0 24
172.16.15.0 24
172.16.16.0 24–R11环回
区域3–area 3
骨干区域
172.16.17.0 24
172.16.18.0 24
172.16.19.0 24–R8环回
区域4–area 4
骨干区域
172.16.20.0 24
172.16.21.0 24–R9环回
172.16.22.0 24–R10环回
运行rip的区域
10.1.1.1 24
10.1.1.2 24

三、 配置MGRE环境,R3为中心站点
 interface Tunnel0/0/0    
 ip address 10.1.1.1 255.255.255.0   
 tunnel-protocol gre p2mp  
 source 15.1.1.1 
 nhrp entry multicast dynamic   
 nhrp network-id 100 
 nhrp entry 10.1.1.1 15.1.1.1 register   
四、给路由器配置缺省路由及下一跳
ip route-static 0.0.0.0 0 下一跳地址(做的路由器的下一跳)

R5:
ip route-static 0.0.0.0 0 172.16.48.1

R3:
ip route-static 0.0.0.0 0 172.16.32.2

R6:
ip route-static 0.0.0.0 0 172.16.64.1

R7:
ip route-static 0.0.0.0 0 172.16.80.2

五、开启OSPF并宣告
interface Tunnel 0/0/0
ospf network-type broadcast
undo network 172.16.112.1 0.0.0.0
ospf 1
import-route ospf 2
q
ospf 2
import-route ospf 1

ospf 1
area 1
authentication-mode md5 1 cipher 123456
六、检验连通性
[R6]ping 1.1.1.1
  PING 1.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=40 ms


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值