Im trying to figure out why RouterOS behave in such way:
I have a bridge:
Code: Select all
/interface bridge port> /interface bridge print where name =LAN
Flags: X - disabled, R - running
0 R ;;; LAN
name="LAN"
And interfaces in it:
Code: Select all
/interface bridge port print where bridge =LAN
Flags: X - disabled, I - inactive, D - dynamic, H - hw-offload
# INTERFACE BRIDGE HW PVID PRIORITY PATH-COST INTERNAL-PATH-COST HORIZON
0 I H ether2 LAN yes 1 0x80 10 10 none
1 I H ether3 LAN yes 1 0x80 10 10 none
2 H ether4 LAN yes 1 0x80 10 10 none
3 H ether1 LAN yes 1 0x80 10 10 none
And interface ether2 is not connected (not active) and is slave
So, i assign ip address to it
Code: Select all
/interface bridge port> /ip address print where interface =ether2
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.200.1/24 192.168.200.0 ether2
Now i will disable interface:
Code: Select all
/interface ethernet print where name =ether2
Flags: X - disabled, R - running, S - slave
# NAME MTU MAC-ADDRESS ARP SWITCH
0 XS ether2 1500 6C:3B:6B:27:1C:EF enabled switch1
And ip address is still working! And routing is working to this network!
Code: Select all
/ip route print where dst-address =192.168.200.0/24
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 192.168.200.0/24 192.168.200.1 LAN 0
Why RouterOS is not removing this ip address when assigned interface is disabled? What logic is behind this?