
Pessoal, esta dica foi passada pelo Leandro Lima, e achei que deveria compartilhar com todos…!
O Leandro, pesquisando pela Net, encontrou um blog MUITO interessante (recomendo) mantido por Tassos, um indivíduo que conseguiu obter seu CCIE em apenas 3 meses. No blog dele ele passa as dicas de como conseguiu esta proeza. Bom, neste mesmo blog ele mostra que, se utilizarmos a plataforma 3725 com IOS Enterprise e módulo NM-16ESW no Dynamips, não existe a necessidade de utilizar o modo VLAN Database (que por sinal, já entrou em estado “depracated”, segundo a Cisco). Nos exames mais atuais (CCNA incluso), a configuração de VLANs é feita diretamente no modo global de configuração.
Para conseguir isso, eis o que você precisaria:
[localhost]
[[3725]]
image = C:/Program Files/Dynamips/images/C3725-AD.BIN
ram = 148
disk0 = 8
disk1 = 0
idlepc = 0x6148b594
[[Router R1]]
model = 3725
slot1 = NM-16ESW
console = 2001
Vejam abaixo como a coisa realmente, funciona!
Router(config)#vlan 10
Router(config-vlan)#name TESTE_BLOG_CCNA
Exemplo com VTP:
Router(config)#vtp ?
domain Set the name of the VTP administrative domain.
file Configure IFS filesystem file where VTP configuration is stored.
interface Configure interface as the preferred source for the VTP IP updater
address.
mode Configure VTP device mode
password Set the password for the VTP administrative domain
pruning Set the adminstrative domain to permit pruning
version Set the adminstrative domain to VTP version
Router(config)#vtp mode ?
client Set the device to client mode.
server Set the device to server mode.
transparent Set the device to transparent mode.
Router(config)#vtp mode client
Só um porém… para a coisa toda funcionar, é preciso fazer o “squeeze” da flash, do contrário, o erro abaixo é apresentado:
Setting device to VTP CLIENT mode.
% not enough space on flash to store vlan database. trying squeeze...
squeeze of flash complete
% not enough space on flash to store vlan database even after squeeze
Portanto, basta fazer o seguinte:
Router#erase flash:
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Erase of flash: complete
Router#squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
Squeeze of flash complete
Router#wr
Building configuration...
[OK]
Router#
E depois, dar um reload no switch (via dynagen).
=> reload R1
100-VM 'R1' stopped
100-VM 'R1' started
=>
=> telnet R1
Agora, não devemos ter problemas:
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#vlan 123
VTP VLAN configuration not allowed when device is in CLIENT mode.
Router(config)#vtp mode server
Setting device to VTP SERVER mode
Router(config)#vlan 123
Router(config-vlan)#name TESTE_BLOG_CCNA_02
Router(config-vlan)#^Z
Router#
*Mar 1 00:02:57.295: %SYS-5-CONFIG_I: Configured from console by console
Router#sh vlan-sw br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
123 TESTE_BLOG_CCNA_02 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Router#
Espero que tenham gostado!
PS: Esta dica permite também a configuração de Extended VLANs
! Ah, sim, e as configs de VLANs ou do VTP não são perdidas neste caso
!
Abs!
Marco Filippetti