命令“ip nhrp map multicast dynamic”未保存到配置中

网络工程 思科 路由 虚拟专用网 多播 隧道
2022-02-21 05:02:44

出于某种原因,我的 Cisco 路由器没有保存命令“ip nhrp map multicast dynamic”。该命令被识别但未保存到配置中。我没有收到任何错误。知道为什么会这样吗?

rtr-d1#sh run int tun1
Building configuration...

Current configuration : 327 bytes
!
interface Tunnel1
 ip vrf forwarding VRF
 ip address <network/22>
 no ip redirects
 ip mtu 1392
 ip nhrp authentication <key>
 ip nhrp network-id <id>
 ip tcp adjust-mss 1352
 tunnel source GigabitEthernet1
 tunnel mode gre multipoint
 tunnel key <key>
 tunnel protection ipsec profile <profile>
end

rtr-d1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
rtr-d1(config)#int tun1
rtr-d1(config-if)#ip nhrp map multicast dynamic
rtr-d1(config-if)#do sh run int tun1
Building configuration...

Current configuration : 327 bytes
!
interface Tunnel1
 ip vrf forwarding VRF
 ip address <network/22>
 no ip redirects
 ip mtu 1392
 ip nhrp authentication <key>
 ip nhrp network-id <id>
 ip tcp adjust-mss 1352
 tunnel source GigabitEthernet1
 tunnel mode gre multipoint
 tunnel key <key>
 tunnel protection ipsec profile <profile>
end

rtr-d1(config-if)#
2个回答

这可能是默认值。几乎所有默认配置都不会出现在常规的show running-config.

经典示例是将交换机接口设置为 VLAN 1。您不会在配置中看到这一点,因为它是交换机接口的默认 VLAN。

如果将时区设置为 ,您可以看到这一点utc 0 0,但您不会在配置中看到这一点,因为这是默认设置。如果您将其设置为其他任何值,那么您将看到该命令。

要验证此默认设置,请尝试“显示全部运行”

#show run all | inc Tunnel0|map multicast dyn

interface Tunnel0
 ip nhrp map multicast dynamic
 ipv6 nhrp map multicast dynamic