2-131
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
ip address
If your switch receives its IP address from a Bootstrap Protocol (BOOTP) or DHCP server and you
remove the switch IP address by using the
no ip address
command, IP processing is disabled, and the
BOOTP or DHCP server cannot reassign the address.
A Layer 3 switch can have an IP address assigned to each routed port and SVI. The number of routed
ports and SVIs that you can configure is not limited by software; however, the interrelationship between
this number and the number of other features being configured might have an impact on CPU utilization
due to hardware limitations. You can use the
sdm prefer
global configuration command to reallocate
system hardware resources based on templates and feature tables. For more information, see the
command.
Examples
This example shows how to configure the IP address for the Layer 2 switch on a subnetted network:
Switch(config)#
interface vlan 1
Switch(config-if)#
ip address 172.20.128.2 255.255.255.0
This example shows how to configure the IP address for a port on the Layer 3 switch:
Switch(config)#
ip multicast-routing
Switch(config)#
interface gigabitethernet1/0/1
Switch(config-if)#
no switchport
Switch(config-if)#
ip address 172.20.128.2 255.255.255.0
You can verify your settings by entering the
show running-config
privileged EXEC command.
Related Commands
Command
Description
show running-config
Displays the operating configuration. For syntax information, use this
link to the Cisco IOS Release 12.2 Command Reference listing page:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/prod_comma
nd_reference_list.html
Select the
Cisco IOS Commands Master List, Release 12.2
to navigate
to the command.