NHRP-配置全网状互联GRE隧道.docxVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档