35-18
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
OL-9639-06
Chapter 35 Configuring IP Unicast Routing
Enabling IPv4 Unicast Routing
Enabling IPv4 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:
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. End with CNTL/Z.
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:
Configuring RIP, page 35-19
Configuring OSPF, page 35-24
Configuring EIGRP, page 35-35
Configuring BGP, page 35-43
Configuring ISO CLNS Routing, page 35-64
Configuring Protocol-Independent Features, page 35-88 (optional)
show ip masks address Display the masks used for network addresses and the number of subnets
using each mask.
show ip redirects Display the address of a default gateway.
show ip route [address [mask]] | [protocol]Display the current state of the routing table.
show ip route summary Display the current state of the routing table in summary form.
Table 35-3 Commands to Display Caches, Tables, and Databases (continued)
Command Purpose
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 ip routing Enable IP routing.
Step 3 router ip_routing_protocol 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, see sections later in this chapter and to the Cisco
IOS IP Configuration Guide, Release 12.2.
Step 4 end Return to privileged EXEC mode.
Step 5 show running-config Verify your entries.
Step 6 copy running-config startup-config (Optional) Save your entries in the configuration file.