Adding BGP sessions to a second router port

It’s also wise to add one or more hosts that will handle North-South traffic for the MidoNet deployment. After all, a single router port routing to upstream is a single point of failure and could also be a performance bottleneck.

The solution is to add a second virtual port to the router and to bind it to a different physical host. With the proper routing setup, MidoNet will balance outgoing traffic among the two ports/hosts and so will upstream routers when routing traffic towards MidoNet.

The first step is to add a second router port:

midonet> router router0 add port addresses
midonet> router router0 list port
port port0 device router0 state up plugged no mac ac:ca:ba:ab:ed:b8 addresses
port port1 device router0 state up plugged no mac ac:ca:ba:5e:0a:02 addresses

Now you can add a BGP peer that is reachable through the new port:

midonet> router router0 add bgp-peer asn 64515 address
midonet> router router0 list bgp-peer
peer peer0 asn 64513 address keep-alive 5 hold-time 5 connect-retry 10
peer peer1 asn 64514 address
peer peer2 asn 64515 address

And bind the new port to a NIC in a different physical host:

midonet> host host1 add binding port router0:port1 interface eth0
host host1 interface eth0 port router0:port1

At this point the MidoNet agent in host1 will bring up the new router port and set up bgpd to talk to the peer in

As with the first port, adding a second BGP peer on the network would enable host1 to load balance across two upstream routers and to keep functioning as a gateway even if one of its two BGP peers fails.

Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.

loading table of contents...