Linux Link Aggregation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (Thomas.will verschob die Seite Netzwerkkarten bündeln nach Linux Link Aggregation) |
|||
| (11 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Installation= | =Installation= | ||
| − | + | apt-get install ifenslave-2.6 | |
| − | |||
| − | |||
| − | |||
=Weitere nützliche Tools= | =Weitere nützliche Tools= | ||
sudo apt-get install net-tools ethtool bmon | sudo apt-get install net-tools ethtool bmon | ||
| − | =Integrität und Funtkionscheck | + | =Integrität und Funtkionscheck= |
root@crank:~# mii-tool | root@crank:~# mii-tool | ||
eth4: negotiated 1000baseT-FD flow-control, link ok | eth4: negotiated 1000baseT-FD flow-control, link ok | ||
eth5: negotiated 1000baseT-FD flow-control, link ok | eth5: negotiated 1000baseT-FD flow-control, link ok | ||
| + | |||
=/etc/network/interfaces= | =/etc/network/interfaces= | ||
auto bond0 | auto bond0 | ||
| Zeile 41: | Zeile 39: | ||
post-up ifup eth1 | post-up ifup eth1 | ||
post-up ifup eth2 | post-up ifup eth2 | ||
| − | + | ||
iface eth1 inet manual | iface eth1 inet manual | ||
bond-master bond0 | bond-master bond0 | ||
| Zeile 47: | Zeile 45: | ||
iface eth2 inet manual | iface eth2 inet manual | ||
bond-master bond0 | bond-master bond0 | ||
| − | + | ||
| − | |||
auto lan | auto lan | ||
iface lan inet static | iface lan inet static | ||
| Zeile 63: | Zeile 60: | ||
post-down ifdown bond0 | post-down ifdown bond0 | ||
| − | = | + | =check= |
| + | <pre> | ||
| + | xinux@doom:/proc$ cat /proc/net/bonding/bond0 | ||
| + | Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) | ||
| + | |||
| + | Bonding Mode: IEEE 802.3ad Dynamic link aggregation | ||
| + | Transmit Hash Policy: layer2 (0) | ||
| + | MII Status: up | ||
| + | MII Polling Interval (ms): 100 | ||
| + | Up Delay (ms): 0 | ||
| + | Down Delay (ms): 0 | ||
| + | |||
| + | 802.3ad info | ||
| + | LACP rate: fast | ||
| + | Min links: 0 | ||
| + | Aggregator selection policy (ad_select): stable | ||
| + | Active Aggregator Info: | ||
| + | Aggregator ID: 1 | ||
| + | Number of ports: 2 | ||
| + | Actor Key: 17 | ||
| + | Partner Key: 33 | ||
| + | Partner Mac Address: 00:23:eb:b1:07:e6 | ||
| + | |||
| + | Slave Interface: eth2 | ||
| + | MII Status: up | ||
| + | Speed: 1000 Mbps | ||
| + | Duplex: full | ||
| + | Link Failure Count: 0 | ||
| + | Permanent HW addr: 00:15:17:78:68:17 | ||
| + | Aggregator ID: 1 | ||
| + | Slave queue ID: 0 | ||
| − | + | Slave Interface: eth1 | |
| − | + | MII Status: up | |
| − | + | Speed: 1000 Mbps | |
| + | Duplex: full | ||
| + | Link Failure Count: 0 | ||
| + | Permanent HW addr: 00:15:17:78:68:16 | ||
| + | Aggregator ID: 1 | ||
| + | Slave queue ID: 0 | ||
| + | </pre> | ||
| − | + | =bonding-problem= | |
| − | + | *[[nfs-bonding-problem]] | |
| − | * | + | *[[libvirt-bin-problem]] |
| − | * | ||
| − | |||
| + | =Infos= | ||
| + | *[[Bonding]] | ||
| − | * | + | =Quellen= |
| − | * | + | *http://wiki.ubuntuusers.de/Netzwerkkarten_b%C3%BCndeln |
| + | *http://www.howtogeek.com/52068/how-to-setup-network-link-aggregation-802-3ad-on-ubuntu/ | ||
Aktuelle Version vom 31. März 2023, 07:52 Uhr
Installation
apt-get install ifenslave-2.6
Weitere nützliche Tools
sudo apt-get install net-tools ethtool bmon
Integrität und Funtkionscheck
root@crank:~# mii-tool eth4: negotiated 1000baseT-FD flow-control, link ok eth5: negotiated 1000baseT-FD flow-control, link ok
/etc/network/interfaces
auto bond0
iface bond0 inet static
address 172.27.233.100
netmask 255.255.255.0
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-slaves none
auto eth4
iface eth4 inet manual
bond-master bond0
auto eth5
iface eth5 inet manual
bond-master bond0
Link aggregation
- LACP muss am Switch aktiviert sein!
- -> Hier sehr gut beschrieben: http://www.howtogeek.com/52068/how-to-setup-network-link-aggregation-802-3ad-on-ubuntu/
Bonding mit Lanbridge
iface bond0 inet manual
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-slaves none
post-up ifup eth1
post-up ifup eth2
iface eth1 inet manual
bond-master bond0
iface eth2 inet manual
bond-master bond0
auto lan
iface lan inet static
address 192.168.241.180
netmask 255.255.248.0
gateway 192.168.240.100
dns-nameservers 192.168.241.21
dns-domain xinux
bridge_ports bond0
bridge_stp on
bridge_fd 0
bridge_maxwait 0
pre-up ifup bond0
post-down ifdown bond0
check
xinux@doom:/proc$ cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer2 (0) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: fast Min links: 0 Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 17 Partner Key: 33 Partner Mac Address: 00:23:eb:b1:07:e6 Slave Interface: eth2 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 00:15:17:78:68:17 Aggregator ID: 1 Slave queue ID: 0 Slave Interface: eth1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 00:15:17:78:68:16 Aggregator ID: 1 Slave queue ID: 0