[Lxc-users] how to configure lxc's route table without route cmd?

Fajar A. Nugraha list at fajar.net
Wed Mar 7 04:11:14 UTC 2012


2012/3/7 陈竞 <cj.magina at gmail.com>:
> i start a container with virtual network without configuring route,  i
> wonder if i can configure route table according to
>
> lxc configure file or changing some file in host os. i dont want to execute
> route command in lxc.

IMHO it's easier to:
- create bridged networking + NAT on host
- use dhcp on guest
- use iptables on host to restrict guest access, if needed

-- 
Fajar




More information about the lxc-users mailing list