Download Print this page

Cisco WS-C2960G-8TC-L Configuration page 13

Swtich configuration
Hide thumbs Also See for WS-C2960G-8TC-L:

Advertisement

FIGURE 12-2
Simple switch
configuration
example
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
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.
ON THE CD
CertCam
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
are allowed!
Basic Switch Configuration
PC-B
10.0.1.11/24
0000.1111.CCCC
1
2
3
369

Advertisement

loading