题目
实验完成步骤
步骤一:
配置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
完成图例: