Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 03:23:18 -0500 (EST)
From:      "Eric D. Futch" <efutch@nyct.net>
To:        Kai Voigt <k@123.org>
Cc:        Jim Manley <jmanley@metronet.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: Multiple IP addresses
Message-ID:  <Pine.BSF.4.05.10001200314450.29077-100000@bsd1.nyct.net>
In-Reply-To: <20000120082732.V78143@abc.123.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 20 Jan 2000, Kai Voigt wrote:

>And to get all this done automatically at boot time, add this
>to your /etc/rc.conf
>
>network_interfaces="de0 lo0"  # List of network interfaces (lo0 is loopback).
>ifconfig_de0="inet 195.244.241.123  netmask 255.255.255.0"
>ifconfig_de0_alias0="inet 195.244.241.124 netmask 255.255.255.255"
>ifconfig_de0_alias1="inet 195.244.241.125 netmask 255.255.255.255"
>ifconfig_de0_alias2="inet 195.244.241.126 netmask 255.255.255.255"
>ifconfig_de0_alias3="inet 195.244.241.127 netmask 255.255.255.255"
>ifconfig_de0_alias4="inet 195.244.241.128 netmask 255.255.255.255"
>

Or you could take advantage of that neat little thing in rc.network that
runs /etc/start_if.<interface> for you.  This is what I do on all my
boxes.  I stuff all my aliases into /etc/start_if.fxp0 so I don't have to
overload rc.conf (it's overloaded enough already :)).

Relevant lines from /etc/rc.network (starts line #57 rc.network version
1.39.2.14):
...
for ifn in ${network_interfaces}; do
            showstat=false
            if [ -e /etc/start_if.${ifn} ]; then
                    . /etc/start_if.${ifn}
                    showstat=true
            fi
...

Just something to consider.

>Kai

Eric

>PS: People, please learn to quote, thank you.

Ok.

>-- 
>kai voigt                                               hamburger chaussee 36
>                                                                   24113 kiel
>                                                          04 31 - 22 19 98 69
>                                                          http://k.123.org/

--
Eric Futch              New York Connect.Net, Ltd.
efutch@nyct.net         Technical Support Staff
http://www.nyct.net     (212) 293-2620
"Bringing New York The Internet Access It Deserves"



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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