Date: Sat, 29 Oct 2016 13:48:40 -0700 From: Jack Vogel <jfvogel@gmail.com> To: "Mikhail T." <mi+thun@aldan.algebra.com> Cc: FreeBSD Net <FreeBSD-net@freebsd.org> Subject: Re: How to forward traffic out via a non-default interface? Message-ID: <CAFOYbckHsTuPGK9h63csA12QpLCEVDEJZvjvFM8UUKV6ZmvNmA@mail.gmail.com> In-Reply-To: <2685a303-1450-d060-0206-c84004f73e6d@aldan.algebra.com> References: <2685a303-1450-d060-0206-c84004f73e6d@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You got your answer on the other site :) You do know you can change the default address of the router so its not 192.168.1 don't you, it even persists over a reset... On Sat, Oct 29, 2016 at 1:21 PM, Mikhail T. <mi+thun@aldan.algebra.com> wrote: > Hello! I asked this question online already: > > http://superuser.com/q/1138996/247471?sem=2 > > if you have an answer, please, share it wherever you feel appropriate... > > have a fairly vanilla home LAN with an Internet provider-supplied router > providing DHCP. The router uses many of its default settings unmodified. > The home network is 192.168.1.0/24 and the router itself is known > internally as 192.168.1.1. > > I need to configure several similar routers to change their default > settings. One of my computers (running FreeBSD) has a spare Ethernet > interface (|bce0|) and I connected one of these additional routers to it. > As expected, this router /also/ uses 192.168.1.1. The machine now has two > "configured" interfaces: > > * |bce1| -- 192.168.1.8, which is connected to the "real" router, > connecting it to the Internet and the rest of the home LAN > * |bce0| -- 192.168.1.5, which is connected to the second router, > which I need to change to use different network settings > > How can I reach this second router without breaking the machine's > connectivity with the LAN and the Internet? Simply trying to reach > 192.168.1.1 goes through |bce1| and reaches my normal router... > > Can |ipfw(8)| somehow force certain packets to go out using |bce0| instead > of |bce1|? Preferably, without the use of "fib", because adding one > requires a reboot... > > Thanks! Yours, > > -mi > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFOYbckHsTuPGK9h63csA12QpLCEVDEJZvjvFM8UUKV6ZmvNmA>