- 0
- 0
- 约3.49千字
- 约 4页
- 2023-09-23 发布于四川
- 举报
由于GRE是建立点对点的隧道,假如要多个端点的网状互联,则必需采纳这种
Hub-and-spoke的拓扑形式
Regional Office
GRE TunnelsBranch OfficeBranch OfficeHeadquartersInternet or IP NetworkJ Partner
GRE Tunnels
Branch Office
Branch Office
Headquarters
Internet or IP Network
J Partner
但是可以通过运用NHRP (Next-Hop Resolution Protocol)来自动建立全网状 拓扑
试验拓扑
192 168.0 0/2GRE TunnelSPOKEnSPOKE2 I192.168. n,0/
192 168.0 0/2
GRE Tunnel
SPOKEn
SPOKE2 I
192.168. n,0/
基本配置:
Hub Router hostname Hub
i
interface TunnelO
ip nhrp authentication test〃启动认证密钥,用来不被路由欺瞒,
常用于WAN边界的平安考虑;
ip nhrp map multicast dynamic 〃详情看下面留意
ip nhrp network-id 100000〃指定网络域,同一个TUNNEL必需处在
相同的区域,且是一个子网中
ip nhrp holdtime 600〃检测对端失效计时器,默认的时间是2小时,
这个也是必需的
ip nhrp cache non-authoritative 〃这是默认产生的
no ip split-horizon eigrp 1 〃由于在物理上 spoke 到 spoke 的数
据包还是要经过hub,所以这里的eig门)必需关闭水平分割,hub才能向spoke 通告从其他spoke学习到的路由
tunnel source EthernetO
tunnel mode gre multipoint 〃设置隧道接口的封装模式为mGRE
tunnel key 〃为隧道设置密钥,隧道的两端必需相同
interface EthernetO
ip address 172. 17. 0. 1 255. 255. 255. 0
i
interface Ethernet 1
ip address 192. 168. 0. 1 255. 255. 255. 0 i
router eigrp 1
network 10. 0. 0. 0 0. 0. 0. 255
network 192. 168. 0. 0 0. 0. 0. 255
no auto-summary
Spoke1 Router
hostname Spoken1 i
interface TunnelO
ip nhrp authentication test
ip nhrp map 10. 0. 0. 1 172. 17. 0. 1 //ip nhrp map [Logical IP] [NBMA IP]
创建一个逻辑IP地址和NBMA地址的静态绑定,
Logical IP为可达的NBMA网络的目的地址,也就是隧道内部的地 址,或者说逻辑地址
NBMA IP为可达的NBMA网络的物理接口地址,也就是Hub的Tunnel 接口的 tunnel source 地址
ip nhrp map multicast 172.17. 0.1 //ip nhrp map
multicast [StaticIP]
分支必需要静态指向Hub的物理接口地址,详情看下面留意
ip nhrp network-id 100000
ip nhrp holdtime 300
〃将Hub的隧道地址作为spoke到下一跳路由的服务器,用于处理 spoke的NHRP查询
ip nhrp cache non-authoritative
tunnel source EthernetO
tunnel key 500 i
interface EthernetO i
interface Ethernet 1
ip address 192. 168. 1. 1 255. 255. 255. 0 i
router eigrp 1
network 10. 0. 0. 0 0. 0. 0. 255
network 192. 168. 1. 0 0. 0. 0. 255 no auto-summary
i
Spoke2 Router
hostname Spoken2 i
interface TunnelO
ip nhrp authentication test mt
ip nhrp network-id 100000
ip nhrp ho
您可能关注的文档
最近下载
- (2026年)实施指南《GBT13265.1-1997纤维光学隔离器第1部分总规范》.pptx VIP
- 2026-2030中国沉香木行业市场深度调研及发展趋势与投资前景研究报告.docx
- 东北证券-博源化工-000683-稀缺天然碱领军企业阿碱项目稳步扩产.pdf VIP
- JB_T 8531-2013阀门手动装置 技术条件.pdf
- 武术套路单项比赛所需物品明细单.docx VIP
- 部编版小学语文教师:统编版语文1-6年级语文要素梳理.pdf VIP
- 2026年江苏城市职业学院单招职业技能考试必刷测试卷附答案.docx VIP
- 船上见习记录簿(样式).pdf
- (2026春新版)三年级下册道德与法治全册教案.docx
- (2025年)广东省公务员招录面试真题及答案.docx
原创力文档

文档评论(0)