3. Switch config files
Last edited January 29, 2009
More by KHobbits »
Sections:
Erase vlans
en
dir flash:
delete flash:vlan.dat

erase start

reload
2 vlan + trunk
en
vlan database
vlan 10 name student
vlan 20 name staff
exit

conf t
int fa0/1
switchport mode trunk

int fa0/2
switchport access vlan 10

int range fa0/3 - 4
switchport access vlan 20
exit
exit
VTP

Vlan Server
en
vlan database
vtp server
vtp domain apple
vtp password pear
exit

show vtp status
show vlan
Vlan Client
(Erase switch first)

en
vlan database
vtp client
vtp domain apple
vtp password pear
exit

show vtp status
show vlan

(Dont forget to set port data)
Port Security

Switchport security sticky
conf t
interface FastEthernet0/24
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
exit

interface range fa0/1 - 12
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky/H.H.H
exit

exit
Auto Recovery from protect shutdown
conf t
errdisable recovery cause psecure-violation
errdisable recovery interval 300
exit

recovery interval is in seconds, default being 300
Other switchport security
Switchport port-security violation protect shutdown - (default) - disables the port on vilolation
Switchport port-security violation protect - drops packet
Switchport port-security violation protect restrict - drops packet and increment violation counter
Show commands
Show port-security int fa0/1 – shows port security details
Show port-security address – shows addresses configured
The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.