From owner-freebsd-questions@FreeBSD.ORG Sat Aug 27 22:17:25 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB03316A41F for ; Sat, 27 Aug 2005 22:17:25 +0000 (GMT) (envelope-from tenpin784@metrocast.net) Received: from mx0.metrocast.net (coltrane-mx.metrocast.net [65.175.128.144]) by mx1.FreeBSD.org (Postfix) with SMTP id DBC4743D48 for ; Sat, 27 Aug 2005 22:17:24 +0000 (GMT) (envelope-from tenpin784@metrocast.net) Received: (qmail 4959 invoked from network); 27 Aug 2005 22:17:23 -0000 Received: from [127.0.0.1] ([65.175.136.163]) by mx0.metrocast.net ([65.175.128.144]) with ESMTP via TCP; 27 Aug 2005 22:17:23 -0000 Message-ID: <4310E6EA.3070503@metrocast.net> Date: Sat, 27 Aug 2005 18:19:22 -0400 From: John Barbieri User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Glenn Dawson References: <20050827234044.221a929e.albi@scii.nl> <4310E0FC.2050108@metrocast.net> <6.2.3.4.2.20050827150200.038c08a0@cobalt.antimatter.net> In-Reply-To: <6.2.3.4.2.20050827150200.038c08a0@cobalt.antimatter.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "albi@scii.nl" , freebsd-questions@freebsd.org, Carstea Catalin Subject: Re: interface alias at start-up X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 22:17:25 -0000 ifconfig_xl0="inet xxx.xxx.xxx.xxx netmask 255.255.255.128" ifconfig_xl0_alias="inet 172.16.2.138 netmask 255.255.255.0" yea they are in different networks. i will try the 255.255.255.255 thing when i get back to work. that seems odd that you have to put a host netmask on there :/ Glenn Dawson wrote: > At 02:54 PM 8/27/2005, John Barbieri wrote: > >> FWIW: >> >> That doesnt work for me :( > > > One other thing. If the aliases you're trying to create are on a > different network, the subnet mask of the first one has to be the > "real" mask, and any further aliases in that same network have to use > a mask of 255.255.255.255. > > Example: > > ifconfig_fxp0="inet 10.0.0.1 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 10.0.0.2 netmask 255.255.255.255" > ifconfig_fxp0_alias1="inet 10.1.1.1 netmask 255.255.255.0" > ifconfig_fxp0_alias2="inet 10.1.1.2 netmask 255.255.255.255" > > -Glenn > > >> any other way? >> >> albi@scii.nl wrote: >> >> >On Sat, 27 Aug 2005 14:26:32 -0700 >> >Carstea Catalin 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" > > > >