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

    how to enable interface from cli (Lan disabled)

    General pfSense Questions
    2
    5
    442
    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.
    • N
      nikmiddleton
      last edited by

      Hi,

      I've disabled the lan interface from the GUI and forgot to enable Gui access on another LAN interface and am therefor locked out.

      Is it possible to enable this interface from the cli?

      I've tried option 12) PHP ad did $config['interfases']['lan']['enable'] = true;
      write_config();

      but it's still disabled.

      Any clues/hints please?

      regards

      KOMK 1 Reply Last reply Reply Quote 0
      • KOMK
        KOM @nikmiddleton
        last edited by

        @nikmiddleton Console option 15?

        1 Reply Last reply Reply Quote 0
        • N
          nikmiddleton
          last edited by

          Yes that would have been too easy. Unfortunately there are only 30 entries and every time there's an hourly firewall feed update it's added to that list, so it's scrolled off the list now. (I've been unable to go to site as yet)

          regards

          KOMK 1 Reply Last reply Reply Quote 0
          • KOMK
            KOM @nikmiddleton
            last edited by

            @nikmiddleton Have you tried a basic ifconfig <interface_name> up?

            N 1 Reply Last reply Reply Quote 0
            • N
              nikmiddleton @KOM
              last edited by

              @kom

              Nope, that doesn't work either I'm afraid

              What DOES work is selecting option 2 from menu, then re-entering ip address for LAN, and hey presto it's enabled again :)

              Thanks for your help in this, much appreciated

              regards

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