Configuring IP Unicast Routing
By default, IP routing is disabled on the switch. For detailed IP routing configuration information, see the
Cisco IOS IP Configuration Guide, Release 12.2 from the Cisco.com page under Documentation > Cisco
IOS Software Releases > 12.2 Mainline > Configuration Guides.
In these procedures, the specified interface must be a switch virtual interface (SVI)-a VLAN interface created
by using the interface vlanvlan_id global configuration command and by default a Layer 3 interface. All
Layer 3 interfaces on which routing will occur must have IP addresses assigned to them. See the Assigning
IP Addresses to SVIs section .
The switch supports 16 static routes (including user-configured routes and the default route) and any
directly connected routes and default routes for the management interface. You can use the "lanbase-default"
SDM template to configure the static routes. The switch can have an IP address assigned to each SVI.
Before enabling routing, enter the sdm prefer lanbase-routing global configuration command and reload
the switch.
Note
Procedures for configuring routing:
•
To support VLAN interfaces, create and configure VLANs on the switch or switch stack, and assign
VLAN membership to Layer 2 interfaces. For more information, see chapter: Configuring VLANs.
•
Configure Layer 3 interfaces (SVIs).
•
Enable IP routing on the switch.
•
Assign IP addresses to the Layer 3 interfaces.
•
Configure static routes.
Enabling IP Unicast Routing
By default, the Switch is in Layer 2 switching mode and IP routing is disabled. To use the Layer 3 capabilities
of the Switch, you must enable IP routing.
DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode. Enter your password
if prompted.
enable
Example:
Switch> enable
Step 1
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
672
Configuring IP Unicast Routing