802
Configuring IP Unicast Routing
Configuring IP Addressing
DETAILED STEPS
Use the
no ip subnet-zero
global configuration command to restore the default and disable the use of subnet zero.
EXAMPLE
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
ip subnet-zero
Switch(config)#
end
Classless Routing
By default, classless routing behavior is enabled on the switch when it is configured to route. With classless routing, if a
router receives packets for a subnet of a network with no default route, the router forwards the packet to the best
supernet route. A
supernet
consists of contiguous blocks of Class C address spaces used to simulate a single, larger
address space and is designed to relieve the pressure on the rapidly depleting Class B address space.
, classless routing is enabled. When the host sends a packet to 120.20.4.1, instead of
discarding the packet, the router forwards it to the best supernet route. If you disable classless routing and a router
receives packets destined for a subnet of a network with no network default route, the router discards the packet.
Figure 98
IP Classless Routing
, the router in network 128.20.0.0 is connected to subnets 128.20.1.0, 128.20.2.0, and
128.20.3.0. If the host sends a packet to 120.20.4.1, because there is no network default route, the router discards the
packet.
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
ip subnet-zero
Enable the use of subnet zero for interface addresses and
routing updates.
3.
end
Return to privileged EXEC mode.
4.
show running-config
Verify your entry.
5.
copy running-config
startup-config
(Optional) Save your entry in the configuration file.
Ho
s
t
128.20.1.0
128.20.2.0
128.20.3.0
128.20.4.1
128.0.0.0/8
128.20.4.1
IP classless
45749
128.20.0.0
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...