系统集成论坛
标题:
配置分支机构之间相互路由学习,并通过DSVPN方式实现互通的示例
[打印本页]
作者:
胡振宇
时间:
2015-11-20 12:43
标题:
配置分支机构之间相互路由学习,并通过DSVPN方式实现互通的示例
配置spoke1
#
interface Ethernet1/0/0
ip address 44.3.1.2 255.255.255.0
#
interface Tunnel0/0/0
ip address 172.16.1.101 255.255.255.0
tunnel-protocol gre p2mp //配置隧道模式为MGRE
source Ethernet1/0/0 //设置Tunnel接口的源地址或源接口
nhrp entry 172.16.1.1 44.1.1.1 register //配置NHRP地址映射表
ospf network-type broadcast //将接口的网络类型更改为广播
ospf dr-priority 8
#
ospf 2 //配置OSPF协议
area 0.0.0.0
network 44.3.1.0 0.0.0.255
network 172.16.1.0 0.0.0.255
#
return
配置spoke2
#
interface Ethernet1/0/0
ip address 44.4.1.2 255.255.255.0
#
interface Tunnel0/0/0
ip address 172.16.1.102 255.255.255.0
tunnel-protocol gre p2mp //配置隧道模式为MGRE
source Ethernet1/0/0 //设置Tunnel接口的源地址或源接口
nhrp entry 172.16.1.1 44.1.1.1 register //配置NHRP地址映射表
ospf network-type broadcast //将接口的网络类型更改为广播
ospf dr-priority 8
#
ospf 2 //配置OSPF协议
area 0.0.0.0
network 44.4.1.0 0.0.0.255
network 172.16.1.0 0.0.0.255
#
return
配置Hub
#
interface Ethernet1/0/0
ip address 44.1.1.1 255.255.255.0
#
interface Tunnel0/0/0
ip address 172.16.1.1 255.255.255.0
tunnel-protocol gre p2mp //配置隧道模式为MGRE
source Ethernet1/0/0 //设置Tunnel接口的源地址或源接口
nhrp entry multicast dynamic //配置动态注册的分支加入NHRP组播成员表
ospf network-type broadcast //将接口的网络类型更改为广播
ospf dr-priority 10
#
ospf 2 //配置OSPF协议
area 0.0.0.0
network 44.4.1.0 0.0.0.255
network 172.16.1.0 0.0.0.255
#
欢迎光临 系统集成论坛 (http://bbs.xtjc.com/)
Powered by Discuz! X3.1