Edit the config XML file
-
I have a task for setup 48 vlans for 48 apartments on 2 switchs connected to Netgate 7100 through two10 GB SPF+. is there a way to copy/paste VLANs, rules and Interface Assignments? it's not easy to do through neither CLI which delete all VLANs when you start adding vlans or GUI with all it clicking.
-
@ddvnu yeah you should be able to edit the xml, since all settings are loaded via the xml.. How easy or difficult that might be - not quite sure.. Have not done something like that before, while I have edited the xml after export and then reloaded my edited version.. I have never tried adding that many vlans..
But they are stored there - so adding more would be possible, just not clear on if all in 1 specific part of the xml, or if you would have to edit multiple areas of it..
I would prob export the full xml, then search of one of your vlans you had setup with the gui, and then replicate those settings with the different info for your different vlans.. Making sure not to overlap any IP ranges, etc. etc.
edit: So yeah a quick look shows in a <vlans> section and then where that interface is assigned and IP, etc. with optX and then the dhcpd section, etc.. So to bring them all up there would be multiple locations in the xml that would have to be manipulated.
-
@johnpoz I did try in a small scale to add vlans only, but ended up with an only wan and lan machine so something was not that easy :-)
this is the added one:
<vlan>
<if>ix1</if>
<tag>107</tag>
<pcp></pcp>
<descr><![CDATA[Lejlighed 7]]></descr>
<vlanif>ix1.107</vlanif>
</vlan>
and this is the org. one:
<vlan>
<if>ix1</if>
<tag>103</tag>
<pcp></pcp>
<descr><![CDATA[Lejlighed 3]]></descr>
<vlanif>ix1.103</vlanif>
</vlan>
I can't see any difference. so ther must be more to it than just add these lines. -
That will create the VLAN but you would also need to assign and enable it etc.
Steve
-
@stephenw10 I just like small steps to understand what I'm doing