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

    [SOLVED] Mass LAN / VLAN update.

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 1.3k 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.
    • B
      britesc
      last edited by

      Hi,

      Is it possible to do a mass update of static addresses from a LAN to a VLAN to save re-keying all of the data?
      Also the Aliases etc?

      I assume I can do an export change the data and read it in again?

      Any advice gratefully received, thanks.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        If you are happy editing XML manually and keeping all the start/end tags correct etc., then you can always

        1. backup your config
        2. keep the original so you can revert back if (when?) you stuff it up
        3. edit a copy, find the relevant entries and modify the data or move the entries… as needed
        4. restore the edited config
        5. let it reboot and test

        There is no official "pfSense config XML" spec or parser/checker other than what happens at boot. But the format of the XML data hierarchy is pretty obvious, specially if you do a few example changes on the webGUI then backup the config and have a look in it.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • B
          britesc
          last edited by

          Thanks for the reply, this was the route I was looking at, but I had to ask in anyone had any other methods up their sleeves.
          Regards,  8)

          1 Reply Last reply Reply Quote 0
          • K
            kenspo
            last edited by

            Mass LAN 8) 8) 8)

            fxapk

            1 Reply Last reply Reply Quote 0
            • B
              britesc
              last edited by

              @kenspo:

              Mass LAN 8) 8) 8)

              I think, (dangerous) that what I meant was that I have a lot of devices on a straightforward LAN interface that I would like to move to a VLAN, not that I had masses of LANS…

              1 Reply Last reply Reply Quote 0
              • B
                britesc
                last edited by

                @phil.davis:

                If you are happy editing XML manually and keeping all the start/end tags correct etc., then you can always

                1. backup your config
                2. keep the original so you can revert back if (when?) you stuff it up
                3. edit a copy, find the relevant entries and modify the data or move the entries… as needed
                4. restore the edited config
                5. let it reboot and test

                There is no official "pfSense config XML" spec or parser/checker other than what happens at boot. But the format of the XML data hierarchy is pretty obvious, specially if you do a few example changes on the webGUI then backup the config and have a look in it.

                I did, done it and it worked.
                Must admit I held my breath, used Ultraedit to export the <staticmap>s that I wanted, then saved it as a new .xml file so I could use the colourization for xml, used find & replace, then inserted the file back into the predefined opt I had already setup.

                Very pleased with the result. So thanks phil.davis for the confirmation.</staticmap>

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