OFPS综合实验

该博客详细介绍了路由器的配置步骤,包括环回、网段和虚拟网段的IP分配,以及缺省路由和NAT设置。接着,博主展示了如何通过GRE隧道进行MGRE配置,确保AR1、AR4和AR5之间的网络连通。最后,通过OSPF配置实现了AR1-AR4-AR3以及AR1-AR2-AR3之间的路由交换,确保了多点到多点的网络通信。整个配置过程清晰详尽,对于网络管理员具有很高的参考价值。
摘要由CSDN通过智能技术生成

题目

实验完成步骤
步骤一:
配置ip如下:
环回:

        AR1:192.168.1.1/24

        AR2:192.168.2.1/24

        AR3:192.168.3.1/24

        AR4:192.168.4.1/24

        AR5:192.168.5.1/24

网段:

        AR1-AR6:16.0.0.1/24

        AR1-AR6:61.0.0.1/24

        AR2-AR6:26.0.0.1/24

        AR3-AR6:36.0.0.1/24

        AR4-AR6:46.0.0.1/24

        AR5-AR6:56.0.0.1/24

虚拟网段:

        1.AR1-AR4-AR5:192.168.6.0/24

        2.AR1-AR2-AR3:192.168.7.0/24

步骤二:
配置缺省与nat:
AR1配置如下:
ip route-static 0.0.0.0 0 16.0.0.2
ip route-static 0.0.0.0 0 61.0.0.2
acl 2000
rule permit source 192.168.0.0 0.0.255.255
q
int g 0/0/0
nat outbound 2000
q
int g 0/0/1
nat outbound 2000

AR2配置:
ip route-static 0.0.0.0 0 26.0.0.2
acl 2000
rule permit source 192.168.0.0 0.0.255.255
q
int g 0/0/0
nat outbound 2000

AR3,AR4,AR5缺省指向分别为36.0.0.0        46.0.0.0       56.0.0.0其余指令一致

步骤三:
MGRE配置:
1,封装:

AR1:
int tunnel 0/0/0
ip ad 192.168.6.1 24
tunnel-protocol gre p2mp                        #定义封装类型
source 16.0.0.1                                       #出接口
nhrp network-id 100                                #创建域自动获取
nhrp entry multicast dynamic                 #开启微网络

AR4:
int tunnel 0/0/0
ip ad 192.168.6.2 24
tunnel-protocol gre p2mp
source 46.0.0.1
nhrp network-id 100
nhrp entry multicast dynamic

AR5:
int tunnel 0/0/0
ip ad 192.168.6.3 24
tunnel-protocol gre p2mp
source 56.0.0.1
nhrp network-id 100
nhrp entry multicast dynamic

配置完成图:

 

 

 

AR1:

int tunnel 0/0/0
nhrp entry 192.168.6.2 46.0.0.1 register
nhrp entry 192.168.6.3 56.0.0.1 register

AR2:
int tunnel 0/0/0
nhrp entry 192.168.6.1 16.0.0.1 register
nhrp entry 192.168.6.3 56.0.0.1 register

AR3:
int tunnel 0/0/0
nhrp entry 192.168.6.2 46.0.0.1 register
nhrp entry 192.168.6.1 16.0.0.1 register

2,AR1-AR2-AR3:

AR1:
int tunnel 0/0/1
ip ad 192.168.7.1 24
tunnel-protocol gre p2mp
source 61.0.0.1
nhrp network-id 101
nhrp entry multicast dynamic

AR2:
int tunnel 0/0/0
ip ad 192.168.7.2 24
tunnel-protocol gre p2mp
source g 0/0/0
nhrp network-id 101
nhrp entry 192.168.7.1 61.0.0.1

AR3:
int tunnel 0/0/0
ip ad 192.168.7.3 24
tunnel-protocol gre p2mp
source g 0/0/0
nhrp network-id 101
nhrp entry 192.168.7.1 61.0.0.1

配置完成如下:

 

 

 

步骤四:
OSPF配置:
对AR1-AR4-AR3配置

AR1:
ospf 1 router-id 1.1.1.1
area 0
network 192.168.1.0 0.0.0.255
network 192.168.6.0 0.0.0.255
network 192.168.7.0 0.0.0.255
q
q
int tunnel 0/0/0
ospf network-type broadcast

AR4:
ospf 1 router-id 4.4.4.4
area 0
network 192.168.4.0 0.0.0.255
network 192.168.6.0 0.0.0.255
q
q
int tunnel 0/0/0
ospf network-type broadcast

AR5:
ospf 1 router-id 5.5.5.5
area 0
network 192.168.5.0 0.0.0.255
network 192.168.6.0 0.0.0.255
q
q
int tunnel 0/0/0
ospf network-type broadcast

再对AR1-AR2-AR3配置

AR1:
int tunnel 0/0/1
ospf network-type p2mp

AR2:
ospf 1 router-id 2.2.2.2
area 0
network 192.168.2.0 0.0.0.255
network 192.168.7.0 0.0.0.255
q
q
int tunnel 0/0/0
ospf network-type p2mp

AR3:
ospf 1 router-id 3.3.3.3
area 0
network 192.168.3.0 0.0.0.255
network 192.168.7.0 0.0.0.255
q
q
int tunnel 0/0/0
ospf network-type p2mp

完成图例:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值