Date: Tue, 16 Apr 2013 20:39:33 +0000 From: "Teske, Devin" <Devin.Teske@fisglobal.com> To: J David <j.david.lists@gmail.com> Cc: "<freebsd-jail@freebsd.org>" <freebsd-jail@freebsd.org> Subject: Re: routing in VIMAGE jails with different versions Message-ID: <13CA24D6AB415D428143D44749F57D7201F03E5D@ltcfiswmsgmb21> In-Reply-To: <CABXB=RS1k0pkMWUdt%2BrDYndjermYiPRMn5VxL531Q3N4ZiX14Q@mail.gmail.com> References: <CABXB=RS1k0pkMWUdt%2BrDYndjermYiPRMn5VxL531Q3N4ZiX14Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 16, 2013, at 1:28 PM, J David wrote: > Hello, >=20 > If a 9-STABLE amd64 host compiled with VIMAGE support contains a jail > running i386 code with a vnet interface, how does one set the default rou= te > inside the jail? >=20 > Ifconfig and the network work fine, but route returns: >=20 > # route add default 192.168.0.1 > route: writing to routing socket: Invalid argument > add net default: gateway 192.168.0.1: Invalid argument >=20 > The behavior appears the same whether the jail is running 8.3-i386 or > 9.1-i386. >=20 > Based on this: >=20 > http://lists.freebsd.org/pipermail/freebsd-amd64/2011-October/014050.html >=20 > It looks like this there was a host-side patch for this in the 8.2 > timeframe, but I compared the patch to the 9-STABLE source for > sys/net/rtsock.c and it's not there. As that's from two years ago, there= 's > probably a reason it didn't make it in, so does anyone know what is the > right way to manage routes in VIMAGE jails? >=20 > Thanks for any advice! I've been running with that patch for years now. I asked the author of the = patch if he had plans to merge it in, he said he wasn't happy with one edge= -case. I don't know where this stands, but just wanted to chime-in that the patch = works well for us in the situation you describe. --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13CA24D6AB415D428143D44749F57D7201F03E5D>