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

    Edit the config XML file

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 695 Views 3 Watching
    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 Offline
      Ddvnu
      last edited by

      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.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator @Ddvnu
        last edited by johnpoz

        @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.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          Ddvnu @johnpoz
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            That will create the VLAN but you would also need to assign and enable it etc.

            Steve

            D 1 Reply Last reply Reply Quote 1
            • D Offline
              Ddvnu @stephenw10
              last edited by

              @stephenw10 I just like small steps to understand what I'm doing ☺

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