分类: 系统运维
2013-06-14 09:57:06
如上图
R1的:
router ospf 100
log-adjacency-changes
redistribute connected subnets
network 192.168.10.0 0.0.0.255 area 10
R2的配置:
router ospf 100
log-adjacency-changes
redistribute connected subnets
network 192.168.10.0 0.0.0.255 area 10
network 192.168.20.1 0.0.0.0 area 10
R3的配置:
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
redistribute connected subnets
network 192.168.20.2 0.0.0.0 area 10
在这种情况下,三个路由器network 后面的反掩码,是不是配置成前缀24位(0.0.0.255)和32位(0.0.0.0)后,路由结果都相同?(实验的结果是这样),那平时在接口不多的情况下,为什么不全部设成32位(0.0.0.0)的呢?
答曰:可以,而且更安全.