Thank you @vingjfg with your approach I was able to rebuild the configuration using a single bridge and vlan
Here is the completed working configuration. The next steps would be to implement load balancing to use both wans at once.
Thanks
~dices
Here is the completed working configuration. The next steps would be to implement load balancing to use both wans at once.
Thanks
~dices
Code:
# RouterOS 6.49.10# software id = 2WP2-ZSV3# model = CRS305-1G-4S+# Set up the bridge with VLAN filtering enabled/interface bridgeadd name=bridge1 vlan-filtering=yes# Create VLAN interfaces on the bridge/interface vlan# VLAN 1 - MGMTadd interface=bridge1 name=vlan.1 vlan-id=1# VLAN 5 - WAN.1add interface=bridge1 name=vlan.5 vlan-id=5# VLAN 10 - WAN.2add interface=bridge1 name=vlan.10 vlan-id=10# VLAN 20 - LANadd interface=bridge1 name=vlan.20 vlan-id=20# Define Interface Lists for easier management and reference/interface listadd name=WANadd name=LAN# Define an IP Pool for DHCP distribution on VLAN 20/ip pooladd name=Pool-VLAN.20 ranges=10.10.0.10-10.10.0.253# Set up DHCP Server for VLAN 20 with the defined IP Pool/ip dhcp-serveradd address-pool=Pool-VLAN.20 disabled=no interface=vlan.20 lease-time=23h10m name=DHCP-VLAN.20# Configure bridge ports/interface bridge port# Set ether1 as a port for VLAN-tagged traffic (trunk port)add bridge=bridge1 frame-types=admit-only-vlan-tagged interface=ether1# Set SFP+ ports as members of VLAN 20, carrying untagged trafficadd bridge=bridge1 interface=sfp-sfpplus2 pvid=20add bridge=bridge1 interface=sfp-sfpplus3 pvid=20add bridge=bridge1 interface=sfp-sfpplus1 pvid=20add bridge=bridge1 interface=sfp-sfpplus4 pvid=20# Configure VLAN membership on the bridge/interface bridge vlan# Specifying tagged and untagged ports for each VLANadd bridge=bridge1 tagged=bridge1,ether1 vlan-ids=1add bridge=bridge1 tagged=bridge1,ether1 vlan-ids=5add bridge=bridge1 tagged=bridge1,ether1 vlan-ids=10add bridge=bridge1 tagged=bridge1,ether1 vlan-ids=20# Add VLAN interfaces to interface lists for WAN and LAN/interface list memberadd interface=vlan.5 list=WANadd interface=vlan.10 list=WANadd interface=vlan.20 list=LAN# Assign IP address to VLAN 20 interface for LAN/ip addressadd address=10.10.0.1/16 interface=vlan.20 network=10.10.0.0# Configure DHCP clients for obtaining IP addresses for WAN VLANs/ip dhcp-clientadd default-route-distance=5 disabled=no interface=vlan.5add default-route-distance=10 disabled=no interface=vlan.10# Set up DHCP network for VLAN 20, specifying gateway and DNS server/ip dhcp-server networkadd address=10.10.0.0/16 dns-server=1.1.1.1 gateway=10.10.0.1 netmask=16# NAT configuration to allow internet access for internal network/ip firewall natadd action=masquerade chain=srcnat out-interface-list=WAN# Router boot settings/system routerboard settingsset boot-os=router-os
Code:
Statistics: Posted by dices — Fri Dec 08, 2023 8:32 am