Cisco WS-C2960S-24PD-L Software Guide - Page 130
Changing IP Information, Manually Assigning and Removing Switch IP Information
View all Cisco WS-C2960S-24PD-L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 130 highlights
Changing IP Information Chapter 6 Configuring the System Changing IP Information You can assign and change the IP information of your switch in these ways: • Using the setup program, as described in the release notes (http://www.cisco.com/univercd/cc/td/doc/product/lan/c2900xl/index.htm) • Manually assigning an IP address, as described in this section • Using Dynamic Host Configuration Protocol (DHCP)-based autoconfiguration, as described in this section Caution Changing the switch IP address ends any CMS, Telnet, or Simple Network Management Protocol (SNMP) session. To restart your CMS session, enter the new IP address in the browser Location field (Netscape Communicator) or Address field (Internet Explorer). To restart your CLI session through Telnet, follow the steps described in the "Accessing the CLI" section on page 3-7. Note If you enabled the DHCP feature, the switch assumes you are using an external server for IP address allocation. While this feature is enabled, any values you manually enter (from the CMS or from the ip address command) are ignored. These sections cover these topics: • "Manually Assigning and Removing Switch IP Information" section on page 6-2 • "Using DHCP-Based Autoconfiguration" section on page 6-3 Manually Assigning and Removing Switch IP Information You can manually assign an IP address, mask, and default gateway to the switch. The mask identifies the bits that denote the network number in the IP address. When you use the mask to subnet a network, the mask is then referred to as a subnet mask. The broadcast address is reserved for sending messages to all hosts. The CPU sends traffic to an unknown IP address through the default gateway. Beginning in privileged EXEC mode, follow these steps to enter the IP information: Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Command configure terminal interface vlan 1 ip address ip_address subnet_mask exit ip default-gateway ip_address end show running-config Purpose Enter global configuration mode. Enter interface configuration mode, and enter the VLAN to which the IP information is assigned. VLAN 1 is the default management VLAN, but you can configure any VLAN from IDs 1 to 1001. Enter the IP address and subnet mask. Return to global configuration mode. Enter the IP address of the default router. Return to privileged EXEC mode. Verify that the information was entered correctly by displaying the running configuration. If the information is incorrect, repeat the procedure. Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide 6-2 78-6511-08