From: "Васюк Максим Анатольевич" <vaksim@gmail.com> To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org> Subject: [Sysadmins] Не прописывается маршрут для veth при старте контейнера OpenVZ Date: Tue, 21 Jul 2015 17:00:42 +0600 Message-ID: <55AE265A.7040203@gmail.com> (raw) Привет Всем! # uname -r 2.6.32-ovz-el-alt130 на t7 Хочу поднять в контейнере сеть через veth Перечитал нашу вики: http://www.altlinux.org/OpenVZ_veth_etcnet Проделал необходимые манипуляции: создал каталог и файлы и наполнил их содержимым: # pwd /etc/net/ifaces/veth998.0 # ls -l итого 16 -rw-r--r-- 1 root root 16 июл 21 15:44 ipv4address -rw-r--r-- 1 root root 27 июл 21 15:44 ipv4route -rw-r--r-- 1 root root 53 июл 21 15:44 options -rw-r--r-- 1 root root 30 июл 21 16:00 sysctl.conf # cat * 0 dev veth998.0 172.20.50.12 dev veth998.0 TYPE=eth BOOTPROTO=static ONBOOT=yes USE_HOTPLUG=yes proxy_arp=1 ipv4_forwarding=1 Стартую контейнер, маршрут на ноде не прописался, # route -n Kernel IP routing table Destination Gateway Genmask Flags Ref Use Iface 172.20.50.11 0.0.0.0 255.255.255.255 UH 0 0 venet0 172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 br-rpm 0.0.0.0 172.20.10.11 0.0.0.0 UG 0 0 br-rpm Кроме этого еще не отрабатывает sysctl.conf, как будто он вообще в /etc/net/ifaces/veth998.0/ не смотрит. На ноде руками делаю: ifdown veth998.0 ifup veth998.0 Всё сразу работать начинает, маршрут прописывается сам, sysctl.conf срабатывает. Почему-то при старте контейнера не хочет. Помогите кто чем может! -- С уважением, Васюк Максим
next reply other threads:[~2015-07-21 11:00 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-21 11:00 Васюк Максим Анатольевич [this message] 2015-07-21 17:08 ` Michael Shigorin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=55AE265A.7040203@gmail.com \ --to=vaksim@gmail.com \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git