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
linux:networking [2009/05/25 00:35]
127.0.0.1 external edit
linux:networking [2014/09/24 16:29] (current)
mrizvic [Ethernet Bonding Types]
Line 1: Line 1:
 ====== Linux networking ====== ====== Linux networking ======
 +===== Usefull links =====
  
-=== Usefull links === 
   * [[http://linux-net.osdl.org/index.php/Main_Page|LinuxNet]] - a good place where to begin   * [[http://linux-net.osdl.org/index.php/Main_Page|LinuxNet]] - a good place where to begin
   * [[http://www.lartc.org/|Linux Advanced Routing & Traffic Control]]   * [[http://www.lartc.org/|Linux Advanced Routing & Traffic Control]]
Line 28: Line 28:
  
 ===== TCP Tunning (linux kernel) ===== ===== TCP Tunning (linux kernel) =====
 +Change initial tcp window:
 +
 +  ip route | while read p; do ip route change $p initcwnd 20 initrwnd 20; done 
 +
 +
 {{page>linux:sysctl#2.6 net/ipv4 options}} {{page>linux:sysctl#2.6 net/ipv4 options}}
  
Line 105: Line 110:
 ^mode=0 (balance-rr)|Round-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance. | ^mode=0 (balance-rr)|Round-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance. |
 ^mode=1 (active-backup)|One slave interface is active at any time. If one interface fails, another interface takes over the MAC address and becomes the active interface. Provides fault tolerance only. Doesn’t require special switch support| ^mode=1 (active-backup)|One slave interface is active at any time. If one interface fails, another interface takes over the MAC address and becomes the active interface. Provides fault tolerance only. Doesn’t require special switch support|
-^mode=2 (balance-xor)|Tranmissions are balanced across the slave interfaces based on ((source MAC) XOR (dest MAC)) modula slave count. The same slave is selected for each destination MAC. Provides load balancing and fault tolerance. |+^mode=2 (balance-xor)|Tranmissions are balanced across the slave interfaces based on ((source MAC) XOR (dest MAC)) modula slave count. The same slave is selected for each destination MAC. Provides load balancing and fault tolerance. Slave selection for outgoing traffic is done according to the transmit hash policy, which may be changed from the default simple XOR policy via the xmit_hash_policy option. |
 ^mode=3 (broadcast)|Transmits everything on all slave interfaces. Provides fault tolerance. | ^mode=3 (broadcast)|Transmits everything on all slave interfaces. Provides fault tolerance. |
 ^mode=4 (802.3ad)|This is classic IEEE 802.3ad Dynamic link aggregation. This requires 802.3ad support in the switch and driver support for retrieving the speed and duplex of each slave. | ^mode=4 (802.3ad)|This is classic IEEE 802.3ad Dynamic link aggregation. This requires 802.3ad support in the switch and driver support for retrieving the speed and duplex of each slave. |
Line 169: Line 174:
  
 interface FastEthernet 0/4 interface FastEthernet 0/4
 +  !you might need this options
 +  !no switchport
 +  !no ip address
   channel-group 1 mode on   channel-group 1 mode on
 ! !
  
 interface FastEthernet 0/5 interface FastEthernet 0/5
 +  !you might need this options
 +  !no switchport
 +  !no ip address
   channel-group 1 mode on   channel-group 1 mode on
 +  !channel-group 1 mode active
 ! !
 </code> </code>
linux/networking.1243204502.txt.gz · Last modified: 2009/12/15 17:18 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready