Community discussions

MikroTik App
 
leocarvalho001
just joined
Topic Author
Posts: 4
Joined: Thu Jan 21, 2016 2:19 pm

Lab: Bonding interface loses packets when slave is disabled

Thu Nov 25, 2021 9:59 pm

Hello team!

I've created a lab to test bonding and I'm finding a strange behaviour. When I disable one the slave interfaces, ping starts to lose packets.

Can you advise what am I doing wrong?

Thanks in advance!


Bonding = bond0 (slaves = ether1,ether3) Bonding = bond0 (slaves = ether1,ether3)
ip address = 10.1.1.1/30 ip address = 10.1.1.2/30

Image


Some more info
-------------------------

[admin@routeros-1] > interface bonding print
Flags: X - disabled, R - running
0 R name="bond0" mtu=1500 mac-address=50:00:00:02:00:00 arp=enabled
arp-timeout=auto slaves=ether1,ether3 mode=balance-rr primary=none
link-monitoring=mii arp-interval=100ms arp-ip-targets=""
mii-interval=100ms down-delay=0ms up-delay=0ms lacp-rate=30secs
transmit-hash-policy=layer-2 min-links=0

[admin@routeros-1] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
0 RS ether1 ether 1500
1 R ether2 ether 1500
2 RS ether3 ether 1500
3 R bond0 bond 1500 1500

[admin@routeros-1] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 10.1.1.1/30 10.1.1.0 bond0

[admin@routeros-1] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.1.1.0/30 10.1.1.1 bond0 0

[admin@routeros-1] > export
# nov/25/2021 19:43:59 by RouterOS 6.49.1
# software id =
#
#
#
/interface ethernet
set [ find default-name=ether1 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-full speed=1Gbps
set [ find default-name=ether2 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-full speed=1Gbps
set [ find default-name=ether3 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-full speed=1Gbps
/interface bonding
add name=bond0 slaves=ether1,ether3
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=10.1.1.1/30 interface=bond0 network=10.1.1.0
/system identity
set name=routeros-1

---------------------------------

[admin@routeros-2] > interface bonding print
Flags: X - disabled, R - running
0 R name="bond0" mtu=1500 mac-address=50:00:00:03:00:00 arp=enabled
arp-timeout=auto slaves=ether1,ether3 mode=balance-rr primary=none
link-monitoring=mii arp-interval=100ms arp-ip-targets=""
mii-interval=100ms down-delay=0ms up-delay=0ms lacp-rate=30secs
transmit-hash-policy=layer-2 min-links=0


[admin@routeros-2] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
0 RS ether1 ether 1500
1 R ether2 ether 1500
2 RS ether3 ether 1500
3 R ether4 ether 1500
4 R bond0 bond 1500 1500


[admin@routeros-2] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 10.1.1.2/30 10.1.1.0 bond0


[admin@routeros-2] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.1.1.0/30 10.1.1.2 bond0 0


[admin@routeros-2] > export
# nov/25/2021 19:43:33 by RouterOS 6.49.1
# software id =
#
#
#
/interface ethernet
set [ find default-name=ether1 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-full speed=1Gbps
set [ find default-name=ether2 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-full speed=1Gbps
set [ find default-name=ether3 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-full speed=1Gbps
set [ find default-name=ether4 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-full speed=1Gbps
/interface bonding
add name=bond0 slaves=ether1,ether3
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=10.1.1.2/30 interface=bond0 network=10.1.1.0
/system identity
set name=routeros-2

Who is online

Users browsing this forum: Amazon [Bot], amt, Google [Bot], JesusUve, Kipk, kkeyser and 90 guests