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.





CCNA Self-Study(c) CCNA Portable Command Guide
CCNA Portable Command Guide
ISBN: 1587201585
EAN: 2147483647
Year: 2006
Pages: 261
Authors: Scott Empson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net