Hi there,
So my topology is:
WAN → RB5009 -(802.3ad bond)> L009
In which I create VLANs with their subnet and DHCP Server on the RB5009 Level. I want to forward these VLANs to the L009, so I send tagged packets via a 802.3ad Bond to the L009.
Issue: If I restart I port on the L009, that untags VLAN10, I do get a IP-Lease from the DHCP server.
Problem 1: The host is still not reachable via this IP.
Problem 2: The release is not renewed
Problem 3. I should also have internet access on this VLAN10, but I don’t..
Something I noticed when creating my VLAN99 for management, was that I do have internet, and renewable IP-leases. The difference in configuration is that I have created an VLAN interface for this VLAN, as I want the device to also get its own IP-address.
Should I create/replicate VLAN interfaces on the L009?
Below are the configurations:
L009
# 2024-10-02 15:48:10 by RouterOS 7.15.2
# software id = xxx
#
# model = L009UiGS-2HaxD
# serial number = xxx
/interface bridge
add admin-mac=D4:01:C3:39:FD:24 auto-mac=no name=Bridge vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name=ether1-RB5009
set [ find default-name=ether2 ] name=ether2-RB5009
set [ find default-name=sfp1 ] disabled=yes
/interface wifi
set [ find default-name=wifi1 ] channel.band=2ghz-ax .skip-dfs-channels=\
10min-cac .width=20/40mhz configuration.mode=ap .ssid=MikroTik-39FD2C \
security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes
/interface vlan
add interface=Bridge name=VLAN99-Management vlan-id=99
/interface bonding
add mode=802.3ad name=Bond-RB5009 slaves=ether1-RB5009,ether2-RB5009 \
transmit-hash-policy=layer-3-and-4
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=dhcp_pool1 ranges=10.10.10.1-10.10.10.9,10.10.10.11-10.10.10.254
/port
set 0 name=serial0
/disk settings
set auto-media-interface=Bridge auto-media-sharing=yes auto-smb-sharing=yes
/interface bridge port
add bridge=Bridge interface=ether3 pvid=10
add bridge=Bridge interface=ether4 pvid=10
add bridge=Bridge interface=ether5 pvid=10
add bridge=Bridge frame-types=admit-only-untagged-and-priority-tagged \
interface=ether8 pvid=99
add bridge=Bridge frame-types=admit-only-vlan-tagged interface=Bond-RB5009
add bridge=Bridge frame-types=admit-only-untagged-and-priority-tagged \
interface=ether6 pvid=10
/ip neighbor discovery-settings
set discover-interface-list=all
/interface bridge vlan
add bridge=Bridge tagged=Bond-RB5009 untagged=ether3,ether4,ether5,ether6 \
vlan-ids=10
add bridge=Bridge tagged=Bond-RB5009,Bridge untagged=ether8 vlan-ids=99
/ip address
add address=10.0.99.2/24 interface=VLAN99-Management network=10.0.99.0
/ip dhcp-client
# DHCP client can not run on slave or passthrough interface!
add comment=defconf interface=ether1-RB5009
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=forward in-interface=Bridge
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" \
dst-port=33434-33534 protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=input comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
add action=accept chain=forward comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=forward comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
/system note
set show-at-login=no
/system routerboard settings
set enter-setup-on=delete-key
And the RB5009
# 2024-10-03 13:03:53 by RouterOS 7.15.2
# software id = xxx
#
# model = RB5009UPr+S+
# serial number = xxx
/interface bridge
add mtu=1500 name=Bridge port-cost-mode=short vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name=ether1-WAN
set [ find default-name=ether2 ] disabled=yes name=ether2-WAN
set [ find default-name=ether3 ] name=ether3-L009
set [ find default-name=ether4 ] name=ether4-L009 poe-out=off
set [ find default-name=ether5 ] name=ether5-hAPX2
set [ find default-name=ether6 ] name="ether6-[TRNG]ESP32PoE"
set [ find default-name=ether7 ] name=ether7-test
set [ find default-name=ether8 ] name=ether8-ManagementPort
set [ find default-name=sfp-sfpplus1 ] disabled=yes l2mtu=1500 name=sfp1
/interface vlan
add interface=Bridge name=VLAN10-General vlan-id=10
add interface=Bridge name=VLAN20-TRNG vlan-id=20
add interface=Bridge name=VLAN99-Management vlan-id=99
add interface=Bridge name=VLAN100-Guest vlan-id=100
/interface bonding
add mode=802.3ad name=Bond-L009 slaves=ether3-L009,ether4-L009 \
transmit-hash-policy=layer-3-and-4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool-VLAN10-General ranges=10.0.0.2-10.0.0.254
add name=dhcp_pool-VLAN99-Management ranges=10.0.99.2-10.0.99.254
add name=dhcp_pool-VLAN20-TRNG ranges=10.0.1.2-10.0.1.254
add name=dhcp_pool-VLAN100-Guest ranges=10.0.2.2-10.0.2.254
/ip dhcp-server
add address-pool=dhcp_pool-VLAN10-General interface=VLAN10-General \
lease-time=10m name=dhcp_VLAN10-General
add address-pool=dhcp_pool-VLAN99-Management interface=VLAN99-Management \
lease-time=10m name=dhco_VLAN99-Management
add address-pool=dhcp_pool-VLAN20-TRNG interface=VLAN20-TRNG lease-time=10m \
name=dhcp_VLAN20-TRNG
add address-pool=dhcp_pool-VLAN100-Guest interface=VLAN100-Guest lease-time=\
10m name=dhcp-VLAN100-Guest
/interface bridge port
add bridge=Bridge frame-types=admit-only-untagged-and-priority-tagged \
interface=ether8-ManagementPort internal-path-cost=10 path-cost=10 pvid=\
99
add bridge=Bridge frame-types=admit-only-vlan-tagged interface=Bond-L009
add bridge=Bridge frame-types=admit-only-vlan-tagged interface=ether5-hAPX2
add bridge=Bridge frame-types=admit-only-untagged-and-priority-tagged \
interface="ether6-[TRNG]ESP32PoE" pvid=20
add bridge=Bridge frame-types=admit-only-untagged-and-priority-tagged \
interface=ether7-test pvid=10
/ip firewall connection tracking
set enabled=yes udp-timeout=10s
/ip neighbor discovery-settings
set discover-interface-list=all
/interface bridge vlan
add bridge=Bridge comment=Main tagged=Bond-L009,Bridge,ether5-hAPX2 untagged=\
ether7-test vlan-ids=10
add bridge=Bridge comment="Project - TRNG" tagged=\
Bond-L009,Bridge,ether5-hAPX2 untagged="ether6-[TRNG]ESP32PoE" vlan-ids=\
20
add bridge=Bridge comment=Guest tagged=Bond-L009,Bridge vlan-ids=100
add bridge=Bridge comment=Management tagged=Bridge,Bond-L009,ether5-hAPX2 \
untagged=ether8-ManagementPort vlan-ids=99
/interface detect-internet
set detect-interface-list=all
/interface wireguard peers
add allowed-address=0.0.0.0/0 client-address=10.71.87.119/32 client-dns=\
10.64.0.1 client-endpoint=185.254.75.3 endpoint-address=185.254.75.3 \
endpoint-port=51820 interface=*C name=peer1 private-key=\
"####" public-key=\
"####"
/ip address
add address=10.0.0.1/24 interface=VLAN10-General network=10.0.0.0
add address=10.0.1.1/24 interface=VLAN20-TRNG network=10.0.1.0
add address=10.0.2.1/24 interface=VLAN100-Guest network=10.0.2.0
add address=10.0.99.1/24 interface=VLAN99-Management network=10.0.99.0
/ip dhcp-client
add interface=ether1-WAN
/ip dhcp-server network
add address=10.0.0.0/24 gateway=10.0.0.1
add address=10.0.1.0/24 gateway=10.0.1.1
add address=10.0.2.0/24 gateway=10.0.2.1
add address=10.0.99.0/24 gateway=10.0.99.1
/ip dns
set servers=8.8.8.8,4.4.4.4
/ip firewall filter
add action=accept chain=forward connection-type="" in-interface=Bridge \
out-interface=ether1-WAN
add action=accept chain=forward
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1-WAN
/system clock
set time-zone-name=Europe/Berlin
/system note
set show-at-login=no
/system upgrade mirror
set enabled=yes