From: Eugene Prokopiev <prokopiev@stc.donpac.ru> To: Sysadmins@lists.altlinux.org Subject: [Sysadmins] OpenVZ : VE default route Date: Tue, 24 Oct 2006 16:32:20 +0400 Message-ID: <453E07D4.10309@stc.donpac.ru> (raw) Здравствуйте! Требуется в VE указать свой default router принудительно. Однако: [root@m1 ~]# vzctl create 104 --ostemplate altlinux-sisyphus --config vps.basic Creating VE private area: /var/lib/vz/private/104 Performing postcreate actions VE private area was created [root@m1 ~]# vzctl start 104 Starting VE ... VE is mounted Setting CPU units: 1000 VE start in progress... [root@m1 ~]# vzctl exec 104 ip a 1: lo: <LOOPBACK> mtu 16436 qdisc noop link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 3: venet0: <BROADCAST,POINTOPOINT,NOARP> mtu 1500 qdisc noop link/void [root@m1 ~]# vzctl exec 104 ip r [root@m1 ~]# vzctl set 104 --veth_add veth4,00:12:34:56:78:0A,eth0,00:12:34:56:78:0B --save Processing veth devices Saved parameters for VE 104 [root@m1 ~]# vzctl exec 104 ip a 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue link/void inet 127.0.0.1/32 scope host venet0 5: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop link/ether 00:12:34:56:78:0b brd ff:ff:ff:ff:ff:ff [root@m1 ~]# vzctl exec 104 ip r 192.0.2.0/24 dev venet0 scope host default via 192.0.2.1 dev venet0 Можно ли как-то попросить OpenVZ не портить таблицу маршрутизации? Может его можно как-то попросить и venet-интерфейс не создавать? Мне он не нужен, достаточно veth ... В ветке "Сеть в OpenVZ" уже обсуждалось, отчего эти маршруты не добавились. А как правильно сделать, чтобы они и не добавлялись? -- С уважением, Прокопьев Евгений
next reply other threads:[~2006-10-24 12:32 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-10-24 12:32 Eugene Prokopiev [this message] 2006-10-24 21:11 ` Konstantin A. Lepikhov 2006-10-25 6:18 ` Slava Dubrovskiy 2006-10-25 12:28 ` Eugene Prokopiev 2006-10-25 12:35 ` Konstantin A. Lepikhov 2006-10-25 12:41 ` Slava Dubrovskiy 2006-10-25 13:02 ` Konstantin A. Lepikhov 2006-10-25 13:12 ` Slava Dubrovskiy
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=453E07D4.10309@stc.donpac.ru \ --to=prokopiev@stc.donpac.ru \ --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