Navigation

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

    Run Start up commands

    Installation and Upgrades
    4
    4
    1539
    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 Havok
        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
          • dotdash
            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

            Products

            • Platform Overview
            • TNSR
            • pfSense
            • Appliances

            Services

            • Training
            • Professional Services

            Support

            • Subscription Plans
            • Contact Support
            • Product Lifecycle
            • Documentation

            News

            • Media Coverage
            • Press
            • Events

            Resources

            • Blog
            • FAQ
            • Find a Partner
            • Resource Library
            • Security Information

            Company

            • About Us
            • Careers
            • Partners
            • Contact Us
            • Legal
            Our Mission

            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

            Subscribe to our Newsletter

            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

            © 2020 Rubicon Communications, LLC | Privacy Policy