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

    Change hostname and IP via cli?

    Scheduled Pinned Locked Moved Virtualization
    2 Posts 2 Posters 1.4k 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.
    • N
      nasheayahu
      last edited by nasheayahu

      How do you change the hostname via cli, I used ee to try to make the change in /etc/hosts to 10.30.71.1 pfSenseLab.home.arp pfSenseLab but, after reboot is was changed back to 192.168.1.1 pfSense.home.arp pfSense.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @nasheayahu
        last edited by

        @nasheayahu

        pfSense is a GUI based router firewall.
        So, use the GUI ( 😊 ).

        575ffff5-d821-49ed-83a0-db734ea93c72-image.png

        All, this means every config file, like /etc/hosts, are created upon boot or system GUI config only.
        You should not modify them manually.

        The entire system config is read from /cf/conf/config.xml upon boot. Go have a look.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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