Change Device Name :
Hostname
For Example : (config)# hostname sw1
Hostname
For Example : (config)# hostname sw1
Set Password on Device :
Line con 0
For example : (config)# line con 0
(Config-line)# login local
(Config-line)# username admin password 123
(Config-line)# exit
Set password enable mode :
(config)# enable secret 123
Secret —-> md5 —->encryped
Password —> cleartext
Line con 0
For example : (config)# line con 0
(Config-line)# login local
(Config-line)# username admin password 123
(Config-line)# exit
Set password enable mode :
(config)# enable secret 123
Secret —-> md5 —->encryped
Password —> cleartext
Change Device Time :
Clock time zone <name> <hours> <minutes>
For example : (config)# clock time zone cisco 11 30
Clock time zone <name> <hours> <minutes>
For example : (config)# clock time zone cisco 11 30
Create vlan :
Vlan <number>
Vlan <name>
For example : (config)# vlan 10
(Config-vlan)# name srv
show created vlan :
(Config)# do show vlan brief
Vlan <number>
Vlan <name>
For example : (config)# vlan 10
(Config-vlan)# name srv
show created vlan :
(Config)# do show vlan brief
select one or multiple interfaces and set vlan :
(config)# interface fastEthernet <num>
(config)# interface range fa <num>
(config-if)# switchport mode access
(config-if)# switchport access vlan <num>
(config)# interface fastEthernet <num>
(config)# interface range fa <num>
(config-if)# switchport mode access
(config-if)# switchport access vlan <num>
trunk config :
L2 Switches:
(config)# int fa <num>
(config-if)# switchport mode trunk
MLS Switches:
(config)# int fa <num>
(config-if)# switchport trunk encapsulation dot1q
(config-if)# switchport mode trunk
L2 Switches:
(config)# int fa <num>
(config-if)# switchport mode trunk
MLS Switches:
(config)# int fa <num>
(config-if)# switchport trunk encapsulation dot1q
(config-if)# switchport mode trunk
vtp config :
(config)# vtp domain <name>
(config)# vtp password <num>
(config)# vtp version <num>
(config)# vtp mode <client|server|transparent>
show vtp ?
counters VTP statistics
password VTP password
status VTP domain status
(config)# vtp domain <name>
(config)# vtp password <num>
(config)# vtp version <num>
(config)# vtp mode <client|server|transparent>
show vtp ?
counters VTP statistics
password VTP password
status VTP domain status
Vlan Filtering :
Manual config :
(config)# int fa <num>
(config-if)# switchport trunk allowed vlan <num>
Help:
add add VLANs to the current list
all all VLANs
except all VLANs except the following
none no VLANs
remove remove VLANs from the current list
Automatic config :
(config)# vtp pruning
Manual config :
(config)# int fa <num>
(config-if)# switchport trunk allowed vlan <num>
Help:
add add VLANs to the current list
all all VLANs
except all VLANs except the following
none no VLANs
remove remove VLANs from the current list
Automatic config :
(config)# vtp pruning
Port Security Config :
Enable feature :
(config)# int fa <num>
(config-if)# switchport port-security
Select manually :
(config-if)# switchport port-security mac-address <H.H.H>
Select Automatically :
(config-if)# switchport port-security mac-address sticky
Accept one or more mac Address per interface :
(config-if)# switchport port-security maximum <num>
By Default : one mac address
Select Port security Mode :
(config-if)# switchport port-security violation <protect|restrict|shutdown>
By Default Mode : Shutdown
Enable feature :
(config)# int fa <num>
(config-if)# switchport port-security
Select manually :
(config-if)# switchport port-security mac-address <H.H.H>
Select Automatically :
(config-if)# switchport port-security mac-address sticky
Accept one or more mac Address per interface :
(config-if)# switchport port-security maximum <num>
By Default : one mac address
Select Port security Mode :
(config-if)# switchport port-security violation <protect|restrict|shutdown>
By Default Mode : Shutdown