I am playing with some routers in a lab and just to say that I've seen it break things I set 'no ip classless'. However, I am not getting the result I expected and I was hoping someone could tell me what I'm missing.
My lab topology is set up like so:
RouterA---10.32.20.0/24---RouterB---10.32.10.0/24--- RouterC---10.32.32.0/24---RouterD---10.35.35.0/24--->
RouterB is set with 'no ip classless' and its routing table is below:
RouterB#show ip route Gateway of last resort is 10.32.10.254 to network 0.0.0.0
172.16.0.0/24 is subnetted, 1 subnets C 172.16.30.0 is directly connected, FastEthernet0/1.30 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks C 10.32.10.0/24 is directly connected, FastEthernet0/0.10 C 10.32.20.0/24 is directly connected, FastEthernet0/1.20 S 10.100.0.0/14 [1/0] via 10.32.10.254 S* 0.0.0.0/0 [1/0] via 10.32.10.254If I understand how classful routing works, I should not be able to ping 10.35.35.1 from RouterA; the reason being that RouterB is configured for classful routing and has routes to other networks in
10.0.0.0/8 (but not 10.35.35.0/24). Therefore, RouterB discards the packet.However, when I try to ping 10.35.35.1, it works fine:
RouterA#ping 10.35.35.1
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.35.35.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms RouterA#traceroute 10.35.35.1
Type escape sequence to abort. Tracing the route to 10.35.35.1
1 10.32.20.253 0 msec 0 msec 0 msec 2 10.32.10.254 4 msec 4 msec 0 msec 3 10.35.35.1 4 msec 8 msec 0 msec