Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Restore to new hardware, interface assignments, what the heck am I doing wrong?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 730 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Maxburn
      last edited by

      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> 
      
      1 Reply Last reply Reply Quote 0
      • dotdashD Offline
        dotdash
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • M Offline
          Maxburn
          last edited by

          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> 
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.