On Apr 16, 2013, at 1:28 PM, J David wrote:

> Hello,
> 
> 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 route
> inside the jail?
> 
> Ifconfig and the network work fine, but route returns:
> 
> # route add default 192.168.0.1
> route: writing to routing socket: Invalid argument
> add net default: gateway 192.168.0.1: Invalid argument
> 
> The behavior appears the same whether the jail is running 8.3-i386 or
> 9.1-i386.
> 
> Based on this:
> 
> http://lists.freebsd.org/pipermail/freebsd-amd64/2011-October/014050.html
> 
> 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?
> 
> 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.
-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[email protected]"

Reply via email to