Professional Documents
Culture Documents
Switch(config)#enable password
cisco
Switch(config)#line console 0
Switch(config-line)#login
Switch(config-line)#password cisco
Switch(config-line)#exit
3
Switch(config-line)#line vty 0 4
Switch(config-line)#login
Switch(config-line)#password cisco
Switch(config-line)#exit
4
5
VTP l mt giao thc c quyn ca Cisco, giao thc ny cho phpcu hnh
VLAN (thm, xa, hoc sa cc thng tin VLAN)s c duy tr tp trung
thng qua mt min. Tc l trong cng 1 min s c t nht 1 switch lm
my ch v cc switch khc lm my khch , my khch v
my ch s c ng b vi nhau . Ta c th to vlan , xa vlan , sa
cha thng tin vlan trn my ch th my khch s t ng hc hi theo
my ch m ta khng cn phi lm
Ch
- Trc khi ta cu hnh VTP ta phi bt cng Trunk trn tt c cc ng ni
gia switch switch , switch router
- Tt c cc switch hot ng ch VTP server hoc VTP client s phi
cng tn domain. Ch c cc switch c cng tn domain mi c th trao i
thng tin vlan vi nhau
- Trong cng mt min ( cng tn domain), ch c cc switch c chung
password th mi c th trao i thng tin vlan vi nhau
Cu hnh VTP
- Trn con switch c chn lm switch server
Switch(config)# vtp domain Cisco
To ra mt min chung ca cc
switch c tn l
cisco
Switch(config)# vtp password cisco
t mt khu cho cc vlan trong
min l cisco
Switch(config)# vtp mode server
t switch ch my ch
- Trn con switch c chn lm switch client
Switch(config)# vtp domain Cisco
To ra mt min chung ca cc
switch c tn l
cisco
t mt khu cho cc vlan trong
min l cisco
t switch ch my khch
VTP
Hin th b m VTP ca switch
IV) Vlan
To v t tn cho vlan
Switch (config)# vlan 10
To vlan 10 v ng thi
chuyn cu hnh vo ch
VLAN configuration
t tn cho vlan 10 l
Admin
Xa vlan 10
Gn a ch cho vlan
Switch (config)# interface vlan 10
Switch(config-if)# ip add 192.168.10.2
255.255.255.0
Switch(config-if)#exit
V) Port security
Cu hnh
Switch (config)#int e0/3
Switch (config-if)#switchport mode
access
Switch (config-if)#switchport portsecurity
Switch(config-if)#sw port-security
maximum 2
Switch(config-if)#sw port-security
mac-address 0010.113D.8954
Switch(config-if)#sw port-security
mac-address 00D0.BA47.5D57
Switch(config-if)#sw port-security
mac-address sticky
Switch(config-if)#sw port-security
violation [shutdown hoc restrict
hoc protect ]
ch lm vic ca switch 1
On
Auto
Desirable
Active
Active
ch lm vic ca switch 2
On
Desirable
Desirable
Active
Passive
Ch
- Bn c th gp 2- 16 ng link vt l thnh 1 ng
- Tt c cc port phi ging nhau v tham s
+ tc v duplex
+ Khng c php nhm fast ethernet v gigabit ethernet v 1 nhm
+ Khng th s dng ng thi c 2 giao thc trong 1 ng link
- Etherchannel c s dng gia switch layer 3 -switch layer 3 hay
switch layer2 switch layer 2
- Ta phi cu hnh etherchannel vi tt c cc ng link m u bi yu cu
gp. c th tin cho vic cu hnh chng ta s s dng knh range
- range l lnh m chng ta dng cu hnh ging cng 1 lc cc cng
V d : switch (config)#interface range f0/1-3
Ngha tt c cc cng f0/1, f0/2, f0/3 s c cu hnh ging nhau
- lnh range ch c dng khi cc cng cu hnh ging nhau l lip tip
Cu hnh
Switch (config ) # interface range f0/8-10
Switch(config-if-range)#channel-group
1 mode {desirable | auto | on | passive
| active}
Switch(config-if-range)# exit
Switch ( config ) # interface port-channel 1