ip nhrp nhs 和 ip nhrp map 有什么区别?

网络工程 隧道 格雷
2021-07-14 20:43:53

当我配置 DMVPN Spoke 时,这两个命令看起来很相似。有什么区别?

interface Tunnel1
 ip address 192.168.88.2 255.255.255.248
 no ip redirects
 **ip nhrp map 192.168.88.1 10.0.1.1**
 ip nhrp map multicast 10.0.1.1
 ip nhrp network-id 1
 **ip nhrp nhs 192.168.88.1**
 tunnel source FastEthernet0/0
 tunnel mode gre multipoint
1个回答

感谢PacketLife.net

假设路由器foo被配置为Next-Hop Server,物理接口IP地址为10.0.1.1,隧道接口IP地址为192.168.88.1,源为10.0.1.1接口,则

ip nhrp nhs 192.168.88.1指定路由器foo作为下一跳服务器。

ip nhrp map 192.168.88.1 10.0.1.1静态映射 192.168.88.1 到foo的物理地址。

基本上,这是一个先有鸡还是先有蛋的问题。通常,您会向 NHS 查询隧道端点的物理地址,但您需要知道 NHS 的物理地址才能查询它。于是,静态映射。