Date: Sat, 27 Aug 2005 18:25:55 -0400 From: "James Bowman Sineath, III" <sineathj1@citadel.edu> To: "John Barbieri" <tenpin784@metrocast.net>, <albi@scii.nl> Cc: freebsd-questions@freebsd.org, Carstea Catalin <carstea.catalin@gmail.com> Subject: Re: interface alias at start-up Message-ID: <001f01c5ab56$4b22b4b0$030a000a@IBMTWAQPEF2DWZ> References: <dc6701ba05082714265623d18f@mail.gmail.com><20050827234044.221a929e.albi@scii.nl> <4310E0FC.2050108@metrocast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> FWIW: > > That doesnt work for me :( Make sure that you replaced rl0 with the name of your interface, which can be found with a simple ifconfig -a. > any other way? write a simple shell script to do it or do it manually with the following: ifconfig <interface> inet <ip> netmask <subnet mask> alias However, using your rc.conf should bind them when you boot up. I have heard that sometimes you have to statically add routes to your kernel routing table for aliases to work, however I don't know if there is any truth to that. You can try adding them with the following command: route add -host <ip> 127.0.0.1 0 Bow Sineath Class of 2006, the Citadel sineathj1@citadel.edu - bow.sineath@gmail.com > albi@scii.nl wrote: > >>On Sat, 27 Aug 2005 14:26:32 -0700 >>Carstea Catalin <carstea.catalin@gmail.com> wrote: >> >> >> >>>how tu setting-up interface alias at start-up >>> >>> >> >># example /etc/rc.conf part >> >>defaultrouter="192.168.2.1" >> >>ifconfig_rl0="inet 192.168.2.222 netmask 255.255.255.0" >> >>ifconfig_rl0_alias0="inet 192.168.2.2 netmask 0xffffffff" >>ifconfig_rl0_alias1="inet 192.168.2.3 netmask 0xffffffff" >>ifconfig_rl0_alias2="inet 192.168.2.4 netmask 0xffffffff" >>ifconfig_rl0_alias3="inet 192.168.2.5 netmask 0xffffffff" >>ifconfig_rl0_alias4="inet 192.168.2.6 netmask 0xffffffff" >> >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to >>"freebsd-questions-unsubscribe@freebsd.org" >> >> >> >> > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001f01c5ab56$4b22b4b0$030a000a>