接口IP及环回地址如图
R1例:
配置IP
int 0/0/0
ip add 12.0.0.1 24
q
int g 0/0/1
ip add 112.0.0.1 24
q
配置环回地址
int loopback0
ip add 192.168.1.1 24
q
配置缺省
ip route-static 0.0.0.0 0 112.0.0.1
ip route-static 0.0.0.0 0 12.0.0.1
R1/4/5为全连的MGRE结构,R1/2/3为星型的拓补结构,R1为中心站点
我这里路由顺序改了,中间是路由AR2,我是按相对位置配的,注意!!!
R1/2/3:
[r1]int t 0/0/0
[r1-Tunnel0/0/0]ip add 10.0.0.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 12.0.0.1
Sep 28 2021 18:48:24-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r1-Tunnel0/0/0]
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]nhrp en
[r1-Tunnel0/0/0]nhrp entry mu
[r1-Tunnel0/0/0]nhrp entry multicast d
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]
--------------------------------------------------------
[r3]int t 0/0/0
[r3-Tunnel0/0/0]ip add 10.0.0.2 24
[r3-Tunnel