wiki:VmServerRouting

General Info

There are 2 VM servers: peter and egon

Each machine is connected to managment(1) and servers(5) vlans.

The host OS runs Ubuntu Linux (currently 8.04 LTS)

Networking Configuration

Networking configuration is located in /etc/network/

"interfaces" file:

# The managment vlan interface
auto eth0
iface eth0 inet static
  address 130.129.1.6
  netmask 255.255.254.0

# The servers vlan interface
auto eth0.5
iface eth0.5 inet static
  address 130.129.5.6
  netmask 255.255.255.0
  gateway 130.129.5.1
  up /etc/network/route-policy

iface eth0.5 inet6 static
  address 2001:df8:0:5::6
  netmask 64
  gateway 2001:df8:0:5::2

There is an additional shell script called the route-policy. This is required to properly route packets to the correct vlan. We discovered that by default if a packet from managment vlan sent to servers vlan would be returned on the managment vlan instead of through the servers vlan gateway. This caused odd problems for hosts on the managment vlan trying to reach public servers vlan IP.

Here is the Linux (ip route tools) version of this policy file.

#!/bin/sh
#
# Setup a route policy for ietf73
# Author: Ben Kochie <ben@nerp.net>

ip route add 130.129.0.0/23 dev eth0 src 130.129.1.6 table 1
ip route add 130.129.5.0/24 dev eth0.5 src 130.129.5.6 table 2

ip route add default via 130.129.0.1 table 1
ip route add default via 130.129.5.1 table 2

ip route add default via 130.129.5.1

ip rule add from 130.129.1.6 table 1
ip rule add from 130.129.5.6 table 2

ip rule del pref 32767

VMWare Server Configuration

Each machine is installed with VMWare server. vmware-config.pl was used to setup eth0 and eth0.5 as bridged interfaces so VMs can access both networks.

Future plans: DRBD install to provide active backup of the VM data between the two servers.

Last modified 9 years ago Last modified on 21 Nov 2008, 19:11:58