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

Run Start up commands

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
4 Posts 4 Posters 1.8k 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.
  • C
    camaleongdl
    last edited by Jul 23, 2007, 6:27 PM

    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
    • C
      Cry Havok
      last edited by Jul 23, 2007, 6:34 PM

      Why not just configure them through the web GUI?

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by Jul 23, 2007, 6:38 PM

        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
        • D
          dotdash
          last edited by Jul 23, 2007, 6:58 PM

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