Ask Your Question

single bond multiple provider networks

asked 2018-12-03 04:30:11 -0500

robellison gravatar image

i have a design where i need resilience on the network but only have 2 network cards both eth1 and eth2 are bonded and then bridged with the result being: br0 - management - with IP br0.2 - vxlan tunnel interface br0.100 - provider network on vlan 100 br0.101 - provider network on vlan 101 br0.102 - provider network on vlan 102

how do i go about using the br0.100 - 102 networks? i have bridge mappings in ml2.conf but i dont seem to be able to use them. one works as a 'flat' network, but then i cant use the rest

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2018-12-03 04:53:47 -0500

Apply the instructions for openvswitch or linuxbridge, but when you come to the creation of initial networks, create several VLAN provider networks instead of a single flat provider network.

edit flag offensive delete link more


in the example above though, which would be the base interface for the vlan provider network? i can see how that would work if i just had one br0 and no pre-existing sub-interfaces, but br0 is for management

robellison gravatar imagerobellison ( 2018-12-03 05:26:01 -0500 )edit

I am not sure, but I would try br0. If I understand it right, the Linuxbridge or Openvswitch agent should create the br0.100..102 interfaces when you create VLAN-based provider networks.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-03 06:29:23 -0500 )edit

that solution doesn't work it seems

robellison gravatar imagerobellison ( 2018-12-04 04:12:47 -0500 )edit

answered 2018-12-12 10:58:57 -0500

rob gravatar image

here is what i did to (hopefully) resolve this issue:

  • hosts: compute, network become: true vars: virtual_bridge: "vBR"

    • name: add veth link shell: sudo ip link add dev vBRs type veth peer name vBR when:
      • virtual_bridge not in ansible_interfaces
    • name: add veth link to existing bridge shell: sudo brctl addif br0 vBRs ignore_errors: yes

    • name: ensure links are up shell: sudo ip link set dev vBRs up && sudo ip link set dev vBR up

then set: neutron_external_interface: "vBR" neutron_bridge_name: "br-ex"

once that has deployed you should be able to create as many provider networks as you need with different VLAN ids

openstack network create --external --provider-physical-network physnet1 --provider-network-type vlan --provider-segment 1000 --share external

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-12-03 04:30:11 -0500

Seen: 395 times

Last updated: Dec 03 '18