After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 256 of 317

In the Datacenter 246 Bonding network interfaces for redundancy Running multiple services across multiple machines and implementing appropriate HA methods ensures a high degree of tolerance to failure within our environment, but if it's the physical network that fails and not the service, outages will occur if traffic cannot flow to and from that service. Adding in NIC bonding (also known as teaming or link aggregation) can help alleviate these issues by ensuring traffic flows through diverse routes and switches as appropriate. Getting ready NIC bonding requires co-ordination between system administrators and the network administrators, who are responsible for the switches. There are various methods available for NIC bonding. The method presented here is the active-passive mode, which describes that traffic will normally flow through a single switch, leaving the other teamed NIC to take no traffic until it is required. How to do it... Setting up NIC bonding in Ubuntu 12.04 requires an extra package installation to allow for bonding. 1. We install this in the usual manner, as follows: sudo apt-get update sudo apt-get -y install ifenslave 2. With this installed, we simply configure networking as normal in Ubuntu but add in the required elements for bonding. To do this, we edit the /etc/network/ interfaces file with the following contents (for active-passive mode bonding)—here we're bonding eth1 and eth2 to give us bond0: auto eth1 iface eth1 inet manual bond-master bond0 bond-primary eth1 eth2 auto eth2 iface eth2 inet manual bond-master bond0 bond-primary eth1 eth2 auto bond0 iface bond0 inet static address 172.16.0.101 www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook