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

    Rearrange Interfaces

    Scheduled Pinned Locked Moved webGUI
    5 Posts 3 Posters 1.2k 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
      Blade Runner
      last edited by

      Interfaces are arranged in the order of assignment. Assigning VPN to OPT3, VLAN10 to OPT4, VLAN20 to OPT5, and VPN2 to OPT6 shows as:

      WAN
      LAN
      VPN
      VLAN10
      VLAN20
      VPN2

      I prefer to rearrange interfaces as follows:

      WAN
      LAN
      VPN
      VPN2
      VLAN10
      VLAN20

      Solutions or suggestions?

      TIA

      Do not be afraid to fail.

      1 Reply Last reply Reply Quote 0
      • jahonixJ
        jahonix
        last edited by

        Save your config.xml, edit the file with a text editor (arrange the order you want), restore, reboot.

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          I don't think that is very sound advice.

          Many, many things like firewall rules are relational to internal interface names (such as opt2). You would have to be sure to correct them all.

          I can't think of an easy way to fix that off the top of my head.

          Maybe don't overthink it?

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • jahonixJ
            jahonix
            last edited by

            Not that problematic if you prepare a bit. Just done exactly this between posting and now, including the tests afterwards.

            Rules are bound to interface names (aka OPT2), that's correct. As well as DHCP server entries.
            If you edit with a decent text editor which can open/close xml segments this should be relatively easy.

            I have 11 interfaces to work on now. Expanded from a single "Project" IF to five "Project5", all on VLANs. So what was VLAN40 now are VLANs 41-45 but I hated the unsorted order with older VLANs like 50, 60, … inbetween.

            But I'm lazy and only have one interface group with all project VLANs containing all rules so adjustments had to be made to the corresponding group memberships only.  ;)

            1 Reply Last reply Reply Quote 0
            • jahonixJ
              jahonix
              last edited by

              PS: RRD graphs are a bit irritating now, that's absolutely correct. Since that's data from the past I can live with it.

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