PVE1(Version 1.4),one network card has two ip address(x.x.3.179 and 192.168.1.2)
OpenVZ(it is one of containers of PVE1,using Virtual Network,ip is x.x.3.180)
PVE2(Version 1.4),ip is 192.168.1.3
PVE1
vps-dgcnc1:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
x.x.3.180 * 255.255.255.255 UH 0 0 0 venet0
x.x.3.176 * 255.255.255.248 U 0 0 0 vmbr0
192.168.1.0 * 255.255.255.0 U 0 0 0 vmbr0
default x.x.3.182 0.0.0.0 UG 0 0 0 vmbr0
Openvz
vps-vz:~# route
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.1 * 255.255.255.255 UH 0 0 0 venet0
default 192.0.2.1 0.0.0.0 UG 0 0 0 venet0
here is my question:
1)PVE1 and PVE2 is connected to a D-link Switch,they can access each other;the Openvz can access to PVE1(it can access both 192.168.1.2 and x.x.3.179),but it can't access to PVE2,how can I fix this problem?
2)for the Openvz,the ip is x.x.3.180,but the default gateway is "192.0.2.1",why?
OpenVZ(it is one of containers of PVE1,using Virtual Network,ip is x.x.3.180)
PVE2(Version 1.4),ip is 192.168.1.3
PVE1
vps-dgcnc1:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
x.x.3.180 * 255.255.255.255 UH 0 0 0 venet0
x.x.3.176 * 255.255.255.248 U 0 0 0 vmbr0
192.168.1.0 * 255.255.255.0 U 0 0 0 vmbr0
default x.x.3.182 0.0.0.0 UG 0 0 0 vmbr0
Openvz
vps-vz:~# route
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.1 * 255.255.255.255 UH 0 0 0 venet0
default 192.0.2.1 0.0.0.0 UG 0 0 0 venet0
here is my question:
1)PVE1 and PVE2 is connected to a D-link Switch,they can access each other;the Openvz can access to PVE1(it can access both 192.168.1.2 and x.x.3.179),but it can't access to PVE2,how can I fix this problem?
2)for the Openvz,the ip is x.x.3.180,but the default gateway is "192.0.2.1",why?