From owner-freebsd-questions Sat Jan 4 21:33:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA13489 for questions-outgoing; Sat, 4 Jan 1997 21:33:44 -0800 (PST) Received: from cyclone.degnet.baynet.de (root@cyclone.degnet.baynet.de [194.95.214.129]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id VAA13484 for ; Sat, 4 Jan 1997 21:33:41 -0800 (PST) Received: from nada (ppp2 [194.95.214.132]) by cyclone.degnet.baynet.de (8.6.12/8.6.9) with SMTP id HAA16462; Sun, 5 Jan 1997 07:35:10 +0100 Message-Id: <3.0.32.19970105062634.00722f0c@cyclone.degnet.baynet.de> X-Sender: moos@cyclone.degnet.baynet.de X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Sun, 05 Jan 1997 06:26:35 -0100 To: Vincent Poy From: Darius Moos Subject: Re: FreeBSD ethernet alias setup Cc: questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In FreeBSD-2.1.5 there is a special mechanism for doing this. Howto: In /etc/sysconfig: Set your network-devices but don't specify any arguments for them. In your case: ... network_interfaces="ed1 eth0 lo0" # no ifconfig_ed1-, ifconfig_eth0- or ifconfig_lo0-options here Then create files /etc/start_if.ed0, /etc/start_if.eth0 and /etc/start_if.lo0 In /etc/start_if.ed0: /sbin/ifconfig ed0 inet 206.171.98.29 netmask 255.255.255.0 /sbin/ifconfig ed0 inet 206.171.98.1 netmask 0xffffffff alias # more aliases if desired. In /etc/start_if.eth0: /sbin/ifconfig eth0 inet 206.13.17.50 206.13.17.49 netmask 255.255.255.252 In /etc/start_if.lo0: /sbin/ifconfig lo0 inet 127.0.0.1 Reboot. BTW, you already asked the same question some time ago and i already answered it. Darius Moos. At 17:29 04.01.97 -0800, you wrote: >Greetings, > > How does one setup a alias for ed1 of 206.171.98.1 when the >address for the machine is already 206.171.98.29 for use with the ET >Synchronous Serial Card as a router in /etc/sysconfig in FreeBSD 2.1.6R >since all the other machines are pointing to 206.171.98.1 for the default >route. Here is what I have in /etc/sysconfig now: > >network_interfaces="ed1 eth0 lo0" >ifconfig_ed1="inet 206.171.98.29 netmask 255.255.255.0" >ifconfig_eth0="inet 206.13.17.50 206.13.17.49 netmask 255.255.255.252" > >ifconfig_lo0="inet localhost" > >defaultrouter=206.13.17.49 > > >Cheers, >Vince - vince@MCESTATE.COM - vince@GAIANET.NET >Unix Networking Operations >GaiaNet Corporation - M & C Estate >Beverly Hills, California USA 90210 > > > >