This post is more than 5 years old

20 Posts

22226

August 26th, 2011 10:00

Adding a vlan to a 6220 switch: Configuration Query

Hi All

We have Dell PowerEdge 6220 switches.

Currently, vlans have been added using the following method:

vlan database
vlan
exit

interface vlan
name
exit

interface ethernet 1/g1
switchport mode trunk
switchport trunk allowed vlan add
exit

I need to add further vlans onto the switches.

What I want to know is whether the second step of:
interface vlan
name
exit
is necessary to allow me to add the new vlans to the interface(s)?

I'm not interested in naming the vlans but don't know if it is necessary to declare "interface vlan " to enable me to add the vlan to the interface(s). I'd rather not do this as I need to add approximately a 100 vlans and there is no real benefit from naming them for our setup.

Thanks in advance!

John

September 1st, 2011 02:00

Just to keep you from doing too much work and in case you do not know it:

Repeat for all interfaces

can be done with a range configuration:

interface range ethernet 1/g1-1/g5

20 Posts

August 30th, 2011 09:00

Hi Todd

I'm pretty sure that this answers my question. Just to check that I have understood properly, the following configuration will allow me to add the new vlan 1139 to our switches:

enable

configure

vlan database

vlan 1139

exit

configure

interface ethernet 1/g1

switchport trunk allowed vlan add 1139

exit

Repeat for all interfaces!!!!

exit

copy running-config startup-config

Many Thanks

John

20 Posts

September 1st, 2011 03:00

Hi Thilo

I have seen range configuration before but haven't used it - so thanks for pointing that out otherwise I would have done all the interfaces separately! I have put my new configuration script below.

I have 2 short follow-on queries to ask to you don't mind?

1) When doing a range configuration, will it leave the current configuration intact on all interfaces unless an item is explicitly removed?

2) I want to configure the ranges 1/g1 to 1/g16 and 2/g1 to 2/g16 - can I do this in one operation? (I have scripted in 2 separate operations below).

Thanks

John

enable

configure

vlan database

vlan 1139

exit

configure

interface ethernet 1/g1-1/g16

switchport trunk allowed vlan add 1139

exit

interface ethernet 2/g1-2/g16

switchport trunk allowed vlan add 1139

exit

exit

copy running-config startup-config

September 1st, 2011 08:00

1) It should leave the config intact

2) you have to do this in 2 operations

Thilo

20 Posts

September 1st, 2011 09:00

Thanks Thilo.

You have helped alot!

No Events found!

Top