From owner-freebsd-net Fri May 4 14: 3:54 2001 Delivered-To: freebsd-net@freebsd.org Received: from skippyii.compar.com (mail.compar.com [216.208.38.130]) by hub.freebsd.org (Postfix) with ESMTP id EE06837B423 for ; Fri, 4 May 2001 14:03:51 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (HSE-Toronto-ppp213450.sympatico.ca [64.228.153.241]) by skippyii.compar.com (8.11.3/8.11.3) with SMTP id f44L8m263633; Fri, 4 May 2001 17:08:48 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <003c01c0d4dd$16806cb0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Drew J. Weaver" , "'freebsd-net@freebsd.org'" References: Subject: Re: IP alias problem /w 2 different subnets. Date: Fri, 4 May 2001 16:59:18 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Does anyone see any problem with the below rc.conf network info? Because the > aliases arent working.. and I have verified that the 209.190.xxx.xxx ips are > being routed to the 209.51.xxx.xxx IP, anyone have any idea on this? > > network_interfaces="fxp0 lo0" > ifconfig_fxp0="inet 209.51.xxx.xxx netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 209.190.xxx.xxx netmask 255.255.255.255" > ifconfig_fxp0_alias1="inet 209.190.xxx.xxx netmask 255.255.255.255" [ snip ] The rule for aliases (as outlined in 'man ifconfig') is: - if the aliased IP is on the same subnet as the primary IP, use the 255.255.255.255 netmask - if the aliased IP is on a different subnet than the primary IP, use the appropriate netmask for the aliased IP So if your 209.190.xxx.xxx IPs are on a /24 network, then you should be using the 255.255.255.0 netmask. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message