Date: Sun, 05 Jan 1997 06:26:35 -0100 From: Darius Moos <moos@degnet.baynet.de> To: Vincent Poy <vince@mail.MCESTATE.COM> Cc: questions@freebsd.org Subject: Re: FreeBSD ethernet alias setup Message-ID: <3.0.32.19970105062634.00722f0c@cyclone.degnet.baynet.de>
next in thread | raw e-mail | index | archive | help
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 > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19970105062634.00722f0c>