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.
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
2126
1
Posted 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