DELL PC7024 User Manual

Page of 1730
968
IP Routing Commands
Syntax
ip address 
ip-address {subnet-mask | prefix-length} [ secondary ]
no ip address 
ip-address {subnet-mask | prefix-length} [ secondary ]
ip-address — IP address of the interface.
subnet-mask — Subnet mask of the interface
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
2CSPC4.XCT-SWUM2XX1.book  Page 968  Monday, October 3, 2011  11:05 AM