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

    Cannot edit LAN interface

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 3 Posters 453 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      That error is unrelated to IPv6. It's telling you that the configured switch port that LAN uses for it's link status is already in use.

      For LAN that should be Port2 by default on the 1100:

      Screenshot from 2024-09-24 14-49-11.png

      If one of the other interfaces is set to Port2 already that will conflict but you shouldn't have anything else set to that.

      Steve

      1 Reply Last reply Reply Quote 1
      • A
        AddleDIT
        last edited by AddleDIT

        Ok. The Port 2 is the port for this LAN, as default, however there are no conflicts that I can see. I just want to able to edit the settings of the port. Are there any commands to force the required behaviour? There are no cables plugged into the physical port and the system still claims they are in use. Does the 1100 come with VLANS set up as default as there are a bunch of VLANS listed and there are duplicates. I have made no changes to the LAN or VLAN I only set up the WAN and set up a LAN 2 on OPT to get around this issue. I am not sure why I would configure one of the other interfaces to use the same port, it would not work, they are physical ETH connectors.

        Assignments.JPG

        VLANS.JPG

        Nothing plugged into it and I still cannot edit it.

        interfaces.JPG

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

          @AddleDIT well that vlans page sure doesn't look right.. Looks like you have a bunch of duplicates.

          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

          1 Reply Last reply Reply Quote 1
          • A
            AddleDIT
            last edited by AddleDIT

            This is my VLANS tablevlans table.JPG

            If I try to delete any of the duplicates from the interfaces/VLANS I get the error

            interfaces-vlans.JPG

            But I cannot disable LAN interface because I still get "This Switch port is already in used by another interface."

            I have not added any of these vlans, they seem to get created by the system automatically

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

              Um, yeah that VLANs list looks..... interesting! You should only have 3 listed there.

              But the important setting, the 'Switch port' value, is on the interface configure page and not shown on any of those tables.

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

                Yeah the webgui error checking probably won't let you do that because they are duplicated.

                You may have to edit them out of the config directly.

                If you backup the config in Diag > Backup/Restore and check the xml file do you see all those VLANs listed?

                A 1 Reply Last reply Reply Quote 0
                • A
                  AddleDIT @stephenw10
                  last edited by

                  @stephenw10

                  Yes I do.

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

                    Ok I would remove all but the expected three from the config. The VLANs section should be:

                    	<vlans>
                    		<vlan>
                    			<if>mvneta0</if>
                    			<tag>4090</tag>
                    			<descr><![CDATA[WAN]]></descr>
                    			<vlanif>mvneta0.4090</vlanif>
                    		</vlan>
                    		<vlan>
                    			<if>mvneta0</if>
                    			<tag>4091</tag>
                    			<descr><![CDATA[LAN]]></descr>
                    			<vlanif>mvneta0.4091</vlanif>
                    		</vlan>
                    		<vlan>
                    			<if>mvneta0</if>
                    			<tag>4092</tag>
                    			<descr><![CDATA[OPT]]></descr>
                    			<vlanif>mvneta0.4092</vlanif>
                    		</vlan>
                    	</vlans>
                    

                    While you are there check the interfaces section. Only the LAN should show:
                    <switchif>switch0.port2</switchif>

                    The WAN and OPT should be using ports 3 and 1 respectively.

                    A 1 Reply Last reply Reply Quote 1
                    • A
                      AddleDIT
                      last edited by AddleDIT

                      Ok I deleted the duplicate vlans and now the interface assignments/vlans page looks like this
                      interfaces-vlans2.JPG

                      But I still cannot edit the settings on the LAN port

                      issue.JPG

                      Can I use the same method to fix this, by editing the config file directly?

                      I know the WAN and OPT ports are correct, I am using the router now.

                      *Just to clarify the IPv6 Configuration Type is listed, and will revert to on refresh, "Track Interface"

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

                        Right because it's seeing a conflict. Did you check the WAN and OPT to see what Port those are set to? One of them is probably, incorrectly, also set to Port2.

                        1 Reply Last reply Reply Quote 1
                        • A
                          AddleDIT @stephenw10
                          last edited by AddleDIT

                          @stephenw10

                          I backed up the XML of interfaces only and it looks like this

                          interfacesxml.JPG

                          Interestingly, the WAN interface does not explicitly state which port is in use, but that is the port that is plugged into my modem.

                          Can I just change my LAN IP here and reupload this config? I note that on my LAN 2 (opt) there are no entries for ipaddrv6 or subnet v6 so if I delete these entries in the LAN section of the file will this have the desired effect of setting the IPV6 Configuration type to none?

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

                            Hmm, curious. Yes the WAN is PPPoE so it's not on the switch interface directly.

                            Yes, you can just set the LAN IP there and restore the config bypassing the gui error checking.

                            You may need to update the DHCP server range for LAN also.

                            I'll try to replicate that.

                            A 1 Reply Last reply Reply Quote 1
                            • A
                              AddleDIT @stephenw10
                              last edited by

                              @stephenw10

                              Thanks a lot for your time today.

                              1 Reply Last reply Reply Quote 1
                              • D Djkáťo referenced this topic on
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.