Bonding network cards: Difference between revisions
m →What you need to know: Added wicked as unsupported |
m Added wickedd mode and changed an incorrect word |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Under Linux, the Kernel allows you to bond 2 or more network cards. Bonding network cards allows you to double the speed in both directions and allows you to balance the network | Under Linux, the Kernel allows you to bond 2 or more network cards. Bonding network cards allows you to double the speed in both directions and allows you to balance the network load between them. It can also make connection redundancy in case a network link fails. In this article, you will be shown how to bond the cards using the YaST Network Settings utility. | ||
== What you need to know == | == What you need to know == | ||
* You will need more than one network card. | * You will need more than one network card. | ||
* This will only work under the traditional ifup method of configuration and doesn't work under NetworkManager or wicked network management. | * This will only work under the traditional ifup or wickedd method of configuration and doesn't work under NetworkManager or wicked network management. | ||
* You will need to know the interface names of the cards. | * You will need to know the interface names of the cards. | ||
* You should decide what kind of load-balancing you want to use. You can view available modes [[#Choosing_a_bonding_mode|here]]. | * You should decide what kind of load-balancing you want to use. You can view available modes [[#Choosing_a_bonding_mode|here]]. | ||
| Line 10: | Line 10: | ||
== Bonding via YaST == | == Bonding via YaST == | ||
# Goto Launch menu > | # Goto Launch menu > System > YaST | ||
# Select 'Network Settings' under the 'Network devices' heading. This will display the network interfaces on your system and how they are configured. | # Select 'Network Settings' under the 'Network devices' heading. This will display the network interfaces on your system and how they are configured. | ||
# Select the 'Global Options' tab. | # Select the 'Global Options' tab. | ||
| Line 18: | Line 18: | ||
#* Click on a card and press the 'Edit' button. This will open on the 'Address' tab. | #* Click on a card and press the 'Edit' button. This will open on the 'Address' tab. | ||
#* You will need to change the 'Dynamic Address' or 'Statically assigned IP Address' radio button to 'No IP Address (for Bonding Devices)'. Make sure the 'Use iBFT values' tick box is not ticked. | #* You will need to change the 'Dynamic Address' or 'Statically assigned IP Address' radio button to 'No IP Address (for Bonding Devices)'. Make sure the 'Use iBFT values' tick box is not ticked. | ||
#* Click OK. This will return you to the 'Overview' tab. Next to the network card you just | #* Click OK. This will return you to the 'Overview' tab. Next to the network card you just edited, under the 'IP Address' list heading, it should now be listed as 'NONE'. | ||
#* Repeat these steps for any other cards you will be including in the bond. | #* Repeat these steps for any other cards you will be including in the bond. | ||
# Double check all cards you will be including all say 'NONE' in the 'IP Address' field. | # Double check all cards you will be including all say 'NONE' in the 'IP Address' field. | ||
| Line 30: | Line 30: | ||
#*At this point you can check that you have network connectivity by opening a web browser and trying to open a web page. | #*At this point you can check that you have network connectivity by opening a web browser and trying to open a web page. | ||
# Open Konsole from the Launch menu. | # Open Konsole from the Launch menu. | ||
# Now type <code>ifconfig</code>. This will output your network configuration. This is an example: | # Now type <code>sudo ifconfig</code>. This will output your network configuration. This is an example: | ||
bond0 Link encap:Ethernet HWaddr <MAC Address> | bond0 Link encap:Ethernet HWaddr <MAC Address> | ||