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

    Upload configuration to a Netgate 7100 from other PfSense

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    4 Posts 3 Posters 602 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.
    • D
      dapobe
      last edited by

      Hello and sorry for my poor english.

      This post is my contribution to this forum to explain my methode to transfer the configuration from a PFSense device to a XG-7100 device without issues with the interfaces.

      I don't know if this is the area to explain this, but I've found other post talking about this here, for example: "Lost Lagg0 interface on XG-7100 when restoring configuration".

      First of all. You need some knowledge on Pfsense and how XG-7100 uses their switch. You'll find some literature on Netgate's web site.

      Let's start.

      I have 2 machines. The old one, a server running Pfsense, in production. Name it Old Server.
      The new machine, a XG-7100, running Pfsense+. Not in production. Name it New Server.

      In the Old Server I have many interfaces and VLANs, VPNs, Rules and so on, and I want to trasfer all to the New Server . As you know, it's not possible to load the Old Server config to the New Server due the different interface configuration, and people had many issues on this.

      Remember, you can connect to your New Server via USB. It will help you in case of problems.

      My solution:

      1. Save Old Server all configuration unencripted in a file. Save it for later.

      2. Go to New Server. Define the switch configuration based in your knowledge of your net.
        Assign the VLANs to your needs. Don't worry if these VLANS are not created in Pfsense+. Now we are configuring the switch. You can use the predefined VLANS or create your own. You have to create your existing VLANS and new VLANs for your isolated ports. (Read XG7-7100 Netgate manuals about it, if you don't understand this.)

      3. Once the switch is configurated, goto Assign-Vlans in the New Server and create all your VLANs. Remember to assign all of them to lagg0 (Again, read manuals). Only create the VLANS, DO NOT ASSIGN TO INTERFACES. In interfaces you can leave default wan and default lan.

      4. Revise your configuration. There is allways something wrong ;-)

      5. Save New Server all configuration unencripted in a file.

      6. Open Notepad+ or a text editor.

      7. Open Old Server config and in another tab the New Server Config. ( They are editable XML).

      8. Copy Lagg and VLAN definition from New Server. ( from <lagg> to </lagg> and from <vlan> to </vlan>).

      9. Paste on Old Server configuration file. Delete Old Server Vlan definition and replace it with New Server definition. Remember to ad prior the lagg configuration from new to old server.

      10. On Old Server's file, go to interfaces area. Change the interface name to the new created interfaces. For example rf1 on Old Server must be lagg0.4090. Be aware. You must know your old configuration and what you have defined in the new server. You have to know wich VLAN is the replacement of any old interface. You must edit the text in <if> </if> of every entry.

      11. If your Old Server had some PPPs or other definitions, go to their definition area and change to the right new interface.

      12. You don't need to edit DHCPs, Rules, Default Gateways, as these definitions are referenced to the internal name of every interface ( wan, lan, opt1, opt2 and so on...)

      13. Revise your configuration. If both of your servers are in the same network check the lan IP and change it. (If not, both servers will have the same IP!!)

      14. Save the Old Server configuration file.

      15. Go to your New Server and load this configuration file (The edited Old Server's)... and voalà!

      16. If there are no problems the New Server will restart.

      17. If you can't open the New Server Web, try it on another browser.

      18. If you have to change a PVID of the New Server switch you can do it via USB. Use the command: "etherswitchcfg" to see the configuration and use "etherswitchcfg Port8 pvid 10" to change Pvid of port 8 to 10, for example.

      And that's all. This worked for me. Now I have my XG-7100 with the same configuration as the Old Server ( Certificates, VPN, Rules, NAT etc...)

      I hope it will be useful for someone.

      Daniel

      DaddyGoD S 2 Replies Last reply Reply Quote 2
      • DaddyGoD
        DaddyGo @dapobe
        last edited by DaddyGo

        @dapobe said in Upload configuration to a Netgate 7100 from other PfSense:

        I hope it will be useful for someone.

        Hi Daniel,

        you want to collect "upvotes" with this - I gave you one 😉

        welcome to the team, so this is not meant as an attack but more of a joke

        +++edit:
        I hope you won't be a SPAMMER :), hihihihi

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

        1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @dapobe
          last edited by

          @dapobe Hopefully the posting will be helpful to others. Netgate has posted here before if someone opens a free support ticket (go.netgate.com) they will help convert configurations to a switched appliance.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          DaddyGoD 1 Reply Last reply Reply Quote 0
          • DaddyGoD
            DaddyGo @SteveITS
            last edited by DaddyGo

            @steveits said in Upload configuration to a Netgate 7100 from other PfSense:

            Hopefully the posting will be helpful to others.

            hmmm, so you're back and you won't forget?

            I love you man, but you know that...

            +++edit:

            I hope your style is honed by a serious CNC..... :)

            Cats bury it so they can't see it!
            (You know what I mean if you have a cat)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.