Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
ubuntu_networking [2016/04/27 14:58]
steve
ubuntu_networking [2016/05/12 10:22]
steve
Line 95: Line 95:
  
 <​code>​ <​code>​
- dns-nameservers ​4.4.4.4 8.8.8.8+ dns-nameservers ​8.8.4.4 8.8.8.8
 </​code>​ </​code>​
  
Line 122: Line 122:
 </​code>​ </​code>​
  
-In ''/​etc/​network/​interfaces'',​ add the configuration for eth0and set it as the bonding master:+In ''/​etc/​network/​interfaces'',​ add the configuration for bond0 firstusing the same setup as you normally would for an ethernet device (dhcp, static ip, etc.). After that, include a directive for ''​bond-primary''​ with the slave devices.
  
-<​code>​ +For the sake of simplicity, ''​bond0''​ is getting an address assigned via DHCP.
-auto eth0 +
- iface eth0 inet manual +
- bond-master ​bond0 +
- bond-primary eth0 +
-</​code>​+
  
-Nextadd the second device ​in the bonding pair:+It's important that the configuration for bond0 is firstsince ''​ifup''​ and ''​ifdown''​ read them in order from first to last.
  
 <​code>​ <​code>​
-auto eth1 +auto bond0 
- iface ​eth1 inet manual +iface bond0 inet dhcp 
- bond-master bond0+     ​bond-primary eth0 eth1 
 +     ​bond-mode active-backup
 </​code>​ </​code>​
  
-Now that the ''​bond0''​ device is addedyou can configure it just like any network device.+Add the slave devicesand set them as manually configured:
  
-Here, it's using the default configuration of the first Ethernet device to get an address from the DHCP server:+<​code>​ 
 +auto eth0 
 +iface eth0 inet manual 
 +     ​bond-master bond0
  
-<​code>​ +auto eth1 
-auto bond0 +iface eth1 inet manual 
-iface bond0 inet dhcp+     ​bond-master ​bond0
 </​code>​ </​code>​