Quick Reference Guide
Routing Commands | 397
IP Routing
This section provides a detailed explanation of the IP Routing commands. The commands are divided
by functionality into the following different groups:
• Show commands are used to display switch settings, statistics and other information.
• Configuration Commands are used to configure features and options of the switch. For every
configuration command there is a show command that will display the configuration setting.
The commands in this section are, in order:
• encapsulation (interface) on page 397
• ip address (routed) on page 398
• ip forwarding on page 398
• ip mtu on page 398
• ip netdirbcast on page 399
• ip route on page 399
• ip route default on page 400
• ip route distance on page 400
• ip routing on page 400
• routing on page 401
• show ip interface on page 401
• show ip route on page 404
• show ip route bestroutes on page 405
• show ip route entry on page 405
• show ip route preferences on page 406
• show ip stats on page 406
encapsulation (interface)
This command configures the link layer encapsulation type for the packet. Acceptable encapstype
values are ethernet and snap.
Syntax
encapsulation {ethernet | snap}
Restrictions—Routed frames are always Ethernet encapsulated when a frame is routed to a VLAN.
Default
Ethernet
Note: For ip irdp commands, see Router Discovery Protocol Commands on page 410 later
in this chapter.
For ip igmp commands, see the chapter IGMP Snooping Commands on page 273 and
IGMP Commands on page 471 in the IP Multicast chapter.
For the ip mcast (multicast) command, see the chapter IP Multicast Commands on
page 457.
For the ip ospf commands, see the chapter OSPF Commands on page 423.