How to Set an IP Through a Console Connection on a Cisco 2960 Switch
The Cisco Catalyst 2960 switch supports the assignment of IP addresses on all network interfaces. Adding an IP address to the Cisco Catalyst 2960 configuration is a necessary step to enable remote administration of the switch from any location on the network (which is preferred over the alternative administration method that requires physical connection to the serial console port on the switch). Configuring an IP address on the Cisco Catalyst 2960 using a serial console connection is a straightforward process that is the same for all interfaces on the switch.
Things You'll Need
- Cisco Catalyst serial console cable
- Windows XP computer with 9 pin serial port
- Privileged exec password for the Cisco Catalyst 2960
- IP address and subnet mask for the switch
Run a Cisco serial console cable from the Cisco Catalyst 2960 serial console port to the to the serial port on a Windows XP computer.
Open the "Hyperterminal" program by selecting the "Start" button and click "Run" and type "hypertrm" in the "Run" box that appears, and then press the "Enter" key.
Type "Cisco 2960" in the "HyperTerminal" window "Name:" field that appears and press the "Enter" button.
Select the "Connect using:" drop down box and then in the menu that appears click the "Com port" that connects the Windows XP computer to the Cisco 2960 and press the "Enter" key.
Click the "Bits per second:" drop-down option and select the "9600" setting in the menu. Then click the "Flow Control" drop-down option and select "None" in the menu and press the "Enter" key.
Touch the "Enter" key a few times and the Cisco command prompt will display. Type "enable" and press the "Enter" key and then type the password and press "Enter" again if requested.
Type "config terminal" and tap the "Enter" key. Then type "interface Vlan1" and tap the "Enter" key and the command prompt will move into "Interface Configuration Mode".
Enter "ip address x.x.x.x y.y.y.y", substituting the "x.x.x.x y.y.y.y" with the assigned IP address and subnet mask for the switch and tap the "Enter" key. Then type "exit" and tap the "Enter" key to leave "Interface Configuration Mode" then type "ip default-gateway g.g.g.g", substituting "g.g.g.g" with the gateway IP address for the network and tap the "Enter" key.
Type "end" and tap the "Enter" key and then type "copy running-config startup-config" and tap the "Enter" key. Type "exit" and tap the "Enter" key.