Date: Fri, 4 May 2001 16:59:18 -0400 From: "Matthew Emmerton" <matt@gsicomp.on.ca> To: "Drew J. Weaver" <drew.weaver@thenap.com>, "'freebsd-net@freebsd.org'" <freebsd-net@FreeBSD.ORG> Subject: Re: IP alias problem /w 2 different subnets. Message-ID: <003c01c0d4dd$16806cb0$1200a8c0@gsicomp.on.ca> References: <B1A7D9973EBED3119ADD009027DC86491810B9@mailman.thenap.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003c01c0d4dd$16806cb0$1200a8c0>