Difference between revisions of "Manually adding a new bridge"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Configuration)
(Configuration)
Line 12: Line 12:
  
 
= Configuration =
 
= 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 (<code>bond0</code>). In the following example VLAN <code>141</code> is added:
 
Login to the first VM node and manually add the new VLAN to the existing bonding interface (<code>bond0</code>). In the following example VLAN <code>141</code> is added:
 
<source lang="bash">
 
<source lang="bash">
Line 46: Line 47:
 
# [...]
 
# [...]
 
</source>
 
</source>
 +
 +
== Create a new bridging device ==
  
 
= Links =
 
= Links =

Revision as of 12:54, 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

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

Create a new bridging device

Links