为什么 RIP 通告网络不需要掩码?

网络工程 路由器 网络 撕裂
2022-02-28 16:41:26

下面是 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地址而不需要掩码?

1个回答

因为协议会检查哪些接口属于每个子网,并从接口配置中获取子网掩码。

检查此文档,它将帮助您了解它的工作方式