Difference between revisions of "Manually adding a new bridge"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Configuration)
(Configuration)
Line 27: Line 27:
 
$EDITOR /etc/conf.d/net
 
$EDITOR /etc/conf.d/net
 
</source>
 
</source>
 +
 
<source lang="bash">
 
<source lang="bash">
 
# [...]
 
# [...]

Revision as of 11:47, 6 February 2014

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
  • 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

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"
 
# [...]

Links