C
OMMAND
L
INE
I
NTERFACE
4-318
Global Routing Configuration
ip routing
This command enables IP routing. Use the no form to disable IP routing.
Syntax
[no] ip routing
Default Setting
Enabled
Command Mode
Global Configuration
Command Usage
• The command affects both static and dynamic unicast routing.
• If IP routing is enabled, all IP packets are routed using either static
routing or dynamic routing via RIP or OSPF, and other packets for all
non-IP protocols (e.g., NetBuei, NetWare or AppleTalk) are switched
based on MAC addresses. If IP routing is disabled, all packets are
switched, with filtering and forwarding decisions based strictly on MAC
addresses.
Example
Table 4-81 Global Routing Configuration Commands
Command Function Mode Page
ip routing Enables static and dynamic IP routing GC 4-318
ip route Configures static routes GC 4-319
clear ip route Deletes specified entries from the routing table PE 4-320
show ip route Displays specified entries in the routing table PE 4-320
show ip host-route Displays displays the interface associated with
known routes
PE 4-322
show ip traffic Displays statistics for IP, ICMP, UDP, TCP
and ARP protocols
PE 4-323
Console(config)#ip routing
Console(config)#