Wednesday, June 18, 2008

Setting IP Address and Default Gateway on a Cisco Switch

Setting IP Address and Default Gateway

1900 Series Switch

1900Switch(config)#ip address 172.16.10.2 255.255.255.0

Sets the IP address and mask to allow for remote access to the switch

1900Switch(config)#ip default-gateway 172.16.10.1

Sets the default gateway address to allow IP information an exit past the local network

1900Switch(config)#


2900/2950 Series Switch

2900Switch(config)#int vlan1

Enters virtual interface for VLAN 1, the default VLAN on the switch

2900Switch(config-if)#ip address 172.16.10.2 255.255.255.0

Sets the IP address and mask to allow for remote access to the switch

2900Switch(config-if)#exit

2900Switch(config)#ip default-gateway 172.16.10.1

To allow IP information an exit past the local network


Tip:

For the 2900/2950 series switches, the IP address of the switch is just thatthe IP address for the entire switch. That is why you set the address in VLAN 1the default VLAN of the switchand not in a specific Ethernet interface.

0 comments: