NHRP-配置全网状互联GRE隧道_第1页
NHRP-配置全网状互联GRE隧道_第2页
NHRP-配置全网状互联GRE隧道_第3页
NHRP-配置全网状互联GRE隧道_第4页
NHRP-配置全网状互联GRE隧道_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

由于 GRE 是建立点对点的隧道 如果要多个端点的网状互联 则必须采用这种 Hub and spoke 的拓扑形式 但是可以通过使用 NHRP Next Hop Resolution Protocol 来自动建立全网状 拓扑 试验拓扑 基本配置 HubHub RouterRouter hostname Hub interface Tunnel0 ip address 10 0 0 1 255 255 255 0 ipip nhrpnhrp authenticationauthentication testtest 启动认证密钥 用来不被路由欺骗 常 用于 WAN 边界的安全考虑 ipip nhrpnhrp mapmap multicastmulticast dynamicdynamic 详情看下面注意注意 ipip nhrpnhrp network idnetwork id 指定网络域 同一个 TUNNEL 必须处在相同的区域 且是一个子网中 ipip nhrpnhrp holdtimeholdtime 600600 检测对端失效计时器 默认的时间是 2 小时 这这 个也是必须的个也是必须的 ip nhrp cache non authoritative 这是默认产生的 nono ipip split horizonsplit horizon eigrpeigrp 1 1 由于在物理上 spoke 到 spoke 的数据包 还是要经过 hub 所以这里的 eigrp 必须关闭水平分割 hub 才能向 spoke 通告 从其他 spoke 学习到的路由 tunnel source Ethernet0 tunneltunnel modemode gregre multipointmultipoint 设置隧道接口的封装模式为 mGRE tunneltunnel keykey 500500 为隧道设置密钥 隧道的两端必须相同 interface Ethernet0 ip address 172 17 0 1 255 255 255 0 interface Ethernet1 ip address 192 168 0 1 255 255 255 0 router eigrp 1 network 10 0 0 0 0 0 0 255 network 192 168 0 0 0 0 0 255 no auto summary Spoke1Spoke1 RouterRouter hostname Spoken1 interface Tunnel0 ip address 10 0 0 2 255 255 255 0 ip nhrp authentication test ipip nhrpnhrp mapmap 10 0 0 110 0 0 1 172 17 0 1172 17 0 1 ipip nhrpnhrp mapmap Logical Logical IP IP NBMA NBMA IP IP 创建一个逻辑 IP 地址和 NBMA 地址的静态绑定 Logical IP 为可达的 NBMA 网络的目的地址 也就是隧道内部的 地址 或者说逻辑地址 NBMA IP 为可达的 NBMA 网络的物理接口地址物理接口地址 也就是也就是 HubHub 的的 TunnelTunnel 接口的接口的 tunneltunnel sourcesource 地址地址 ipip nhrpnhrp mapmap multicastmulticast 172 17 0 1172 17 0 1 ipip nhrpnhrp mapmap multicastmulticast StaticIP StaticIP 分支必须要静态指向 Hub 的物理接口地址物理接口地址 详情看下面注意注意 ip nhrp network id ip nhrp holdtime 300 ipip nhrpnhrp nhsnhs 10 0 0 110 0 0 1 将 Hub 的隧道地址作为 spoke 到下一跳路由的服 务器 用于处理 spoke 的 NHRP 查询 ip nhrp cache non authoritative tunnel source Ethernet0 tunnel destination 172 17 0 1 tunnel key 500 interface Ethernet0 ip address 172 16 1 1 255 255 255 0 interface Ethernet1 ip address 192 168 1 1 255 255 255 0 router eigrp 1 network 10 0 0 0 0 0 0 255 network 192 168 1 0 0 0 0 255 no auto summary Spoke2Spoke2 RouterRouter hostname Spoken2 interface Tunnel0 ip address 10 0 0 3 255 255 255 0 ip nhrp authentication test ip nhrp map multicast 172 17 0 1 ip nhrp map 10 0 0 1 172 17 0 1 ip nhrp network id ip nhrp holdtime 300 ip nhrp nhs 10 0 0 1 ip nhrp cache non authoritative tunnel source Ethernet0 tunnel destination 172 17 0 1 tunnel key 500 interface Ethernet0 ip address 172 16 2 1 255 255 255 0 interface Ethernet1 ip address 192 168 2 1 255 255 255 0 router eigrp 1 network 10 0 0 0 0 0 0 255 network 192 168 2 0 0 0 0 255 no auto summary 注意 注意 ipip nhrpnhrp mapmap multicastmulticast dynamicdynamic StaticIP StaticIP 这条命令的目的和帧中继 配置中的 frame relay map broadcastbroadcast 一样 指定了将要接收路由器发起 的多播和广播流量的目的地 Spokes 映射多播地址到 Hub 的静态的 NBMA IP 地 址 物理接口地址 但是 Hub 映射多播数据包到 dynamic 地址 这样意味 着 Hub 会复制多播数据包到所有的通过 NHRP 注册过的 Spoke 多播地址映射是 用来保证动态路由协议建立邻居和交换更新数据包的 如果不使用动态路由协 议 则可以不用配置 最后进行验证 最后进行验证 从 spoke 去 traceroute 到 spoke 第一步 Spoke1 的下一跳查询服务器是通过命令静态指定的 Hub 的 172 17 0 1 地址 Spoke 查询自己的 NHRP 表 到

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论