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:
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).
ThiloWunderlich
37 Posts
1
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
John1483
20 Posts
0
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
John1483
20 Posts
0
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
ThiloWunderlich
37 Posts
0
September 1st, 2011 08:00
1) It should leave the config intact
2) you have to do this in 2 operations
Thilo
John1483
20 Posts
0
September 1st, 2011 09:00
Thanks Thilo.
You have helped alot!