понедельник, 28 мая 2018 г.

bonding

Делалось на Ubuntu 14.04:

1. apt-get install ifenslave
2. echo 'bonding' > /etc/modules
2. nano /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
    address 192.168.1.225
    netmask 255.255.255.128
    network 192.168.1.128
    broadcast 192.168.1.255
    gateway 192.168.1.129
    dns-nameservers 192.168.1.1 192.168.1.2
    domain domain.local
    search domain.local
    slaves eth0 eth1
    bond_mode 4
    bond_xmit_hash_policy layer2+3
    bond_miimon 100
    bond_downdelay 200
    bond_updelay 200

auto eth0
iface eth0 inet manual
        bond-master bond0

auto eth1
iface eth1 inet manual
        bond-master bond0


4. shutdown -r now

На Cisco 2960:

interface Port-channel6
 description bkpserv
 switchport access vlan 108
 switchport mode access

interface GigabitEthernet1/0/14
 switchport access vlan 2
 switchport mode access
 channel-protocol lacp
 channel-group 6 mode active

interface GigabitEthernet1/0/15
 switchport access vlan 2
 switchport mode access
 channel-protocol lacp
 channel-group 6 mode active