Skip site navigation (1)Skip section navigation (2)
Date:      15 Jan 2003 17:39:03 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Josh Brooks <user@mail.econolodgetulsa.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: adding some new IPs from a different subnet - errors
Message-ID:  <1042614542.13691.113.camel@chowder.gsoft.com.au>
In-Reply-To: <20030114224329.Y39623-100000@mail.econolodgetulsa.com>
References:  <20030114224329.Y39623-100000@mail.econolodgetulsa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2003-01-15 at 17:15, Josh Brooks wrote:
> defaultrouter="10.10.10.1"
> ifconfig_fxp0="inet 10.10.10.2 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.10.10.3 netmask 255.255.255.255"
> 
> Ok, easy enough - one interface, one default router, and two IPs on that
> subnet.
> 
> BUT - as it happens, 10.10.10.1 is _also_ the default router for
> 192.168.0.0/24 ... it has the IP 192.168.0.1, but it also has the IP of
> 10.10.10.1 - it is the same default router, but with a few different
> subnets on it.
> 
> So, I went and added one of the 192 addresses to my system:
> 
> defaultrouter="10.10.10.1"
> ifconfig_fxp0="inet 10.10.10.2 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.10.10.3 netmask 255.255.255.255"
> ifconfig_fxp0_alias1="inet 192.168.0.2 netmask 255.255.255.255"

Change the netmask for alias0 to be 255.255.255.0. You only need a
'point to point' (255.255.255.255) netmask if the alias would conflict
with an existing subnet (as in how you have alias0)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1042614542.13691.113.camel>