Assuming CIDR and classless addressing, the CCNA books I'm reading say
- Pearson 640-822 official cert guide 2012, pgs 403-404: According to their method
S = P - N
(subnet, prefix, host bits respectively). In this caseS = 8 - 24 < 0
. - CCNA guide 7th literally says in its subnettting chapter that the prefixes
/8
through/15
can only be used with class A addresses.
So for example, a subnet 220.0.0.0 cannot have a net mask of 255.0.0.0. Does that really make sense and hold true in the real world? Can a network or subnet really be assigned an IP address with any prefix?
I'm practicing on a c2691 router and it takes the ip route 220.0.0.0 255.0.0.0 Serial 0/0
command no problem. If 220.0.0.0 is a subnet, then what is its network?
It also takes ip route 192.0.0.0 192.0.0.0 Serial 0/0
. Here we have a "class C" subnet with a mask actually less than 255.0.0.0
! Is that possible in the real world?
I just tried adding some routes to my Cisco router and the following output is possible. You can assign the same IP 4.0.0.0
more than once in the same route table. Interestingly, it seems that it won't say "subnetted" unless the route you added has mask at least 255.0.0.0
.
R2(config)#do show ip route
...
4.0.0.0/16 is subnetted, 1 subnets
S 4.0.0.0 [1/0] via 192.168.1.1
S* 198.252.206.0/24 [1/0] via 192.168.1.1
10.0.0.0/24 is subnetted, 3 subnets
O 10.1.6.0 [110/128] via 10.1.4.2, 04:54:56, Serial0/1
C 10.1.5.0 is directly connected, Serial0/0
C 10.1.4.0 is directly connected, Serial0/1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
S 2.0.0.0/7 [1/0] via 192.168.1.1
S 4.0.0.0/7 [1/0] via 192.168.1.1
S 4.0.0.0/6 [1/0] via 192.168.1.1
S 8.0.0.0/6 [1/0] via 192.168.1.1
S 12.0.0.0/6 [1/0] via 192.168.1.1