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

    Change port name

    Scheduled Pinned Locked Moved Development
    5 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.
    • ?
      Guest
      last edited by

      Hi
      I want to change pfsense network port name from em0 to eth0.
      i created /etc/rc.conf with this content:

      ifconfig_em0_name="eth0"
      

      when i reboot pfsense box, this file is removed. Why this occurs? how can i change interface name permanently?

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        Why a conf file remove automatically in pfsense?

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          You can, and most likely will, break things by doing this. Don't.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by

            Why?
            i can add new interface name in config file.
            did you hardcode anything about em0,โ€ฆ.?

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              In some places it may use the NIC's name to ensure it is compatible with other subsystems such as traffic shaping, VLANs, and so on.

              We designed it so that you do not need to know or care what the actual NIC names are post-install. What you're trying to do, as I said, will most likely break more than you believe it will help. Just leave it as it was.

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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