Restore to new hardware, interface assignments, what the heck am I doing wrong?
-
I googled around and seemingly the best advice I saw was to export my config from present pfsense, edit the interface section and upload to new router. Everyone says it is easy and takes seconds but I keep running into interface not known issues during boot, seemingly surrounding my vLANs? What am I doing wrong in these config files below??
I got these names from the autoconfig options during boot so I know that's the names pfsense sees on the new hardware. Assigning what I want during boot just gets me an endless "interface not known" and never lets me progress to running.
Old config file
<interfaces><wan><enable></enable> <if>igb0</if> <ipaddr>dhcp</ipaddr> <ipaddrv6>dhcp6</ipaddrv6> <gateway></gateway> <blockpriv>on</blockpriv> <blockbogons>on</blockbogons> <media></media> <mediaopt></mediaopt> <dhcp6-ia-pd-len>0</dhcp6-ia-pd-len></wan> <lan><enable></enable> <if>igb1</if> <ipaddr>10.0.1.1</ipaddr> <subnet>24</subnet> <ipaddrv6>track6</ipaddrv6> <subnetv6>64</subnetv6> <media></media> <mediaopt></mediaopt> <track6-interface>wan</track6-interface> <track6-prefix-id>0</track6-prefix-id></lan> <opt1><if>igb1.10</if> <enable></enable> <ipaddr>10.0.10.1</ipaddr> <subnet>24</subnet> <spoofmac></spoofmac></opt1> <opt2><if>igb1.11</if> <enable></enable> <ipaddr>10.0.11.1</ipaddr> <subnet>24</subnet> <spoofmac></spoofmac></opt2></interfaces>
New config file
<interfaces><wan><enable></enable> <if>igb0</if> <ipaddr>dhcp</ipaddr> <ipaddrv6>dhcp6</ipaddrv6> <gateway></gateway> <blockpriv>on</blockpriv> <blockbogons>on</blockbogons> <media></media> <mediaopt></mediaopt> <dhcp6-ia-pd-len>0</dhcp6-ia-pd-len></wan> <lan><enable></enable> <if>em0</if> <ipaddr>10.0.1.1</ipaddr> <subnet>24</subnet> <ipaddrv6>track6</ipaddrv6> <subnetv6>64</subnetv6> <media></media> <mediaopt></mediaopt> <track6-interface>wan</track6-interface> <track6-prefix-id>0</track6-prefix-id></lan> <opt1><if>em0.10</if> <enable></enable> <ipaddr>10.0.10.1</ipaddr> <subnet>24</subnet> <spoofmac></spoofmac></opt1> <opt2><if>em0.11</if> <enable></enable> <ipaddr>10.0.11.1</ipaddr> <subnet>24</subnet> <spoofmac></spoofmac></opt2></interfaces>
-
There is also a section in the config where the vlans are defined, you need to change the interface references there also.
If you are not comfortable editing the config manually, the restore wizard does a pretty good job at re-assignment these days, even with vlans. -
Found it at the extreme bottom of the config file, thanks. Makes sense in retrospect as the vLANs configured in another section have a selection for their parent interface. I thought that was what I was configuring above all in one step but guess not.
Edited it to this and it all came back up fine.
<vlans><vlan><if>em0</if> <tag>10</tag> <vlanif>em0.10</vlanif></vlan> <vlan><if>em0</if> <tag>11</tag> <vlanif>em0.11</vlanif></vlan></vlans>