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

    Enable LAN interface from Shell

    General pfSense Questions
    3
    4
    7.3k
    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.
    • zoqaskZ
      zoqask
      last edited by

      I have made a cardinal sin and not looked before de-tabbing the interface for LAN adapter. I therefore cannot log into the pfsense webgui. I have several redundant adapters having changed this around and was cleaning up things (a little too wel in this case).

      Does anyone have an idea how to re-enable the adapter from the shell?. Help would be appreciated thanks. First time this has ever happened to me.


      I have tried command below with no success.

      ifconfig bge0 up

      /etc/rc.linkup opt1 start

      /etc/rc.linkup interface=bge0 action=start

      1 Reply Last reply Reply Quote 0
      • pttP
        ptt Rebel Alliance
        last edited by

        Maybe you can access from the WAN side....

        https://docs.netgate.com/pfsense/en/latest/usermanager/locked-out-of-the-webgui.html

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

          You mean you unassigned LAN? You only have a WAN interface?

          If you only have WAN you will be able to login to the gui using that IP, the anti-lockout rule will have been moved to that.

          From the console you can re-assign an interface as LAN from the menu. Or you can also roll-back the config change you last made from that menu.

          Steve

          zoqaskZ 1 Reply Last reply Reply Quote 0
          • zoqaskZ
            zoqask @stephenw10
            last edited by

            @stephenw10 yep. Spot on I just hadn't replied yet. Reassigned the IP on the bge0 interface and it automatically enabled the interface again. Many thanks for the help from all on this thread.

            I did work it out myself but knowing others would have got it as well makes a difference. Thanks.

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