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

Enable LAN interface from Shell

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 3 Posters 7.5k 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.
  • Z
    zoqask
    last edited by Dec 15, 2019, 1:18 PM

    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
    • P
      ptt Rebel Alliance
      last edited by Dec 15, 2019, 1:36 PM

      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
      • S
        stephenw10 Netgate Administrator
        last edited by Dec 15, 2019, 1:41 PM

        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

        Z 1 Reply Last reply Dec 15, 2019, 5:12 PM Reply Quote 0
        • Z
          zoqask @stephenw10
          last edited by Dec 15, 2019, 5:12 PM

          @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
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received