Date: Fri, 01 Oct 2004 18:39:09 -0400 From: Glenn Sieb <ges@wingfoot.org> To: freebsd-questions@freebsd.org Cc: richard@syix.com Subject: Re: Quickie... Hopefully! Message-ID: <415DDC8D.9070605@wingfoot.org> In-Reply-To: <20041001222957.026415C40@richard.syix.com> References: <20041001222957.026415C40@richard.syix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Richard Marriner said the following on 10/1/2004 6:25 PM: >Dear list, > > Just wondering if there is anyway (preferably simple.) to have two ip >addresses on the same NIC that are different networks. > > First, I would test things out by adding an ifconfig alias (man ifconfig) and adding a new route to the new gateway IP (using the route command). Then, once you're sure things are working, add an ifconfig alias in rc.conf. You probably want the *new* IP to be the non-alias address, and the *old* IP to be the alias. Make sure that defaultrouter is set in rc.conf to be the new gateway IP. You'll need to also add the route for the aliased IP to the route table using the route command. Then, test away--make sure traffic from both IP blocks makes it through! Traceroute is your friend! :) (I'm not a total network geek, but IIRC, this is one way of doing what you're looking for. If there are better ways of doing this, I look forward to reading the replies and learning better ways! :) ) Best, Glenn -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." ~Benjamin Franklin, Historical Review of Pennsylvania, 1759
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?415DDC8D.9070605>