下面是 RIP 协议声明路由的命令:
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 1.1.1.1
Router(config-router)#network 192.168.12.0
Router(config-router)#exit
我想知道为什么宣布网络的RIP协议只需要网络IP地址而不需要掩码?
下面是 RIP 协议声明路由的命令:
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 1.1.1.1
Router(config-router)#network 192.168.12.0
Router(config-router)#exit
我想知道为什么宣布网络的RIP协议只需要网络IP地址而不需要掩码?
因为协议会检查哪些接口属于每个子网,并从接口配置中获取子网掩码。
检查此文档,它将帮助您了解它的工作方式