
Basic Switch Confi guration
369
CertPrs8
/CCNA
®
Cisco Certified Network Associate Study Guide/Richard Deal/149728-5/Chapter 12
Switch-A(config-line)#
login
Switch-A(config-line)#
exit
Switch-A(config)#
enable secret secretpass123
Switch-A(config)#
service password-encryption
Switch-A(config)#
banner motd $
This is a private system and only authorized individuals
are allowed!
All others will be prosecuted to the fullest extent of the law!
$
Switch-A(config)#
interface vlan 1
Switch-A(config-vlan)#
ip address 10.0.1.2 255.255.255.0
Switch-A(config-vlan)#
exit
Switch-A(config)#
ip default-gateway 10.0.1.1
Switch-A(config)#
end
Switch-A#
copy running-config startup-config
In this example, the switch was given a hostname (Switch-A), passwords for the
console, VTYs, Privilege EXEC mode, a login banner, an IP address for VLAN 1,
and a default gateway; plus, I saved the switch’s configuration to NVRAM.
12.02. The CD includes a multimedia demonstration of placing a basic
configuration on a 2950 switch.
PC-B
10.0.1.11/24
0000.1111.CCCC
PC-A
10.0.1.10/24
0000.1111.AAAA
Switch-A
10.0.1.2/24
Router-A
FA0/0:
10.0.1.1/24
0000.1111.BBBB
1
2
3
FIGURE 12-2
Simple switch
configuration
example
ON THE CD
CertCam
ch12.indd 369
3/12/08 4:45:08 PM