Difference between revisions of "Agile testbed"
From PDP/Grid Wiki
Jump to navigationJump to searchLine 234: | Line 234: | ||
== Network == | == Network == | ||
+ | |||
+ | The testbed machines are connected to three VLANs: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 271: | Line 273: | ||
| separate management network for IPMI and Serial-Over-Lan | | separate management network for IPMI and Serial-Over-Lan | ||
|} | |} | ||
+ | |||
+ | The untagged VLAN is for internal use by the physical machines. The VMs are connected to bridge devices according to their purpose, and groups of VMs are isolated by using nested VLANs (Q-in-Q). | ||
+ | This is an example configuration of /etc/network/interfaces: | ||
+ | |||
+ | # The primary network interface | ||
+ | auto eth1 | ||
+ | iface eth1 inet manual | ||
+ | |||
+ | auto br0 | ||
+ | iface br0 inet dhcp | ||
+ | bridge_ports eth1 | ||
+ | |||
+ | auto br0.2 | ||
+ | iface br0.2 inet manual | ||
+ | vlan_raw_device br0 | ||
+ | |||
+ | auto br2 | ||
+ | iface br2 inet manual | ||
+ | bridge_ports br0.2 | ||
+ | |||
+ | auto br2.100 | ||
+ | iface br2.100 inet manual | ||
+ | vlan_raw_device br2 | ||
+ | |||
+ | auto br2_100 | ||
+ | iface br2_100 inet manual | ||
+ | bridge_ports br2.100 | ||
+ | |||
+ | In this example VLAN 2 is configured on the first bridge, br0, and this interface is used in a second bridge, br2; the nested VLAN 2.100 is configured on this brigde, and finally a bridge 2_100 is made. So VMs that are added to this brigde will only receive traffic coming from VLAN 100 nested inside VLAN 2. | ||
+ | |||
=== NAT === | === NAT === |