OpenVZ Forum


Home » International » Russian » VE default route
VE default route [message #7759] Tue, 24 October 2006 12:34 Go to previous message
enpx is currently offline  enpx
Messages: 50
Registered: October 2006
Member
Здравствуйте!

Требуется в 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 ...
 
Read Message
Read Message
Previous Topic: *SOLVED* vzquota : (error) Quota on syscall for 10001: Device or resource
Next Topic: Сеть между VE
Goto Forum:
  


Current Time: Fri Nov 15 19:47:31 GMT 2024

Total time taken to generate the page: 0.03269 seconds