ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] OpenVZ : VE default route
@ 2006-10-24 12:32 Eugene Prokopiev
  2006-10-24 21:11 ` Konstantin A. Lepikhov
  0 siblings, 1 reply; 8+ messages in thread
From: Eugene Prokopiev @ 2006-10-24 12:32 UTC (permalink / raw)
  To: Sysadmins

Здравствуйте!

Требуется в 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" уже обсуждалось, отчего эти маршруты не 
добавились. А как правильно сделать, чтобы они и не добавлялись?

-- 
С уважением, Прокопьев Евгений



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-10-25 13:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24 12:32 [Sysadmins] OpenVZ : VE default route Eugene Prokopiev
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

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