Hi,
I wanted to check i’m doing things right here to get the best performance. Effectively the current isp has changed from giving us a untagged port single isp to providing two vlan’s with different ips and gateways over the existing port.
For some reason i’ve got a feeling I should be using the power of the RB2011UAS switch ports from reading here to minimise cpu (on ROS v6).
Here is the rough working config of what im using doesn’t include the queue lists, firewall rules, nats or mangle’s. I current have no rules setup in the switch section of ports/vlan’s for either switch1 or switch2.
/interface ethernet
set [ find default-name=ether1 ] name=internet
/interface vlan
add interface=internet l2mtu=1594 name=vlan-internet-provider1 vlan-id=1403
add interface=internet l2mtu=1594 name=vlan-internet-provider2 vlan-id=910
/ip address
add address=X.X.X.X/27 comment="Internet Provider 1" \
interface=vlan-internet-provider1 network=X.X.X.224
add address=X.X.X.X/27 comment="Internet Provider 2" interface=\
vlan-internet-provider2 network=X.X.X.32
/ip route
add check-gateway=ping distance=1 gateway=X.X.X.33
add check-gateway=ping distance=2 gateway=X.X.X.225
add comment="DSL Backup" disabled=yes distance=3 gateway=192.168.X.X
/ip firewall nat
add action=masquerade chain=srcnat comment="masquerade internet"