* SOLVED 2 VLAN'd IPs in 1 VPS [message #21269] |
Thu, 04 October 2007 04:15 |
blueboxgroup
Messages: 3 Registered: October 2007
|
Junior Member |
|
|
I feel like I'm missing something very basic here that will tie this together and make it all work. I'm open to any inputs / questions.
IP Configuration:
Hardware Node:
eth0 - 192.168.0.1
VLAN5 - 10.5.5.192
VLAN14 - 10.5.14.192
Default GW - 10.5.5.203
VE101:
VLAN5 - 10.5.5.121
VLAN14 - 10.5.14.121
Separate Box in VLAN 14:
ETH0 - Public IP
ETH1 - 10.5.14.101 (in Vlan 14)
--------
Networking Config with VZ:
101.conf:
NETIF="ifname=vlan14,mac=00:18:51:EF:D4:BD,host_ifnam:q
e=veth101.14,host_mac=00:18:51:BC:49:0C;ifname=vlan5,mac=00: 18:51:E0:FC:53,host_ifname=veth101.5,host
_mac=00:18:51:4A:C9:15"
Startup Script:
ifconfig veth101.5 0
echo 1 > /proc/sys/net/ipv4/conf/veth101.5/forwarding
echo 1 > /proc/sys/net/ipv4/conf/veth101.5/proxy_arp
ip route add 10.5.5.121 dev veth101.5
ifconfig veth101.14 0
echo 1 > /proc/sys/net/ipv4/conf/veth101.14/forwarding
echo 1 > /proc/sys/net/ipv4/conf/veth101.14/proxy_arp
ip route add 10.5.14.121 dev veth101.14
--------
Ping Tests:
VE0 can ping 10.5.5.203 (gw)
VE0 can ping 10.5.14.101 (Separate box)
VE0 can ping VE101 on both IPs
VE101 can ping VE0.
VE101 can ping 10.5.5.203 (gw)
VE101 can not ping 10.5.4.101 (The Separate box)
10.5.5.203 can ping VE0 (10.5.5.192)
10.5.5.203 can not ping VE101
10.5.14.101 can ping VE0 (10.5.14.192)
10.5.14.101 can not ping VE101
-----
We solved this by :
echo 1 > /proc/sys/net/ipv4/conf/vlan5/forwarding
echo 1 > /proc/sys/net/ipv4/conf/vlan5/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/vlan14/forwarding
echo 1 > /proc/sys/net/ipv4/conf/vlan14/proxy_arp
[Updated on: Thu, 04 October 2007 18:40] Report message to a moderator
|
|
|