[Lxc-users] Unable to set default gw
Trent W. Buck
twb at cybersource.com.au
Fri Dec 24 00:42:49 UTC 2010
Hugues <huguesmax at gmail.com> writes:
> Thanks
> Do you have a idea to solve this problem ?
> Something low level, like
>
> echo "xxxxx xxx xxx xxx " > /proc/net/route directly in host server ?
IIUC this is how you get to a container's /proc without the container's
restrictions. (The backticks yield the pid of the container's init.)
root at omega:~# cat /proc/1/net/route
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
br-managed 009BA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0
br-managed 00000000 149BA8C0 0003 0 0 100 00000000 0 0 0
root at omega:~# cat /proc/`pgrep init | sed -n 2p`/root/proc/1/net/route
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
managed 009BA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0
managed 00000000 149BA8C0 0003 0 0 100 00000000 0 0 0
More information about the lxc-users
mailing list