Date: Wed, 06 Nov 2013 01:43:35 +0100 From: Thomas Steen Rasmussen <thomas@gibfest.dk> To: freebsd-doc@freebsd.org Subject: ifconfig_if_aliases not documented in /etc/defaults/rc.conf or in handbook Message-ID: <527990B7.6080100@gibfest.dk>
next in thread | raw e-mail | index | archive | help
Hello there, ifconfig_if_aliases can greatly simplify rc.conf for machines with many IP aliases, since renumbering of all the _aliasN entries is no longer needed. But the syntax is not documented in /etc/defaults/rc.conf or in handbook at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-virtual-hosts.html Consider the example aliases from the handbook link above: ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255" ifconfig_fxp0_alias1="inet 10.1.1.3 netmask 255.255.255.255" ifconfig_fxp0_alias2="inet 10.1.1.4 netmask 255.255.255.255" ifconfig_fxp0_alias3="inet 10.1.1.5 netmask 255.255.255.255" ifconfig_fxp0_alias4="inet 202.0.75.17 netmask 255.255.255.240" ifconfig_fxp0_alias5="inet 202.0.75.18 netmask 255.255.255.255" ifconfig_fxp0_alias6="inet 202.0.75.19 netmask 255.255.255.255" ifconfig_fxp0_alias7="inet 202.0.75.20 netmask 255.255.255.255" Can now be written as: ifconfig_fxp0_aliases="inet 10.1.1.2-5/32 inet 202.0.75.17-20/28" This should be included both in /etc/defaults/rc.conf and in the handbook :) Thanks and best regards, /Thomas Steen Rasmussen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?527990B7.6080100>