Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Switch not saving VLAN Configuration

I have a Cisco 1900 Switch that has 7 of it's ports connected to seperate small networks. It's trunk port (A) is connected to a Cisco 2611 router. The switch is configured for seperate VLANs and so is the router. When I show the running config on the switch the VLAN configuration is there but if I restart the switch, the VLAN configurations are lost, then I have to manually enter them one at a time. I also noticed that I can only enter the VLAN configurations in either Transparent or Server mode. Below is a sample of the running config of both the router and switch, including the "sh ver" of the switch.

Am I missing something to allow the switch to save the VLAN configurations?

Thanks for any help.

Jeff

Router:

interface FastEthernet0/1

description Port Connected to Port A on Cisco Switch

no ip address

no ip route-cache

no ip mroute-cache

speed 100

full-duplex

no cdp enable

!

interface FastEthernet0/1.1

encapsulation isl 1

ip address x.x.x.x x.x.x.x

no ip redirects

no ip route-cache

no ip mroute-cache

no cdp enable

!

interface FastEthernet0/1.2

encapsulation isl 2

ip address x.x.x.x x.x.x.x

no ip redirects

no ip route-cache

no ip mroute-cache

no cdp enable

!

interface FastEthernet0/1.3

encapsulation isl 3

ip address x.x.x.x x.x.x.x

no ip redirects

no ip route-cache

no ip mroute-cache

no cdp enable

Switch:

vtp client

vtp trap disable

!

vlan 2 name "VLAN0002" sde 100002 state Operational mtu 1500

vlan 3 name "VLAN0003" sde 100003 state Operational mtu 1500

tftp server "X.X.X.X"

tftp filename "cat1900EN.9.00.03.bin"

interface Ethernet 0/1

duplex full

no cdp enable

!

interface Ethernet 0/2

no cdp enable

!

interface Ethernet 0/3

duplex full

vlan-membership static 2

no cdp enable

!

interface Ethernet 0/4

vlan-membership static 3

no cdp enable

!

interface FastEthernet 0/26

duplex full

! spantree start-forwarding

! trunk On

no cdp enable

Switch#sh ver

Cisco Catalyst 1900/2820 Enterprise Edition Software

Version V9.00.03 written from x.x.x.x

Copyright (c) Cisco Systems, Inc. 1993-1999

CGM Switch uptime is 0day(s) 03hour(s) 01minute(s) 05second(s)

cisco Catalyst 1900 (486sxl) processor with 2048K/1024K bytes of memory

Hardware board revision is 5

Upgrade Status: No upgrade currently in progress.

Config File Status: No configuration upload/download is in progress

27 Fixed Ethernet/IEEE 802.3 interface(s)

Base Ethernet Address: 00-02-FD-B6-D5-80

9 REPLIES
New Member

Re: Switch not saving VLAN Configuration

Jeff,

Usually, the vlan configuration is stored in the vlan.dat file and saved to the Flash on the switch. Do you see a "vlan.dat" file when you perform a show flash on the switch ?

Regards,

Rajesh

New Member

Re: Switch not saving VLAN Configuration

Thanks for the reply.

I did a show ? and there is no option to show flash. I even tried entering the command, but it was unrecognized.

Thanks.

Jeff

New Member

Re: Switch not saving VLAN Configuration

You will need to leave the switch in server or transparent mode. In client mode, no data is stored..it expected to get information from a vtp server (maybe another client). If there is none, there is no vlan information after a reboot.

Server mode will allow the switch to interact with other switches. Transparent mode will not.

New Member

Re: Switch not saving VLAN Configuration

Thanks for the reply.

How do I leave it in Server mode? If I do, will the VLAN configuration be saved and loaded on reboot?

Thanks for the help.

Jeff

New Member

Re: Switch not saving VLAN Configuration

Usually I'm adding Vlans via a console port, like that:

DuqSW05-RC30#vlan database

DuqSW05-RC30(vlan)#vlan 10

VLAN 10 added:

Name: VLAN0010

DuqSW05-RC30(vlan)#exit

APPLY completed.

Exiting....

DuqSW05-RC30#

If you whant to see the vlan.dat perform this:

DuqSW05-RC30#sho flash:

Directory of flash:/

2 -rwx 1750311 Feb 28 1993 19:08:13 c2900XL-c3h2s-mz.120-5.3.WC.1.bin

3 -rwx 105970 Jul 17 2000 21:26:29 c2900XL-diag-mz-120.5.2-XU

4 drwx 10176 Feb 28 1993 19:09:25 html

111 -rwx 3416 Jun 27 2003 11:22:27 config.text

112 -rwx 272 Dec 31 1969 19:00:26 env_vars

5 -rwx 111 Feb 28 1993 19:06:45 info

167 -rwx 111 Feb 28 1993 19:09:25 info.ver

168 -rwx 660 Oct 21 1993 04:11:36 vlan.dat

3612672 bytes total (464896 bytes free)

DuqSW05-RC30#

Hope this help

Yves

New Member

Re: Switch not saving VLAN Configuration

Thanks for the reply, but my switch does not support the show flash command.

Jeff

Bronze

Re: Switch not saving VLAN Configuration

Since this is a 1900 I dont think the last post or several of the others apply. There is no vlan database per se. In command line enter

Cisco1924#sh vtp

VTP version: 1

Configuration revision: 21

Maximum VLANs supported locally: 1005

Number of existing VLANs: 16

VTP domain name :

VTP password :

VTP operating mode : Server

VTP pruning mode : Disabled

VTP traps generation : Enabled

Configuration last modified by: 133.7.10.254 at 00-00-0000 00:00:00

Look for operating mode, if its client that might be the problem. Enter config mode and enter

Cisco1924(config)#vtp ?

client VTP client

domain Set VTP domain name

password Set VTP password

pruning VTP pruning

server VTP server

transparent VTP transparent

trap VTP trap

Set it to server or transparent. Exit

Then try a show vlan. Create some vlans if necesary and reboot to see if they stay.

New Member

Re: Switch not saving VLAN Configuration

Thank you for the reply. I will try this and post the results.

Jeff

New Member

Re: Switch not saving VLAN Configuration

I made sure the VTP mode was server and the VLANs existed before I rebooted the switch. When the switch came up it did not have the VLAN configurations. When I create a VLAN after every VLAN I create it defaults to client and I have to set it to Server to create the next VLAN. When I do the VLAN configuration I do them in the Menu system not the command line. Would this make a difference of it's ability to save the VTP mode and VLANs?

Thanks for any help.

450
Views
0
Helpful
9
Replies
CreatePlease to create content