Ip Address - Cisco Catalyst 2950 Command Reference Manual

Desktop switch
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands

ip address

Use the ip address interface configuration command to set an IP address for a switch. Use the no form
of this command to remove an IP address or to disable IP processing.
Syntax Description
ip-address
subnet-mask
Defaults
No IP address is defined for the switch.
Command Modes
Interface configuration
Command History
Release
12.0(5.2)WC(1)
Usage Guidelines
A switch can have one IP address.
The IP address of the switch can be accessed only by nodes connected to ports that belong to the
management VLAN. The default for the management VLAN is VLAN 1, but you can configure a
different VLAN as the management VLAN.
If you remove the IP address through a Telnet or Secure Shell (SSH) session, your connection to the
switch is lost.
If your switch receives its IP address from a Bootstrap Protocol (BOOTP) or a Dynamic Host Configured
Protocol (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.
Examples
This example shows how to configure the IP address for the switch on a subnetted network:
Switch(config)# interface vlan 1
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
show running-config
78-11381-05
ip address ip-address subnet-mask
no ip address ip-address subnet-mask
IP address.
Mask for the associated IP subnet.
Modification
This command was first introduced.
Description
Displays the configuration information running on the switch. For syntax
information, select Cisco IOS Configuration Fundamentals Command
Reference for Release 12.1 > Cisco IOS File Management Commands >
Configuration File Commands.
Catalyst 2950 Desktop Switch Command Reference
ip address
2-73

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents