In addition to Nadeem bhai, i have tested the extended vlans and i found
that while creating extended vlans flash file is not created ...
Router(config)#do sh vlan-s br
VLAN Name                             Status    Ports
---- -------------------------------- ---------
-------------------------------
1    default                          active    Fa1/0, 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
10   VLAN0010                         active
20   VLAN0020                         active
30   VLAN0030                         active
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#do sh flash
System CompactFlash directory:
File  Length   Name/status
  1   660      vlan.dat [deleted]
  2   720      vlan.dat [deleted]
  3   720      vlan.dat [deleted]
  4   780      vlan.dat [deleted]
  5   780      vlan.dat
[3980 bytes used, 16773232 available, 16777212 total]
16384K bytes of ATA System CompactFlash (Read/Write)
Router(config)#vlan 2000
Router(config-vlan)#eit
                     ^
% Invalid input detected at '^' marker.
Router(config-vlan)#exit
Router(config)#do sh flash
System CompactFlash directory:
File  Length   Name/status
  1   660      vlan.dat [deleted]
  2   720      vlan.dat [deleted]
  3   720      vlan.dat [deleted]
  4   780      vlan.dat [deleted]
  5   780      vlan.dat
[3980 bytes used, 16773232 available, 16777212 total]
16384K bytes of ATA System CompactFlash (Read/Write)
Router(config)#vlan 3000
Router(config-vlan)#exit
Router(config)#do sh flash
System CompactFlash directory:
File  Length   Name/status
  1   660      vlan.dat [deleted]
  2   720      vlan.dat [deleted]
  3   720      vlan.dat [deleted]
  4   780      vlan.dat [deleted]
  5   780      vlan.dat
[3980 bytes used, 16773232 available, 16777212 total]
16384K bytes of ATA System CompactFlash (Read/Write)
Router(config)#do wr
Building configuration...
[OK]
Router(config)#do sh flash
System CompactFlash directory:
File  Length   Name/status
  1   660      vlan.dat [deleted]
  2   720      vlan.dat [deleted]
  3   720      vlan.dat [deleted]
  4   780      vlan.dat [deleted]
  5   780      vlan.dat
[3980 bytes used, 16773232 available, 16777212 total]
16384K bytes of ATA System CompactFlash (Read/Write)
and while creating normal vlans the flash file is created ...
System CompactFlash directory:
File  Length   Name/status
  1   660      vlan.dat [deleted]
  2   720      vlan.dat [deleted]
  3   720      vlan.dat [deleted]
  4   780      vlan.dat [deleted]
  5   780      vlan.dat
[3980 bytes used, 16773232 available, 16777212 total]
16384K bytes of ATA System CompactFlash (Read/Write)
Router(config)#vlan 40
Router(config-vlan)#
Router(config-vlan)#exit
Router(config)#
Router(config)#do sh vlan-s b
VLAN Name                             Status    Ports
---- -------------------------------- ---------
-------------------------------
1    default                          active    Fa1/0, 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
10   VLAN0010                         active
20   VLAN0020                         active
30   VLAN0030                         active
40   VLAN0040                         active
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
2000 VLAN2000                         active
3000 VLAN3000                         active
Router(config)#do sh flash
System CompactFlash directory:
File  Length   Name/status
  1   660      vlan.dat [deleted]
  2   720      vlan.dat [deleted]
  3   720      vlan.dat [deleted]
  4   780      vlan.dat [deleted]
  5   780      vlan.dat [deleted]
  6   840      vlan.dat
[4884 bytes used, 16772328 available, 16777212 total]
16384K bytes of ATA System CompactFlash (Read/Write)
Thanks all for putting interest in it ... so Moral: vlan.dat file is for VTP
use only they maintain the database in vlan.dat file and basically vlan.dat
is exchanged among switches if they are in server/client mode ...
On Wed, Dec 1, 2010 at 7:37 PM, Nadeem Rafi <nrafia_at_gmail.com> wrote:
>
>
> Let me do it practically to clear few points........
>
>
> just booted one GNS3 switch..
>
> SW1#sh vtp st
> SW1#sh vtp status
> VTP Version                     : 2
> Configuration Revision          : 0
> Maximum VLANs supported locally : 36
> Number of existing VLANs        : 5
> VTP Operating Mode              : Server
> VTP Domain Name                 :
> VTP Pruning Mode                : Disabled
> VTP V2 Mode                     : Disabled
> VTP Traps Generation            : Disabled
> MD5 digest                      : 0xBF 0x86 0x94 0x45 0xFC 0xDF 0xB5 0x70
> Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
> Local updater ID is 0.0.0.0 (no valid interface found)
>
>
> Let me see vlans
>
> SW1#sh vlan-s
>
> 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
> 1002 fddi-default                     act/unsup
> 1003 token-ring-default               act/unsup
> 1004 fddinet-default                  act/unsup
> 1005 trnet-default                    act/unsup
>
> VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1
> Trans2
> ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------
> ------
> 1    enet  100001     1500  -      -      -        -    -        1002
> 1003
> 1002 fddi  101002     1500  -      -      -        -    -        1
> 1003
> 1003 tr    101003     1500  1005   0      -        -    srb      1
> 1002
> 1004 fdnet 101004     1500  -      -      1        ibm  -        0      0
>
> 1005 trnet 101005     1500  -      -      1        ibm  -        0      0
>
> SW1#
> SW1#
>
>
> Contents of flash
>
> SW1#sh flash:
>
> System CompactFlash directory:
> No files in System CompactFlash
> [0 bytes used, 67108860 available, 67108860 total]
> 65536K bytes of ATA System CompactFlash (Read/Write)
>
>
> Let me change the mode from server to Transparent
>
> SW1#conf t
> Enter configuration commands, one per line.  End with CNTL/Z.
> SW1(config)#vtp
> SW1(config)#vtp mo
> SW1(config)#vtp mode tr
> SW1(config)#vtp mode transparent
> Setting device to VTP TRANSPARENT mode.
> SW1(config)#
> SW1(config)#
>
> verifications:
>
> SW1(config)#do sh vtp st
> VTP Version                     : 2
> Configuration Revision          : 0
> Maximum VLANs supported locally : 36
> Number of existing VLANs        : 5
> VTP Operating Mode              : Transparent
> VTP Domain Name                 :
> VTP Pruning Mode                : Disabled
> VTP V2 Mode                     : Disabled
> VTP Traps Generation            : Disabled
> MD5 digest                      : 0xBF 0x86 0x94 0x45 0xFC 0xDF 0xB5 0x70
> Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
>
> Lets see vlans
>
> SW1(config)#do sh vlan-s
>
> 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
> 1002 fddi-default                     act/unsup
> 1003 token-ring-default               act/unsup
> 1004 fddinet-default                  act/unsup
> 1005 trnet-default                    act/unsup
>
> VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1
> Trans2
> ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------
> ------
> 1    enet  100001     1500  -      -      -        -    -        1002
> 1003
> 1002 fddi  101002     1500  -      -      -        -    -        1
> 1003
> 1003 tr    101003     1500  1005   0      -        -    srb      1
> 1002
> 1004 fdnet 101004     1500  -      -      1        ibm  -        0      0
>
> 1005 trnet 101005     1500  -      -      1        ibm  -        0      0
>
>
>
> Now i will create some vlans in transparent mode
>
>
> SW1(config)#vlan 2-10
> SW1(config-vlan)#exit
>
>
> Verifications
>
> SW1(config)#do sh vlan-s
>
> 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
> 2    VLAN0002                         active
> 3    VLAN0003                         active
> 4    VLAN0004                         active
> 5    VLAN0005                         active
> 6    VLAN0006                         active
> 7    VLAN0007                         active
> 8    VLAN0008                         active
> 9    VLAN0009                         active
> 10   VLAN0010                         active
> 1002 fddi-default                     act/unsup
> 1003 token-ring-default               act/unsup
> 1004 fddinet-default                  act/unsup
> 1005 trnet-default                    act/unsup
>
> and
>
> SW1(config)#do sh vtp st
> VTP Version                     : 2
> Configuration Revision          : 0
> Maximum VLANs supported locally : 36
> Number of existing VLANs        : 14
> VTP Operating Mode              : Transparent
> VTP Domain Name                 :
> VTP Pruning Mode                : Disabled
> VTP V2 Mode                     : Disabled
> VTP Traps Generation            : Disabled
> MD5 digest                      : 0x54 0x21 0xDB 0x1B 0x90 0xD6 0x17 0xA9
> Configuration last modified by 0.0.0.0 at 3-1-02 00:01:46
>
> So vlans are being created successfully. But it should be interesting to
> see contents of flash
>
> SW1(config)#do sh flash:
>
> System CompactFlash directory:
> File  Length   Name/status
>   1   600      vlan.dat [deleted]
>   2   1140     vlan.dat
> [1868 bytes used, 67106992 available, 67108860 total]
> 65536K bytes of ATA System CompactFlash (Read/Write)
>
> we can see clearly that a vlan.dat file is being created. Although we know
> that for transparent mode vlan configs are saved into startup config but a
> backup copy of vlan.dat file is also created.
>
> lets copy run start and reboot to see what happens.......
>
> We are back after a reload......
>
> SW1>en
> SW1#sh vtp
> SW1#sh vtp st
> SW1#sh vtp status
> VTP Version                     : 2
> Configuration Revision          : 0
> Maximum VLANs supported locally : 36
> Number of existing VLANs        : 14
> VTP Operating Mode              : Transparent
> VTP Domain Name                 :
> VTP Pruning Mode                : Disabled
> VTP V2 Mode                     : Disabled
> VTP Traps Generation            : Disabled
> MD5 digest                      : 0x54 0x21 0xDB 0x1B 0x90 0xD6 0x17 0xA9
> Configuration last modified by 0.0.0.0 at 3-1-02 00:00:06
>
> our mod is transparent and we have all vlans......
>
> SW1#sh vlan-switch
>
> 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
> 2    VLAN0002                         active
> 3    VLAN0003                         active
> 4    VLAN0004                         active
> 5    VLAN0005                         active
> 6    VLAN0006                         active
> 7    VLAN0007                         active
> 8    VLAN0008                         active
> 9    VLAN0009                         active
> 10   VLAN0010                         active
> 1002 fddi-default                     act/unsup
> 1003 token-ring-default               act/unsup
> 1004 fddinet-default                  act/unsup
> 1005 trnet-default                    act/unsup
>
>
> But contents of flash are quite interesting.......
>
> SW1#sh flash:
>
> System CompactFlash directory:
> File  Length   Name/status
>   1   600      vlan.dat [deleted]
>   2   1140     vlan.dat [deleted]
>   3   1140     vlan.dat
> [3072 bytes used, 67105788 available, 67108860 total]
> 65536K bytes of ATA System CompactFlash (Read/Write)
>
> Number of deleted vlan.dat files has increased by one.... :)
>
>
> Lets change mode from transparent to Client.
>
> SW1(config)#vtp mode client
> Setting device to VTP CLIENT mode.
> SW1(config)#do wr
> Building configuration...
> [OK]
>
> Lets see what happened to configuration level created vlans
>
>
> SW1(config)#do sh run | inc vlan
>
> we dont get any thing,... IOS removed vlans from config, but also updated
> vlan.dat file
>
>
> SW1(config)#do sh flash:
>
> System CompactFlash directory:
> File  Length   Name/status
>   1   600      vlan.dat [deleted]
>   2   1140     vlan.dat [deleted]
>   3   1140     vlan.dat [deleted]
>   4   1140     vlan.dat
> [4276 bytes used, 67104584 available, 67108860 total]
> 65536K bytes of ATA System CompactFlash (Read/Write)
>
> one more deleted vlan.dat file but new file size is same as old file. So it
> means vlan.dat file still holds all vlans in flash: Lets prove it.
>
> SW1(config)#do sh vlan-s
>
> 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
> 2    VLAN0002                         active
> 3    VLAN0003                         active
> 4    VLAN0004                         active
> 5    VLAN0005                         active
> 6    VLAN0006                         active
> 7    VLAN0007                         active
> 8    VLAN0008                         active
> 9    VLAN0009                         active
> 10   VLAN0010                         active
>
> woo... vlans are still there... May be some thing is wrong. Lets reboot the
> device and see what is next...... Not to forget that we already have saved
> running configurations.
>
> We are back after reboot and we can see vlans stay there for ever.
>
> SW1#sh vlan-s
>
> 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
> 2    VLAN0002                         active
> 3    VLAN0003                         active
> 4    VLAN0004                         active
> 5    VLAN0005                         active
> 6    VLAN0006                         active
> 7    VLAN0007                         active
> 8    VLAN0008                         active
> 9    VLAN0009                         active
> 10   VLAN0010                         active
> 1002 fddi-default                     act/unsup
> 1003 token-ring-default               act/unsup
> 1004 fddinet-default                  act/unsup
> 1005 trnet-default                    act/unsup
>
> and contents of flash still hold their place.....
>
>
> SW1#sh flash:
>
> System CompactFlash directory:
> File  Length   Name/status
>   1   600      vlan.dat [deleted]
>   2   1140     vlan.dat [deleted]
>   3   1140     vlan.dat [deleted]
>   4   1140     vlan.dat
> [4276 bytes used, 67104584 available, 67108860 total]
> 65536K bytes of ATA System CompactFlash (Read/Write)
>
>
> Moral: If switch (at least GNS3 emulated) has vlans in transparent mode and
> when its converted to client mode it will "MIGRATE" vlans from running
> config to vlan.dat file and these vlans will stay there.
>
>
> HTH
>
>
>
> On Wed, Dec 1, 2010 at 6:46 PM, Faisal Ilyas <faisal.learning_at_gmail.com>wrote:
>
>> in the book ccie routing and switching 4th edition it says that if the
>> switch is in transparent mode then the extended vlans are save in running
>> config ...
>>
>> but i think if you make copy run start then it should be saved in startup
>> config but are the extended vlans were not saved in vlan.dat file ???/
>>
>>
>>
>> On Wed, Dec 1, 2010 at 5:44 PM, Maarten Vervoorn <mr.vervoorn_at_gmail.com
>> >wrote:
>>
>> > It store the vlan's in the vlan.dat
>> > For example if you configure a client switch and this client received a
>> > couple of VLANs from a VTP server it stores those in the vlan.dat. Even
>> if
>> > you configure the same client switch as transparent afterwards it
>> remains it
>> > vlans because it has stored them in the vlan.dat
>> >
>> > Kind regards,
>> >
>> > Maarten vervoorn
>> >
>> > 2010/12/1 Faisal Ilyas <faisal.learning_at_gmail.com>
>> >
>> >> Salam,
>> >>
>> >> I have a query that if i have a switch in transparent/server mode it
>> will
>> >> store the vlan information into vlan.dat file but if i make that same
>> >> switch
>> >> into VTP Client mode and it took the update from another vtp
>> server/client
>> >> switch depends on CR number but let suppose it gets the updates, so
>> where
>> >> that switch will save the vlan configuration, in running config or it
>> will
>> >> replace its own vlan.dat once it will get the updates ...
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Regards,
>> >> M. Faisal.
>> >>
>> >>
>> >> Blogs and organic groups at http://www.ccie.net
>> >>
>> >> _______________________________________________________________________
>> >> Subscription information may be found at:
>> >> http://www.groupstudy.com/list/CCIELab.html
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>>
>>
>> --
>> Regards,
>> M. Faisal.
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>>
>>
>>
>>
>>
>>
>
-- Regards, M. Faisal. Blogs and organic groups at http://www.ccie.netReceived on Fri Dec 03 2010 - 01:21:03 ART
This archive was generated by hypermail 2.2.0 : Sat Jan 01 2011 - 09:37:49 ART