4-10
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 4 Assigning the Switch IP Address and Default Gateway
Checking and Saving the Running Configuration

Manually Assigning IP Information

Beginning in privileged EXEC mode, follow these steps to manually assign IP information to multiple
switched virt ual inte rfa ces ( SV Is) or po rts:
To remove the switch IP address, use the no ip address interfa ce configura tion co mmand . If you are
remo ving the address through a Telnet sessio n, your c onnection to the switch will be lo st. To rem ov e t he
default ga teway addre ss, us e t he no ip default-gateway global configurat ion comma nd.
For information on setting the switch system name, protecting access to privileged EXEC commands,
and sett ing time and calenda r servic es, see Chapter 7, A dminist ering the Sw itch.

Checking and Sa ving the Ru nning Con figuration

You can ch eck the c onfiguration setting s you entered or chang es you made by enter ing this privi leged
EXEC command:
Switch# show running-config
Building configuration...
Current configuration : 2081 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service sequence-numbers
Command Purpose
Step 1 configure terminal Enter globa l configurati on mode.
Step 2 interface vlan vlan-id Enter int er f ac e co nfigurati on mod e, and en ter th e VLAN to which th e IP
informa tion is assi gned. T he r an ge is 1 to 409 4 w h en t he e nh an ced
software im age is insta lled an d 1 to 1001 when the stand ard software
image is installed; do not enter leading zeros.
Step 3 ip address ip-address subnet-mask Enter the IP address and subn et mask.
Step 4 exit Return t o g loba l c onfiguratio n m ode .
Step 5 ip defaul t-gatew ay ip-address Enter the IP a ddr ess of t he n ext-hop ro uter i nte rface tha t i s dire ctly
connected to the switch where a default gateway is being configured. The
default ga teway receives IP pa ckets with un resol ved d estina tion IP
addresses from the s witch.
Once the default gate way is co nfigured, the switch has con nectivity t o the
remote networks with which a host needs to communicate.
Note When your switch is co nfigured to route with I P, it does not need
to have a default gateway set.
Step 6 end Return to privileged EXEC mode.
Step 7 show running-config Verify your e ntrie s.
Step 8 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.