background image
Connecting and Logging In to a Switch
71
Cisco recommends that you use the VLAN 1 for management of the
switch device and then create other VLANs for users. In other words, they
don't recommend what we just showed you.
1900 IOS-Based Switch
To set the IP configuration on a 1900 switch, use the command ip address.
By typing the command show ip, you can see the configuration (by default,
nothing is set):
Todd1900EN#sh ip
IP Address: 0.0.0.0
Subnet Mask: 0.0.0.0
Default Gateway: 0.0.0.0
Management VLAN: 1
Domain name:
Name server 1: 0.0.0.0
Name server 2: 0.0.0.0
HTTP server : Enabled
HTTP port : 80
RIP : Enabled
The default gateway should also be set, and the command is ip default-
gateway
:
Todd1900EN#config t
Enter configuration commands, one per line. End with
CNTL/Z
Todd1900EN(config)#ip address 172.16.10.16 255.255.255.0
Todd1900EN(config)#ip default-gateway 172.16.10.1
Todd1900EN(config)#
Todd1900EN#sh ip
IP Address: 172.16.10.16
Subnet Mask: 255.255.255.0
Default Gateway: 172.16.10.1
Management VLAN: 1
Domain name:
Name server 1: 0.0.0.0
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com