Interface name switch in config
-
I'm moving from a SG-1100 to a Qotom mini. I backup my full config from the netgate and trying to do the search and replace the interface names.
Using grep to see where the interface name is used I got:<if>mvneta0.4090</if> <if>mvneta0.4091</if> <if>mvneta0.4092</if> <if>mvneta0.20</if> <if>mvneta0.66</if> <if>mvneta0</if> <vlanif>mvneta0.4090</vlanif> <if>mvneta0</if> <vlanif>mvneta0.4091</vlanif> <if>mvneta0</if> <vlanif>mvneta0.4092</vlanif> <if>mvneta0</if> <vlanif>mvneta0.20</vlanif> <if>mvneta0</if> <vlanif>mvneta0.66</vlanif>
mvneta0.4090 -> WAN -> igb0
mvneta0.4091 -> LAN -> igb1
mvneta0.4092 -> LAN (Guest) -> igb2Here is the vlans section ... obviously the vlanif must match the interfaces -> if section but ...
<vlans> <vlan> <if>mvneta0</if> <tag>4090</tag> <descr><![CDATA[WAN]]></descr> <vlanif>mvneta0.4090</vlanif> </vlan> <vlan> <if>mvneta0</if> <tag>4091</tag> <descr><![CDATA[LAN]]></descr> <vlanif>mvneta0.4091</vlanif> </vlan> <vlan> <if>mvneta0</if> <tag>4092</tag> <descr><![CDATA[OPT]]></descr> <vlanif>mvneta0.4092</vlanif> </vlan> <vlan> <if>mvneta0</if> <tag>20</tag> <pcp></pcp> <descr><![CDATA[Guest VLAN]]></descr> <vlanif>mvneta0.20</vlanif> </vlan> <vlan> <if>mvneta0</if> <tag>66</tag> <pcp></pcp> <descr><![CDATA[IoT devices]]></descr> <vlanif>mvneta0.66</vlanif> </vlan> </vlans>
Now the question becomes why are on VLANs off of the WAN interface and not the LAN interface? Shouldn't these be:
<vlans> <vlan> <if>igb0</if> <tag>4090</tag> <descr><![CDATA[WAN]]></descr> <vlanif>igb0</vlanif> </vlan> <vlan> <if>igb1</if> <tag>4091</tag> <descr><![CDATA[LAN]]></descr> <vlanif>igb1</vlanif> </vlan> <vlan> <if>igb2</if> <tag>4092</tag> <descr><![CDATA[OPT]]></descr> <vlanif>igb2</vlanif> </vlan> <vlan> <if>igb1</if> <tag>20</tag> <pcp></pcp> <descr><![CDATA[Guest VLAN]]></descr> <vlanif>igb1.20</vlanif> </vlan> <vlan> <if>igb1</if> <tag>66</tag> <pcp></pcp> <descr><![CDATA[IoT devices]]></descr> <vlanif>igb1.66</vlanif> </vlan>
Thanks.
-
The 1100 only has one NIC, mvneta0, and all interfaces are VLANs on that including WAN and LAN.
Your new hardware probably has at least two NICs so you can add the VLANs to either. If it has 4 NICs you may only need VLANs 20 and 66. The other interfaces can be moved to real NICs.Steve