Gary Wallis wrote, On 2011-10-29 04:29:
Sounds like a general networking vlan and/or bonding issue. But make sure that 
these /etc/vz/vz.conf parameters are set correctly:

# The name of the device whose IP address will be used as source IP for CT.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

# Controls which interfaces to send ARP requests and modify APR tables on.
#NEIGHBOUR_DEVS=detect

tried also with "all"

## Fail if there is another machine in the network with the same IP
ERROR_ON_ARPFAIL="no"

Have it already so

Also check the output of

# route -n

Make sure default gw (0.0.0.0) is on the correct device and that this device is 
plugged into the correct switch port.

The main IP is XXX.XXX.132.147/24, and the GW is XXX.XXX.132.1 .
The 2nd IP is XXX.XXX.131.15 .

The goal is to assign the 2nd IP to the VE.
Let's start on the HN. Is the following setup on the HN correct?

# ip a l
root@s7:/tmp# ip a l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
    link/ether 00:1b:21:ad:7b:d3 brd ff:ff:ff:ff:ff:ff
    inet XXX.XXX.132.147/24 brd XXX.XXX.132.255 scope global eth0
    inet XXX.XXX.131.15/24 brd XXX.XXX.131.255 scope global eth0:0
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue 
state UNKNOWN
    link/void

# ip r l
XXX.XXX.132.0/24 dev eth0  proto kernel  scope link  src XXX.XXX.132.147
XXX.XXX.131.0/24 dev eth0  proto kernel  scope link  src XXX.XXX.131.15
default via XXX.XXX.132.1 dev eth0

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
XXX.XXX.132.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
XXX.XXX.131.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         XXX.XXX.132.1    0.0.0.0         UG    0      0        0 eth0

Both IPs can be pinged from outside.
If that's correct on the HN, then how should the /etc/network/interfaces on the 
VE look like?

_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users

Reply via email to