一、拓扑结构
二、配置MGRE
R3为中心站点
interface Tunnel0/0/0
ip address 172.16.1.1 255.255.255.0
tunnel-protocol gre p2mp
source 34.0.0.1
nhrp entry multicast dynamic
nhrp network-id 100
R5配置
interface Tunnel0/0/0
ip address 172.16.1.2 255.255.255.0
tunnel-protocol gre p2mp
source Serial4/0/1
nhrp network-id 100
nhrp entry 172.16.1.1 34.0.0.1 register
R6与R7配置同R5
配置结果
三、 配置缺省与NAT及空接口
R3
acl 200
rule permit source 172.16.0.0 0.0.255.255
int Serial 4/0/0
nat outbound 2000
ip route-static 0.0.0.0 0.0.0.0 34.0.0.2
ip route-static 172.16.32.0 255.255.224.0 NULL0
R7
acl 2000
rule permit source 172.16.0.0 0.0.255.255
int g 0/0/0
nat outbound 2000
ip route-static 0.0.0.0 0.0.0.0 47.0.0.2
ip route-static 172.16.96.0 255.255.224.0 NULL0
R6
acl 2000
rule permit source 172.16.0.0 0.0.255.255
int s 4/0/0
nat outbound 2000
ip route-static 0.0.0.0 0.0.0.0 46.0.0.2
ip route-static 172.16.64.0 255.255.224.0 NULL0
四、OSPF配置与路由汇总
路由表
五、特殊区域
根据拓扑结构图可知area 1 为stub区域,area 2 和area 3为nssa区域
R3
R6
R7
六、更改hello time 和 OSPFf认证
ospf timer hello 5
authentication-mode md5 1 cipher huawei
七、全网可达