Skip to main content

2.5: Assigning an IP Address & Default Gateway to a 2950 Switch

The Switch will also need an IP Address for Telnet communications along with a default gateway address. The following diagram illustrates an example of our network. Router-B e 0 interface is the default gateway for our PC, Server and Switch

The IP Address on a 2950 Switch is assigned to VLAN 1. From Global Configuration mode type the INTERFACE command from the prompt: Switch(config)# where Switch is the hostname

INTERFACE VLAN 1

This enters the VLAN 1 interface

SHUTDOWN

IP ADDRESS 192.168.20.2 255.255.255.0

This assigned the class C IP Address of 192.168.20.2 to the Switch VLAN 1 Interface

NO SHUTDOWN

EXIT

 

From Global Configuration mode Switch(config)#

IP DEFAULT-GATEWAY 192.168.20.1

The default gateway of 192.168.20.1 is assigned to the Switch, in this example this is the IP Address of the Router on the local LAN connecting the Switch to a remote network