Erinevus lehekülje "LACP kasutamine" redaktsioonide vahel
Allikas: Kuutõrvaja
(→FreeBSD) |
(→OpenBSD) |
||
89. rida: | 89. rida: | ||
===OpenBSD=== | ===OpenBSD=== | ||
− | + | LACP seadme moodustamiseks sobib öelda nt | |
+ | |||
+ | # ifconfig trunk0 trunkport re1 trunkport re2 trunkproto lacp | ||
+ | |||
+ | Seadme omaduste esitamiseks | ||
+ | |||
+ | # ifconfig trunk0 | ||
+ | trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 | ||
+ | lladdr 00:0c:42:07:1a:45 | ||
+ | priority: 0 | ||
+ | trunk: trunkproto lacp | ||
+ | trunk id: [(8000,00:0c:42:07:1a:45,40E4,0000,0000), | ||
+ | (8000,a8:b1:d4:95:a3:85,0003,0000,0000)] | ||
+ | trunkport re2 active,collecting,distributing | ||
+ | trunkport re1 active,collecting,distributing | ||
+ | groups: trunk | ||
+ | media: Ethernet autoselect | ||
+ | status: active | ||
+ | inet6 fe80::20c:42ff:fe07:1a45%trunk0 prefixlen 64 scopeid 0x1c | ||
+ | inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 | ||
+ | |||
+ | kus | ||
+ | |||
+ | * trunk id järel on esitatud komponentide mac aadressid | ||
===FreeBSD=== | ===FreeBSD=== |
Redaktsioon: 1. august 2010, kell 21:24
Sisukord
Sissejuhatus
Ethernet interface bonding tehnika võimaldab teatud tingimustel kasutada mitut arvutisse paigaldatud füüsilist võrguseadet ühe loogilise seadmena.
Tööpõhimõte
TODO
SLM2008 lüliti
TODO
Debian GNU/Linux
Tarkvara paigaldamine
Vajalik tarkvara sisaldub operatsioonisüsteemi tuumas, juhtprogrammi ifenslave paigaldamiseks sobib öelda
# apt-get install ifenslave-2.6
Seadistamine
Bonding seadme nimeks on tavaliselt bond0 ning nt failover bonding seade seadistatakse /etc/network/interfaces sektsiooniga
auto bond0 iface bond0 inet static address 10.0.3.87 netmask 255.255.255.0 slaves eth1 eth2 bond_mode active-backup bond_miimon 100
Vastav seadistamine käsurealt võiks toimuda nt selliselt
# modprobe bonding mode=802.3ad lacp_rate=1 miimon=100 xmit_hash_policy=layer3+4 # ifconfig bond0 10.0.3.87 netmask 255.255.0.0 # ifenslave bond0 eth1 eth2
Bonding seadme eemaldamiseks sobib öelda
# ifenslave -d bond0 eth1 eth2 # rmmod bonding
Bonding seadme omadusi saab vaadata
# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.2.5 (March 21, 2008) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer3+4 (1) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: fast Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 17 Partner Key: 3 Partner Mac Address: a8:b1:d4:95:a3:85 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:0e:0c:ba:4b:3e Aggregator ID: 1 Slave Interface: eth2 MII Status: up Link Failure Count: 4 Permanent HW addr: 00:1b:21:1d:f6:06 Aggregator ID: 1
kus
- Bonding Mode: IEEE 802.3ad Dynamic link aggregation - kasutusel olev bonding režiim
Kasutamine
TODO
OpenBSD
LACP seadme moodustamiseks sobib öelda nt
# ifconfig trunk0 trunkport re1 trunkport re2 trunkproto lacp
Seadme omaduste esitamiseks
# ifconfig trunk0 trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:0c:42:07:1a:45 priority: 0 trunk: trunkproto lacp trunk id: [(8000,00:0c:42:07:1a:45,40E4,0000,0000), (8000,a8:b1:d4:95:a3:85,0003,0000,0000)] trunkport re2 active,collecting,distributing trunkport re1 active,collecting,distributing groups: trunk media: Ethernet autoselect status: active inet6 fe80::20c:42ff:fe07:1a45%trunk0 prefixlen 64 scopeid 0x1c inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
kus
- trunk id järel on esitatud komponentide mac aadressid
FreeBSD
TODO
- Ametlik FreeBSD manual http://www.freebsd.org/doc/handbook/network-aggregation.html