Command Line Interface Guide

1072 IP Routing Commands
prefix-length
— Length of the prefix. Must be preceded by a forward slash
(/). (Range: 1-30 bits)
secondary
— Indicates the IP address is a secondary address.
Default Configuration
This command has no default configuration.
Command Mode
Interface Configuration (VLAN, Loopback) mode
User Guidelines
This command also implicitly enables the VLAN or loopback interface for
routing (i.e. as if the user had issued the ‘routing’ interface command). By
default, configuring an IP address on a VLAN enables in-band management
for interfaces configured with that VLAN. Setting up an IP address on VLAN
1 enables switch management on all in-band interfaces except for those where
VLAN 1 is specifically excluded.
Example
The following example defines the IP address and subnet mask for VLAN 15
and enables the VLAN for routing.
console(config)#interface vlan 15
console(config-if-vlan15)#ip address 192.168.10.10
255.255.255.0
ip mtu
Use the ip mtu command in Interface Configuration mode to set the IP
Maximum Transmission Unit (MTU) on a routing interface. The IP MTU is
the size of the largest IP packet that can be transmitted on the interface
without fragmentation. Packets forwarded in hardware ignore the IP MTU.
Packets forwarded in software are dropped if they exceed the IP MTU of the
outgoing interface.
2CSPC4.X8100-SWUM100.book Page 1072 Wednesday, August 29, 2012 6:23 PM