Date: Wed, 22 Jun 2011 09:45:49 +0200 From: Damien Fleuriot <ml@my.gd> To: freebsd-questions@freebsd.org Subject: Re: Two Networks on one System Message-ID: <4E019DAD.2070608@my.gd> In-Reply-To: <4E0196E4.2060900@bah.homeip.net> References: <201106211128.p5LBSvCe095130@x.it.okstate.edu> <4E0196E4.2060900@bah.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/22/11 9:16 AM, Bernt Hansson wrote: > 2011-06-21 13:28, Martin McCormick skrev: >> Here is what the issue is right now. The remote campus >> in question has been on number space that was part of our Class >> B network. They got a block of subnets for their DNS's and >> campus enterprises and work stations. We secured them their own >> number space and they are migrating from their portion of our >> network to their new network and both nets are presented >> routable from the rest of the world. >> >> If you do a whois query for their domain, you get the >> address on our network of their primary DNS. When one updates >> the whois data, there is a lag of some hours until new queries >> start going to the new address of their primary DNS. In the mean >> time, we don't really care but we would like for the new >> interface for the primary to be reachable so that the minute the >> information changes, we're answering lookups. After that point, >> we will permanently take down the old interface address on our >> network and probably reboot with the normal configuration now >> being the new IP address. >> >> The problem I have, probably due to a misunderstanding >> of what I need to do, is easy to describe. >> >> The defaultrouter statement in rc.conf or > >> route add default x.x.x.x > > Have you tried route add netA netB or route add netB netA > > No offense but please do not give random, untested advice. What you just wrote reads as: - if you want to go to network A, do that through network B - if you want to go to network B, do that through network A Now can you see some kind of a loop forming here ? Solutions to the OP's problem have been given already: - PF's "reply-to" option has been discussed at length. - FreeBSD's own setfib was also briefly discussed Note this requires a kernel option override as seen here: http://forums.freebsd.org/showthread.php?t=888
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E019DAD.2070608>