Enabling IP Unicast Routing
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.
Beginning in privileged EXEC mode, follow these steps to enable IP routing:
Command
Step 1
configure terminal
Step 2
ip routing
Step 3
router ip_routing_protocol
Step 4
end
Step 5
show running-config
Step 6
copy running-config startup-config
Use the no ip routing global configuration command to disable routing.
This example shows how to enable IP routing using RIP as the routing protocol:
Switch# configure terminal
Enter configuration commands, one per line.
Switch(config)# ip routing
Switch(config)# router rip
Switch(config-router)# network 10.0.0.0
Switch(config-router)# end
You can now set up parameters for the selected routing protocols as described in these sections:
•
•
•
•
•
You can also configure nonprotocol-specific features:
•
Catalyst 3560 Switch Software Configuration Guide
30-18
Configuring RIP, page 30-19
Configuring IGRP, page 30-23
Configuring OSPF, page 30-28
Configuring EIGRP, page 30-37
Configuring BGP, page 30-43
Configuring Protocol-Independent Features, page 30-63
Purpose
Enter global configuration mode.
Enable IP routing.
Specify an IP routing protocol. This step might include other
commands, such as specifying the networks to route with the
network (RIP) router configuration command. For information on
specific protocols, refer to sections later in this chapter and to the
Cisco IOS IP and IP Routing Configuration Guide for Release 12.1.
Note
The SMI supports only RIP as a routing protocol
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
End with CNTL/Z.
Chapter 30
Configuring IP Unicast Routing
78-16156-01