LXC debian 8: различия между версиями
Материал из support.qbpro.ru
imported>Supportadmin (Новая страница: «# В /etc/default/grub изменить параметр <nowiki>GRUB_CMDLINE_LINUX="cgroup_enable=memory"</nowiki> # В /etc/sysctl.conf <nowiki>net.ipv4.ip_…») |
imported>Supportadmin Нет описания правки |
||
Строка 1: | Строка 1: | ||
1. В /etc/default/grub изменить параметр | |||
<nowiki>GRUB_CMDLINE_LINUX="cgroup_enable=memory"</nowiki> | <nowiki> | ||
GRUB_CMDLINE_LINUX="cgroup_enable=memory" | |||
<nowiki>net.ipv4.ip_forward=1 | </nowiki> | ||
2. В /etc/sysctl.conf | |||
<nowiki> | |||
net.ipv4.ip_forward=1 | |||
net.ipv4.conf.all.forwarding=1 | net.ipv4.conf.all.forwarding=1 | ||
net.ipv4.conf.all.proxy_arp=1 | net.ipv4.conf.all.proxy_arp=1 | ||
</nowiki> | </nowiki> | ||
3. grub_updare, reboot | |||
4. В /etc/network/interfaces | |||
<nowiki> | |||
#allow-hotplug eth0 | |||
#auto eth0 | |||
#iface eth0 inet static | |||
auto br0 | |||
iface br0 inet static | |||
address 192.168.150.30 | |||
netmask 255.255.255.0 | |||
network 192.168.150.0 | |||
broadcast 192.168.150.255 | |||
gateway 192.168.150.1 | |||
dns-nameservers 192.168.150.1 | |||
bridge_ports eth0 | |||
bridge_fd 0 | |||
bridge_maxwait 0</nowiki> |
Версия от 09:58, 7 марта 2016
1. В /etc/default/grub изменить параметр
GRUB_CMDLINE_LINUX="cgroup_enable=memory"
2. В /etc/sysctl.conf
net.ipv4.ip_forward=1 net.ipv4.conf.all.forwarding=1 net.ipv4.conf.all.proxy_arp=1
3. grub_updare, reboot
4. В /etc/network/interfaces
#allow-hotplug eth0 #auto eth0 #iface eth0 inet static auto br0 iface br0 inet static address 192.168.150.30 netmask 255.255.255.0 network 192.168.150.0 broadcast 192.168.150.255 gateway 192.168.150.1 dns-nameservers 192.168.150.1 bridge_ports eth0 bridge_fd 0 bridge_maxwait 0