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

    Changing VLAN tag messes up interface assignments

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    5 Posts 4 Posters 1.9k 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.
    • A Offline
      andriusst
      last edited by

      Looks like a bug to me. Replicates every time with clean install with single NIC (not necessary but that's what I've done).

      1. Create 4 vlans

      2. Create 4 interfaces and hit save

      3. Go to VLANs tab and edit first entry VLAN tag to 110

      4. Go to Interface assignments and see the effect

      What I expected to happen - LAN interface get assigned to VLAN 11 and OPT3 remains  assigned to VLAN 14.
      What actually happens      - LAN interface gets assigned to em0      and OPT3 becomes assigned to VLAN 110.

      Similar issue happens when changing any other VLAN entry except for the last one. Changing last VLAN entry changes interface assignment correctly.

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        Add new tag, switch assignments, remove old tag.

        What you're seeing is the expected behavior, since changing the tag changes the physical interface name.

        The input validation should probably reject a tag change if the interface is assigned, though.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • E Offline
          eri--
          last edited by

          I pushed a change for this in master.

          1 Reply Last reply Reply Quote 0
          • A Offline
            andriusst
            last edited by

            Hi jimp,

            Thanks for the workaround. Fair play when it comes to LAN interface. But why OPT3 assignment has changed as well?

            Hi ermal,

            Thanks for that. Will the change be effective in a new snapshot?

            1 Reply Last reply Reply Quote 0
            • M Offline
              mikeisfly
              last edited by

              For what it's worth I have seen this behavior too and reported on it. Too lazy to look for the post to link to it. What I do for a work around is verify the interfaces are assigned to the correct vlan before applying the change. I have also seen this behavior when adding  a new vlan to an existing interface. Glad to see some movement on this one.

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