欢迎来到天天文库
浏览记录
ID:1121897
大小:156.71 KB
页数:5页
时间:2017-11-07
《nhrp 配置全网状互联gre隧道》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、由于GRE是建立点对点的隧道,如果要多个端点的网状互联,则必须采用这种Hub-and-spoke的拓扑形式但是可以通过使用NHRP(Next-HopResolutionProtocol)来自动建立全网状拓扑 试验拓扑基本配置:HubRouterhostnameHub!interfaceTunnel0 ipaddress10.0.0.1255.255.255.0 ipnhrpauthenticationtest //启动认证密钥,用来不被路由欺骗,常用于WAN边界的安全考虑; ipnhrpmapmulticastdyn
2、amic //详情看下面注意 ipnhrpnetwork-id100000 //指定网络域,同一个TUNNEL必须处在相同的区域,且是一个子网中 ipnhrpholdtime600 //检测对端失效计时器,默认的时间是2小时,这个也是必须的 ipnhrpcachenon-authoritative //这是默认产生的 noipsplit-horizoneigrp1 //由于在物理上spoke到spoke的数据包还是要经过hub,所以这里的eigrp必须关闭水平分割,hub才能向spoke通告从其他sp
3、oke学习到的路由 tunnelsourceEthernet0 tunnelmodegremultipoint //设置隧道接口的封装模式为mGRE tunnelkey500//为隧道设置密钥,隧道的两端必须相同!interfaceEthernet0 ipaddress172.17.0.1255.255.255.0 ! interfaceEthernet1 ipaddress192.168.0.1255.255.255.0 ! routereigrp1 network10.0.0.00.0.0.255 ne
4、twork192.168.0.00.0.0.255 noauto-summary ! Spoke1RouterhostnameSpoken1!interfaceTunnel0 ipaddress10.0.0.2255.255.255.0 ipnhrpauthenticationtest ipnhrpmap10.0.0.1172.17.0.1 //ipnhrpmap[LogicalIP][NBMAIP]创建一个逻辑IP地址和NBMA地址的静态绑定,·LogicalIP为可达的NBMA网络的目的地址,也就是隧道内部的地
5、址,或者说逻辑地址·NBMAIP为可达的NBMA网络的物理接口地址,也就是Hub的Tunnel接口的tunnelsource地址 ipnhrpmapmulticast172.17.0.1 //ipnhrpmapmulticast [StaticIP]分支必须要静态指向Hub的物理接口地址,详情看下面注意 ipnhrpnetwork-id100000 ipnhrpholdtime300 ipnhrpnhs10.0.0.1 //将Hub的隧道地址作为spoke到下一跳路由的服务器,用于处理spoke的NHRP查询
6、ipnhrpcachenon-authoritative tunnelsourceEthernet0 tunneldestination172.17.0.1 tunnelkey500!interfaceEthernet0 ipaddress172.16.1.1255.255.255.0! interfaceEthernet1 ipaddress192.168.1.1255.255.255.0 ! routereigrp1 network10.0.0.00.0.0.255 network192.168.1.00.
7、0.0.255 noauto-summary ! Spoke2RouterhostnameSpoken2!interfaceTunnel0 ipaddress10.0.0.3255.255.255.0 ipnhrpauthenticationtest ////ipnhrpmapmulticast172.17.0.1 ipnhrpmap10.0.0.1172.17.0.1 ipnhrpnetwork-id100000 ipnhrpholdtime300 ipnhrpnhs10.0.0.1 ipnhrpcachenon-a
8、uthoritative tunnelsourceEthernet0 tunneldestination172.17.0.1 tunnelkey500!interfaceEthernet0 ipaddress172.16.2.1255.255.255.0! interfaceEthernet1 ipaddress
此文档下载收益归作者所有