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

    Run Start up commands

    Problems Installing or Upgrading pfSense Software
    4
    4
    1.8k
    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.
    • C
      camaleongdl
      last edited by

      Hi,

      I need to run a few commands on the start-up process. I add 2 interfases to manage 3 lans, but every reboot, I have to run this commands on shell:

      • ifconfig <if>192.168.2.1 netmask 255.255.252.0 alias</if>

      • ifconfig <if>192.168.3.1 netmask 255.255.252.0 alias</if>

      Is there any way to do it automatically?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Cry HavokC
        Cry Havok
        last edited by

        Why not just configure them through the web GUI?

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          Use the hidden shellcommands in the config.xml. See http://forum.pfsense.org/index.php/topic,240.msg14935.html#msg14935 for an example how you can use them to run commands on bootup.

          1 Reply Last reply Reply Quote 0
          • dotdashD
            dotdash
            last edited by

            Last time I checked the use of standard FreeBSD alias' was not supported nor GUI configurable.
            And your Alias' are in the same subnet. I thought that was a problem, but can't remember. I remember something about the second alias in a given subnet mask being set as a /32 to prevent problems.
            192.168.0.0/22 would be 192.168.0.1-192.168.3.254

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