[sisyphus] Interface bonding и default route через него.

Yuri Khachaturyan yukh на yukh.ru
Вт Ноя 6 15:31:59 MSK 2018


Добрый день!

Имеется 3 сетевых интерфейса:

eth2 - 172.31.255.222/24 для управления в случае если bond отвалится

eth0 + eth1 объединены в bond0:

[root на home ifaces]# cat bond0/options
TYPE=bond
ONBOOT=yes
BOOTPROTO=static
HOST="eth0 eth1"
BONDMODE=4
BONDOPTIONS="miimon=100"

[root на home ifaces]# cat eth0/options
TYPE=eth
ONBOOT=yes
BOOTPROTO=static
STARTMODE=off
USERCTL=no
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no


[root на home ifaces]# cat eth1/options
TYPE=eth
ONBOOT=yes
BOOTPROTO=static
STARTMODE=off
USERCTL=no
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no


С обратной стороны CIsco Catalyst:

interface Port-channel1
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 275
 switchport mode trunk

interface GigabitEthernet0/14
 description trunk home.yukh.ru
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 275
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet0/15
 description trunk home.yukh.ru
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 275
 switchport mode trunk
 channel-group 1 mode active

sw.home.yukh.ru#sh etherchannel summary
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator

        M - not in use, minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port


Number of channel-groups in use: 1
Number of aggregators:           1

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         LACP      Gi0/14(P)   Gi0/15(P)



Интерфейсы подняты, все вроде бы нормально, но есть одно но:

# ip ro
default via 172.31.255.253 dev eth2 - все работает

#ip ro
default via 172.31.255.253 dev bond0 - внутреннюю сеть вижу, но дальше
роутера ничего не уходит:

[root на home ifaces]# ping 172.31.255.253
PING 172.31.255.253 (172.31.255.253) 56(84) bytes of data.
64 bytes from 172.31.255.253: icmp_seq=1 ttl=255 time=1.24 ms
64 bytes from 172.31.255.253: icmp_seq=2 ttl=255 time=0.678 ms
^C
--- 172.31.255.253 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 0.678/0.961/1.244/0.283 ms


[root на home ifaces]# ping 92.39.129.42
PING 92.39.129.42 (92.39.129.42) 56(84) bytes of data.


Подробная информация о списке рассылки Sisyphus