Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 May 1997 22:37:50 -0700
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        chad@anasazi.com
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: IP aliasing hacks 
Message-ID:  <18491.863242670@time.cdrom.com>
In-Reply-To: Your message of "Fri, 09 May 1997 21:11:37 PDT." <9705100411.AA25674@chad.anasazi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Ok, you asked for it...

Heh.  This is already implemented. :-)

>From the 2.2's /etc/rc.network (was earlier /etc/netstart):

    # Set up all the network interfaces, calling startup scripts if needed
    for ifn in ${network_interfaces}; do
            if [ -e /etc/start_if.${ifn} ]; then
                    . /etc/start_if.${ifn} ${ifn}
            fi
            # Do the primary ifconfig if specified
            eval ifconfig_args=\$ifconfig_${ifn}
            if [ -n "${ifconfig_args}" ] ; then
                    ifconfig ${ifn} ${ifconfig_args}
            fi
            # Check to see if aliases need to be added
            alias=0
            while :
            do
                    eval ifconfig_args=\$ifconfig_${ifn}_alias${alias}
                    if [ -n "${ifconfig_args}" ]; then
                            ifconfig ${ifn} ${ifconfig_args} alias
                            alias=`expr ${alias} + 1`
                    else
                            break;
                    fi
            done
    ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18491.863242670>