Difference between revisions of "Manually adding a new bridge"
From stoney cloud
[unchecked revision] | [unchecked revision] |
(→Configuration) |
(→Prerequisites) |
||
Line 7: | Line 7: | ||
* IP prefix, such as <code>192.0.2.0/24</code> | * IP prefix, such as <code>192.0.2.0/24</code> | ||
* Default gateway address (if any), such as <code>192.0.2.1</code> | * Default gateway address (if any), such as <code>192.0.2.1</code> | ||
+ | * IP address for the DHCP server on the VM node, such as <code>192.0.2.13</code> | ||
* Broadcast address, such as <code>192.0.2.255</code> | * Broadcast address, such as <code>192.0.2.255</code> | ||
Revision as of 11:57, 6 February 2014
Contents
Overview
The following page describes the steps to manually add a new bridge (vmbrX
) to an existing stoney cloud installation.
Prerequisites
To be able to add and configure a new bridge, you need to have the following informations present:
- VLAN ID, such as
141
- IP prefix, such as
192.0.2.0/24
- Default gateway address (if any), such as
192.0.2.1
- IP address for the DHCP server on the VM node, such as
192.0.2.13
- Broadcast address, such as
192.0.2.255
Make sure, that you have configured your additional VLAN on all the involved switches and routers beforehand.
Configuration
Add the new VLAN on top of the bonding interface
Login to the first VM node and manually add the new VLAN to the existing bonding interface (bond0
). In the following example VLAN 141
is added:
ip link add link bond0 name vlan141 type vlan id 141 ip link set vlan141 up ip link show vlan141
71: vlan141@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
In order to bring the newly configured VLAN up after a system reboot, the network configuration needs to be extended. Edit /etc/conf.d/net
and add the following entry:
$EDITOR /etc/conf.d/net
# [...] #----------------------------------------------------------------------------- # VLAN (802.1q support) vlans_bond0="130 120 110 140 141" # pub VLAN vlan140_name="vlan140" config_vlan140="null" # pub2 VLAN vlan141_name="vlan141" config_vlan141="null" # [...]