Navigation

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

    [SOLVED] Mass LAN / VLAN update.

    General pfSense Questions
    3
    6
    740
    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.

        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)

            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

                Products

                • Platform Overview
                • TNSR
                • pfSense Plus
                • Appliances

                Services

                • Training
                • Professional Services

                Support

                • Subscription Plans
                • Contact Support
                • Product Lifecycle
                • Documentation

                News

                • Media Coverage
                • Press
                • Events

                Resources

                • Blog
                • FAQ
                • Find a Partner
                • Resource Library
                • Security Information

                Company

                • About Us
                • Careers
                • Partners
                • Contact Us
                • Legal
                Our Mission

                We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                Subscribe to our Newsletter

                Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                © 2021 Rubicon Communications, LLC | Privacy Policy