我正在学习路由摘要,以及它如何用一个地址和一个子网掩码来表示不同的子网,
例如,
如果我有两个子网,
10.1.1.0
10.1.2.0 带子网掩码的总结子网是,
10.1.0.0/22这是因为,两个网络中的两个剩馀八位元是相同的,而两个网络中的6位也是相同的,所以,
8 + 8 + 6 = 22
现在,如果我试图在数据包追踪器中实现这一点,

然后在路由器上输入show ip route命令,然后给出以下输出
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 2 subnets
C 10.1.1.0 is directly connected, FastEthernet0/0
C 10.1.2.0 is directly connected, FastEthernet0/1在第三行,它说,
10.0.0.0/24 is subnetted, 2 subnets我的问题是,为什么汇总的地址是10.0.0.0/24而不是10.1.0.0/22。?
发布于 2015-08-15 13:37:20
这是因为它们位于10.0.0.0网络中,它们被子网化为/24。你没有看到路线摘要。如果您将其中一个子网子网的方式与另一个子网的子网不同,比如/25,您将得到以下内容:
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/25 is directly connected, FastEthernet0/0
C 10.1.2.0/24 is directly connected, FastEthernet0/1https://networkengineering.stackexchange.com/questions/20640
复制相似问题