Run Start up commands
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?
Cry Havok last edited by
Why not just configure them through the web GUI?
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.
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