Cisco Vlan Query

Hi Experts,

Can someone explain to me why I can't see the vlan 100 and name user-vlan in the show run in the first attachment, however I can see it when I do a show vlan brief? However, the second attachment I can see the vlan in the show run/configuration.

The reason why I ask is because when I do a copy the configs from a TFTP to the switch in the first case the vlan 100 and name user-vlan won't be copied to the switch because its not in configuration, whereas in the second case the vlan configurations will be picked up and copied to the switch because its in seen in the configurations

Cheers

Carlton
2012-03-31--12-45-54-164--DLS1-4.txt
2012-03-31--13-37-01-861--DLS1-4.txt
cpatte7372Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nayyar HH (CCIE RS)Network ArchitectCommented:
There are two methods for vlan configuration; in the vlan database mode and in the config mode;

The first switch looks like the VLAN is configured in VLAN database

example;

vlan database
vlan 100
apply
exit

config t
interface vlan 100
ip address x.x.x.x y.y.y.y
no shut

end
wr mem


The second looks like the VLANs is configured in the config mode

config t

vlan 100

int vlan 100
ip address x.x.x.x y.y.y.y
no shut

end

wr mem




So if you were scripting configuration deployments you would to include appropriate config for vlan configuration
0
cpatte7372Author Commented:
Nazsky,

Thanks for responding.

I used conf t in both cases....
0
Nayyar HH (CCIE RS)Network ArchitectCommented:
Wierd .. are you using real switches or emulation software?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

cpatte7372Author Commented:
Very wierd....

Real switch.

It didn't do a write mem. Would that make any difference?
0
cpatte7372Author Commented:
Actually, it shouldn't make any difference because the vlan is shown with whe show vlan brief command
0
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
Even if you do "conf t", in some switches the vlans are stored in a separate vlan database, not in running-config. It´s just the way it is. Look for a file called something like flash:/vlan.dat, that contains the vlan database in switches that doesnt store them in running config.

Best regards
Kvistofta
0
Nayyar HH (CCIE RS)Network ArchitectCommented:
pls post a "show version" output
0
cpatte7372Author Commented:
Kvistofta, Nazsky,

I will post the show version in a bit. However, I was wondering if the fact that the running config where there is not vlan info might because on that switch I configured vtp mode transparent, vtp domain switch and vtp pass ccnp?

Just a thought
0
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
vtp mode transparent means that the switch doesnt care about vtp information. All vtp-packets coming into the switch is being passed to other switches but the content of the vtp-packets are not being read. That means that for a vtp transparent-switch you need to configure all vlans by hand, locally. And as I said above, either they stay in the running/startup-config or in the separate vlan-database. In both cases you configure (create) vlans in config-mode.

Best regards
Kvistofta
0
Nayyar HH (CCIE RS)Network ArchitectCommented:
The vtp configuration should not cause the symptoms experienced - to me it appears like a software cosmetic issue/bug than anything
0
cpatte7372Author Commented:
Experts,

This is the answer:

Hello Carlton,

 

What you are seeing here is caused by your VTP mode setting. If the VTP mode is set to Transparent then the VLANs are being displayed in the running-config in addition of being also stored in the vlan.dat file. If the VTP mode is either Server or Client, the VLANs are only stored in the vlan.dat file and do not appear in the running config. As you can see, your second configuration obviously contains the vtp mode transparent command.

 

Best regards,

Peter
0
Nayyar HH (CCIE RS)Network ArchitectCommented:
Any references/links to Cisco documentation that this is the actual behavior?
0
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
cpatte7372: That is so untrue. A VTP-transparent switch does NOT get any vlan-information from VTP.

/Kvistofta
0
cpatte7372Author Commented:
Is there any experts that agree with Kvistofta?
0
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
If there is someone that does NOT agree with me, in this case they are totally wrong!
First hit when you google "VTP transparent mode":

-----

http://www.cisco.com/en/US/tech/tk389/tk689/technologies_tech_note09186a0080094c52.shtml#vtp_modes


Transparent—VTP transparent switches do not participate in VTP. A VTP transparent switch does not advertise its VLAN configuration and does not synchronize its VLAN configuration based on received advertisements, but transparent switches do forward VTP advertisements that they receive out their trunk ports in VTP Version 2.


-----
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cpatte7372Author Commented:
Kvistofta

I guess I agree with the Cisco statement. However, the main issue was why the vlan information isn't stored/displayed in the running config when you do a show run?
0
Jimmy Larsson, CISSP, CEHNetwork and Security consultantCommented:
As I said, some switches and some software-versions stores the vlan-information in a separate vlan-database on flash, other stores them in startup-config. It´s by design. Why? I guess you will never know unless you find the right developer at Cisco. :-)


Best regards
Kvistofta
0
cpatte7372Author Commented:
Cheers mate..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.