cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
666
Views
0
Helpful
3
Replies

adding vlans to a trunk for a cisco 6509

jemorton
Level 1
Level 1

I have a 6509 with a trunk to another 6509 with vlans defined as follows:

2/1 1,110-113,119,130-133,240-242,307-309,311,561,568,593,678

I want to add an additional vlan. (VLAN 312)

would my syntax to add vlan 312 be the following:

set trunk 2/1 1,110-113,119,130-133,240-242,307-309,311-312,561,568,593,678

clear trunk 2-109,114-118,120-129,134-239,243-306,310,313-560,562-567,569-592,594-677,679-4094

If this isnt the syntax, can I just do a set trunk 2/1 vlan 312 ??

any advise would be greatly apprecicated

Thank you.

3 Replies 3

Prashanth Krishnappa
Cisco Employee
Cisco Employee

You cannot change your set trunk command to include a vlan

7AVEDS02> (enable) sh config 3

This command shows non-default configurations only.

Use 'show config all' to show both default and non-default configurations.

..................

begin

!

# ***** NON-DEFAULT CONFIGURATION *****

!

!

#time: Mon Jan 24 2005, 11:41:34 EST

!

# default port status is enable

!

!

#module 3 : 16-port 1000BaseX Ethernet

set module name 3

clear trunk 3/1 100,200

set trunk 3/1 desirable negotiate 1-99,101-199,201-1005,1025-4094

end

7AVEDS02> (enable)

7AVEDS02> (enable) set trunk 3/1 desirable negotiate 1-99,100-199,200-1005,1025-4094

2005 Jan 24 11:42:12 EST -05:00 %SYS-6-CFG_CHG:Module 3 block changed by Console//

Adding vlans 1-99,100-199,200-1005,1025-4094 to allowed list.

Port(s) 3/1 allowed vlans modified to 1-1005,1025-4094.

Port(s) 3/1 trunk mode set to desirable.

Port(s) 3/1 trunk type set to negotiate.

7AVEDS02> (enable) sh config 3

This command shows non-default configurations only.

Use 'show config all' to show both default and non-default configurations.

..................

begin

!

# ***** NON-DEFAULT CONFIGURATION *****

!

!

#time: Mon Jan 24 2005, 11:42:15 EST

!

# default port status is enable

!

!

#module 3 : 16-port 1000BaseX Ethernet

set module name 3

set trunk 3/1 desirable negotiate 1-1005,1025-4094

end

7AVEDS02> (enable)

Im sorry, I'm not quite understanding your reply. Are you saying that I can't just add vlan 312 to my trunk? If that is the case, does that mean I have to recreate the whole trunk with the vlans I want to include and prune out the ones I dont?

thank you.

You can change either using "clear vlan" command or use the "set trunk" command with all the VLANs you want on it.

Review Cisco Networking for a $25 gift card