Professional Documents
Culture Documents
Mn mt cu hi ca mt ngi khc :
Switch#show flash:
Directory of flash:/
2 -rwx 616 Mar 1 1993 00:09:55 +00:00 vlan.dat.renamed
4 -rwx 2136 Mar 1 1993 00:09:46 +00:00 config.text.renamed
5 drwx 192 Mar 1 1993 00:08:13 +00:00 c3750-ipbasek9-mz.122-25.SED1
363 -rwx 24 Mar 1 1993 00:09:46 +00:00 private-config.text.renamed
Private-config.text
15998976 bytes total (7266816 bytes free)
Xin hi cc file in m c ngha l g?Ti sao li c cc file ny?Xin cm n!
Hm nay thy bn vui mnh cng mo mui tr li.
Sau khi mnh xa cu hnh switch bng 2 command erase start v delete vlan.dat th
nhng cu hnh ny cha thc s mt hn m n vn cn lu trong flash ca switch.
V i tn thnh vlan.dat.renamed, config.text.renamed
Vic i tn nh vy nhm i ph vi tnh hung anh IT ung ru xn hoc b b
bun qu ngi xa cu hnh switch chi.
Ngy mai tnh li thy hi hn th vn c c hi... quay u l b
Cch quay u rename flash:vlan.dat.renamed flash:vlan.dat
tng t vi cc file khc.
Cho bn , mnh a ra mt v d , bn s hiu r vn hn :
Thit b thc hin : Switch 3560
u tin trn switch mnh to rt nhiu cu hnh v VTP, VLAN ...
Switch(config)#vtp domain CISCO
Changing VTP domain name from NULL to CISCO
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp password PASSWORD
Setting device VLAN database password to PASSWORD
Switch(config)#int range fa0/1 - 5
Switch(config-if-range)#desc -> Tui thch b tui
Switch(config-if-range)#vlan 2-10,13,69
Switch(config-vlan)#^Z
Switch#sh vtp
00:07:19: %SYS-5-CONFIG_I: Configured from console by
consolestatus
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 16
VTP Operating Mode : Server
VTP Domain Name : CISCO
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 09C 062 0xCB 0xFE 0xB7 089 04A 0xB8
Configuration last modified by 0.0.0.0 at 3-1-93 00:07:19
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#sh vlan sum
Number of existing VLANs : 16
Number of existing VTP VLANs : 16
Number of existing extended VLANs : 0 Switch#sh int desc
Interface Status Protocol Description
Vl1 admin down down
Fa0/1 down down -> Tui thch b tui
Fa0/2 down down -> Tui thch b tui
Fa0/3 down down -> Tui thch b tui
Fa0/4 down down -> Tui thch b tui
Fa0/5 down down -> Tui thch b tui
v hostname
Switch(config)#hostname sw1
sw1(config)#^Z
sw1#
00:08:10: %SYS-5-CONFIG_I: Configured from console by
console
sw1#write
Building configuration
[OK]
Quote:
sw1#sh flash
Directory of flash:/
2 -rwx 1216 Mar 01 1993 00:07:19 vlan.dat
3 -rwx 5 Mar 01 1993 00:08:26 private-config.text
5 drwx 192 Mar 01 1993 00:05:28 c3560-i9-mz.121-19.EA1d
85 -rwx 3485 Mar 01 1993 00:08:26 config.text
15998976 bytes total (9540608 bytes free)
Sau mnh nhn vo nt mode trn switch 3560, khong 10s v rt ra ( dng reset
li cu hnh)
sw1#
00:09:18: %SYS-7-NV_BLOCK_INIT: Initalized the geometry of
nvram
00:09:18: %EXPRESS_SETUP-6-CONFIG_IS_RESET: The
configuration is reset and the system will now reboot
00:09:19: %SYS-5-RELOAD: Reload requested The switch comes
back up:
Switch uptime is 2 minutes
System returned to ROM by power-on
Quote:
Switch#sh start
startup-config is not present
Code:
Switch#sh flash
Directory of flash:/
2 -rwx
1216
Mar 01 1993 00:07:19 vlan.dat
3 -rwx
5
Mar 01 1993 00:08:26 privateconfig.text.renamed
5 drwx
192
Mar 01 1993 00:05:28 c3560-i9-mz.121-19.EA1d
85 -rwx
3485
Mar 01 1993 00:08:26 config.text.renamed
15998976 bytes total (9540608 bytes free)
Quote:
Switch#sh vtp statu
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 16
VTP Operating Mode : Server
VTP Domain Name : CISCO
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 09C 062 0xCB 0xFE 0xB7 089 04A 0xB8
Configuration last modified by 0.0.0.0 at 3-1-93 00:07:19
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#sh vlan sum
Number of existing VLANs : 16
Number of existing VTP VLANs : 16
Number of existing extended VLANs : 0
Mnh xin gii thch tnh hung bn gp phi nh sau :
+ Sau khi bn xa ton b cu hnh bng 2 lnh :
erase start + delete vlan.dat
sau bn reload li switch v dng lnh show flash s c kt qu :
Quote:
Switch#show flash:
Directory of flash:/
2 -rwx 616 Mar 1 1993 00:09:55 +00:00 vlan.dat.renamed
4 -rwx 2136 Mar 1 1993 00:09:46 +00:00 config.text.renamed
5 drwx 192 Mar 1 1993 00:08:13 +00:00 c3750-ipbasek9-mz.122-25.SED1
363 -rwx 24 Mar 1 1993 00:09:46 +00:00 private-config.text.renamed
+ Gii thch v kt qu trn :
Switch#sh start
Using 3485 out of 524288 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname sw1
!
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
interface FastEthernet0/1
description ->Tui thch b tui
no ip address
no mdix auto
!
interface FastEthernet0/2
description -> Tui thch b tui
no ip address
no mdix auto
..
V iu quan trng nht bn phi dng thm cu lnh ny :
Code:
Switch#copy start run
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname sw1
!
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
interface FastEthernet0/1
description -> Tui thch b tui
no ip address
================================================== ===
Mt cu hi t ra tip theo cho bn :
th dng lnh sau v xem kt qu :
Code:
sw1(config)#no setup express
Theo nh mnh tham kho th mt s gio trnh official ca cisco thng a ra rt chi
tit v y kin thc v cng ngh m h gii thiu , training nhng li t khi a cho
hc vin nhng ng dng thc t khi i lm .
Nhn y mnh xin demo th topic ny trong phm vi hc ca module BCMSN , mong
cc bn s cng mnh to thnh nhng ti liu tht b ch m khng c sch no c th
cung cp cho ta c v n c xy nn t "kinh nghim xng mu"
Tips 1 :
Trng hp : Chng ta lm LAB vnpro th thy rng mun xa cu hnh vlan th lm
ci cp :
Code:
Switch#delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
Switch#
Ri lm tip cu lnh
Code:
Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files!
Continue? [confirm]
[OK]
Erase of nvram: complete
kim tra:
1) Nu cp CCENT , mi ngi mt con switch th thy cu hnh sau khi reload
c a v dng default (trng lc khng c g)
2) Nu cp cao hn t, ang hc VTP v cho n chy VTP th thy m ln sau , cu
hnh VLAN cn nguyn.Sau khi c support hoc nghim th ta bit switch ang hc
t nhng thng cng mng => th l ta lm li nhng ln ny ta shutdown tt c cc
port u vi switch khc hoc rt cable
=> Thnh cng : xa ht cu hnh ca switch ri.
Trng hp : Chng ta lm cng ty "phc_p", h thng ang chy ngon lnh gi
lm sau y. Ri vn l ta c bao gi c s thit b u m rt cable hay nu
shutdown th h thng coi nh cng tiu.
Mt anh bn ny ra nh sau :
Quote:
Chng ta cng thc hin vic xa vlan.dat nhng ta chuyn switch sang mode
transparent ri mi reload .
Theo bn th n c vn g khng ?
Mng bn ang dng c th chy bnh thng khng ?
u tin Phc cm n s ng h ca mi ngi cho topic ny, vn mu cht l mng
ang hat ng v ngi qun tr khng mun n b t qun. Tuy nhin , vi trng hp
cng ty "phc_p" bn trn, admin lm nh vy liu c kh khi.
Th m hnh sau :
switch 1 (server)- switch 2(server)- switch 3 (client) cng chy VTP domain v ti switch
1 to vlan 2,3,4
Sau ta chuyn switch2 sang mode transparent. V to trn switch 1 vlan 5
Ta cm 1 PC thuc vlan 5 ca switch 1 c ip l 192.168.1.1/24 v 1 PC thuc vlan 5 ca
switch 3 c ip l 192.168.1.2/24
Cu hi t ra : 2 pc ny c ping thy nhau khng v v sao c hay v sao khng ?
Cu chuyn vui , nghe bun thm nht : " Mt anh bn ca ti, sao mt ln nhu xn
chi 2 chiu m sao tnh dy "m hi m k" qu tri.
1) Chiu 1 : hc ccna c cu lnh ny l thc nht nn dng lun " erase start". Kh ni
nu nh xy ra trng hp ny sau khi l tay th hy copy li " copy run start". AI d anh
ta qunh qun sau " chi chiu cui" => restart li ! Hic !
2) Chiu th 2 : cu lnh m anh ta quen dng lm lab VNPRO nht ngai chiu 1 l "
delete vlan.dat". Nu nh chi chiu 1 m khng c chiu 2 th khi khi ng ln " cn
cht g nh" => Nhng ti khng ng anh y chi c 2 chiu.
Mt xanh nh t chui , anh ta nhanh chng n gp ti, nu khng cu c th coi
nh anh ta " tha h nh gi v". i tht kh.
Nu nh bn v tnh lm vo trng hp trn , hy tham kho bi hng dn sau xem
Thit b thc hin : Switch 3560
u tin trn switch mnh to rt nhiu cu hnh v VTP, VLAN ...
Switch(config)#vtp domain CISCO
Changing VTP domain name from NULL to CISCO
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp password PASSWORD
Setting device VLAN database password to PASSWORD
Switch(config)#int range fa0/1 - 5
Switch(config-if-range)#desc -> Tui thch b tui
Switch(config-if-range)#vlan 2-10,13,69
Switch(config-vlan)#^Z
Switch#sh vtp
00:07:19: %SYS-5-CONFIG_I: Configured from console by
consolestatus
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 16
VTP Operating Mode : Server
VTP Domain Name : CISCO
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 09C 062 0xCB 0xFE 0xB7 089 04A 0xB8
Configuration last modified by 0.0.0.0 at 3-1-93 00:07:19
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#sh vlan sum
Number of existing VLANs : 16
Number of existing VTP VLANs : 16
Number of existing extended VLANs : 0 Switch#sh int desc
Interface Status Protocol Description
c3560-i9-mz.121-19.EA1d
85 -rwx
3485
Mar 01 1993 00:08:26
15998976 bytes total (9540608 bytes free)
config.text.renamed
Quote:
Switch#sh vtp statu
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 16
VTP Operating Mode : Server
VTP Domain Name : CISCO
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 09C 062 0xCB 0xFE 0xB7 089 04A 0xB8
Configuration last modified by 0.0.0.0 at 3-1-93 00:07:19
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#sh vlan sum
Number of existing VLANs : 16
Number of existing VTP VLANs : 16
Number of existing extended VLANs : 0
Mnh xin gii thch tnh hung bn gp phi nh sau :
+ Sau khi bn xa ton b cu hnh bng 2 lnh :
erase start + delete vlan.dat
sau bn reload li switch v dng lnh show flash s c kt qu :
Quote:
Switch#show flash:
Directory of flash:/
2 -rwx 616 Mar 1 1993 00:09:55 +00:00 vlan.dat.renamed
4 -rwx 2136 Mar 1 1993 00:09:46 +00:00 config.text.renamed
5 drwx 192 Mar 1 1993 00:08:13 +00:00 c3750-ipbasek9-mz.122-25.SED1
363 -rwx 24 Mar 1 1993 00:09:46 +00:00 private-config.text.renamed
+ Gii thch v kt qu trn :
Code:
vlan.dat =========> vlan.dat.renamed
config.text =========> config.text.renamed
private-config.text =========> private-config.text.renamed
Switch#sh start
Using 3485 out of 524288 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname sw1
!
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
interface FastEthernet0/1
description ->Tui thch b tui
no ip address
no mdix auto
!
interface FastEthernet0/2
description -> Tui thch b tui
no ip address
no mdix auto
..
V iu quan trng nht bn phi dng thm cu lnh ny :
Code:
Switch#copy start run
================================================== ===
Mt cu hi t ra tip theo cho bn :
th dng lnh sau v xem kt qu :
Code:
sw1(config)#no setup express
Do you have a network with a lot of broadcasts that needs better performance?
Do you have subnets and/or VLANs that are currently connected via a router?
Do you need higher performance VLANs?
Do departments need their own broadcast domains for performance or security?
Are you considering implementing VLANs?
first create
squeeze log by erasing the entire device
Error squeezing flash(No space left on device)
Error on database apply 38: NV storage failure