[lxc-users] Lxc container, add custom route

2016-01-26 Thread florian leparoux
Hello, I try to setup a custom route for my CT. I've add the route-eth0 file with my route but this file is ignored because the ifcfg-eth0 doesn't exist. The CT ip is set by the config file: lxc.network.ipv4 So, can we add a lxc.network.ipv4.route? Regards, T1loc __

Re: [lxc-users] Lxc container, add custom route

2016-01-26 Thread Fajar A. Nugraha
On Tue, Jan 26, 2016 at 7:05 PM, florian leparoux wrote: > Hello, > > I try to setup a custom route for my CT. > I've add the route-eth0 file with my route but this file is ignored > because the ifcfg-eth0 doesn't exist. > try creating ifcfg-eth0, with BOOTPROTO=none, and IPADDR, NETMASK, NETWOR

Re: [lxc-users] Lxc container, add custom route

2016-01-27 Thread Florian Leparoux
Thank you for your reply I've created the file and now I'm not able to restart the network inside the CT cat ifcfg-eth0 BOOTPROTO=none #IPADDR= #NETMASK= #NETWORK= service network restart systemd[1]: Failed to start LSB: Bring up/down networking. Le 27/01/2016 05:22, Fajar A. Nugraha a éc

Re: [lxc-users] Lxc container, add custom route

2016-01-27 Thread Florian Leparoux
Same thing with IPADDR, NETWORK, NETMASK uncommented Le 27/01/2016 05:22, Fajar A. Nugraha a écrit : On Tue, Jan 26, 2016 at 7:05 PM, florian leparoux > wrote: Hello, I try to setup a custom route for my CT. I've add the route-eth0 file with my route but t

Re: [lxc-users] Lxc container, add custom route

2016-01-27 Thread Fajar A. Nugraha
On Wed, Jan 27, 2016 at 4:55 PM, Florian Leparoux wrote: > Thank you for your reply > > I've created the file and now I'm not able to restart the network inside > the CT > > That's an expected result. You're not supposed to run commands like "ifdown" or "service network restart" (or anything that

Re: [lxc-users] Lxc container, add custom route

2016-01-28 Thread Florian Leparoux
Ok, So I will use the configuration inside the CT. Thank you for your reply. Regards, Le 27/01/2016 22:46, Fajar A. Nugraha a écrit : On Wed, Jan 27, 2016 at 4:55 PM, Florian Leparoux > wrote: Thank you for your reply I've created the file and now I'm not abl