I have a well loved RB2011UiAS-2HnD that is starting to flake out. It will stop routing select packets, when it feels like it. Really strange.
I am replacing it with a L009UiGS-2HaxD and attempting to move over the configuration and do some cleanup.
I can’t get vlans working on the L009UiGS-2HaxD. I am starting off with getting vlan2 working. A laptop plugged into ether7 can not get a DHCP address, or ping 192.168.2.1 the gateway if I assign it a static address. I have not teste vlan3 and vlan4 yet, but they will be internal.
Am I missing something?
There is a lot more cruft below that I have not gotten to testing yet, so please excuse any weird stuff. ether5-8 should be like an access port, and ether3-Server and spf1 will by a hybrid trunk port.
# 1970-01-01 18:30:38 by RouterOS 7.12.2
# software id = 33UN-D54T
#
# model = L009UiGS-2HaxD
# serial number = <snip>
/interface bridge
add admin-mac=D4:01:C3:5E:C8:D6 auto-mac=no comment=defconf name=bridge vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name=ether1-StarLink
set [ find default-name=ether2 ] name=ether2-LTE
set [ find default-name=ether3 ] name=ether3-Server
/interface wireguard
add listen-port=51820 mtu=1400 name=wireguard1
/interface vlan
add interface=bridge name=vlan2 vlan-id=2
add interface=bridge name=vlan3 vlan-id=3
add interface=bridge name=vlan4 vlan-id=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=internal ranges=192.168.1.100-192.168.1.200
add name=vlan2 ranges=192.168.2.2-192.168.2.250
add name=vlan4 ranges=192.168.4.2-192.168.4.100
add name=vlan3 ranges=192.168.3.2-192.168.3.250
/ip dhcp-server
add address-pool=default-dhcp disabled=yes interface=bridge lease-time=10m name=defconf
add address-pool=vlan4 authoritative=after-2sec-delay interface=vlan4 lease-time=10m name=vlan4
add address-pool=internal bootp-support=none disabled=yes interface=bridge lease-time=1h name=dhcp
add address-pool=vlan3 interface=vlan3 lease-time=10m name=vlan3
add address-pool=vlan2 interface=vlan2 name=vlan2
/port
set 0 name=serial0
/snmp community
set [ find default=yes ] addresses=192.168.1.23/32
/system logging action
set 3 bsd-syslog=yes remote=192.168.1.23
/interface bridge port
add bridge=bridge interface=ether4
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge comment=defconf interface=wifi1
add bridge=bridge ingress-filtering=no interface=ether3-Server
add bridge=bridge interface=ether5 pvid=2
add bridge=bridge interface=ether6 pvid=2
add bridge=bridge interface=ether7 pvid=2
add bridge=bridge interface=ether8 pvid=2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface bridge vlan
add bridge=bridge tagged=ether3-Server,sfp1 untagged=ether5,ether6,ether7,ether8 vlan-ids=2
add bridge=bridge tagged=ether3-Server,sfp1 vlan-ids=3
add bridge=bridge tagged=ether3-Server,sfp1 vlan-ids=4
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1-StarLink list=WAN
/ip address
add address=192.168.1.26/24 comment=defconf interface=bridge network=192.168.1.0
add address=192.168.2.1/24 interface=vlan2 network=192.168.2.0
add address=192.168.3.1/24 comment=ceph interface=vlan3 network=192.168.3.0
add address=192.168.4.1/24 interface=vlan4 network=192.168.4.0
add address=10.7.0.5/24 interface=wireguard1 network=10.7.0.0
/ip dhcp-client
add comment=defconf interface=ether1-StarLink
add add-default-route=no comment=LTE interface=ether2-LTE use-peer-dns=no use-peer-ntp=no
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=192.168.1.23,192.168.1.25 domain=<snip>.net gateway=192.168.1.25 netmask=24 ntp-server=192.168.1.23
add address=192.168.2.0/24 dns-server=192.168.2.1 domain=<snip>.net gateway=192.168.2.1 netmask=24 ntp-server=192.168.1.23
add address=192.168.3.0/24 dns-server=192.168.3.1 domain=<snip>.net gateway=192.168.3.1 netmask=24 ntp-server=192.168.1.23
add address=192.168.4.0/24 dns-server=192.168.4.1 domain=<snip>.net gateway=192.168.4.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.4.4.8
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat out-interface=ether2-LTE
add action=masquerade chain=srcnat out-interface=ether1-StarLink
add action=masquerade chain=srcnat out-interface=wireguard1
/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" 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
/snmp
set enabled=yes
/system clock
set time-zone-name=America/Los_Angeles
/system identity
set name=MikroTikBatteryRoom2
/system logging
set 0 action=remote
set 1 action=remote
set 2 action=remote
set 3 action=remote
add action=remote prefix="Route Change" topics=route
/system note
set show-at-login=no
/system ntp client
set enabled=yes
/system ntp server
set enabled=yes manycast=yes
/system ntp client servers
add address=108.61.73.243
add address=207.140.111.251
/system routerboard settings
set enter-setup-on=delete-key
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN