I'm in need of some help. My ISP provides two IP addresses - each being provided by DHCP from their modem, one IP coming from port 1 on the model, the other IP coming from port 2.
On the Miktrotik Router (ccr2004-1g-12s) I'd like to configure various IP ranges/subnets so that machines on one subnet reach the internet via IP1, and other subnets access the internet via IP2.
Right now, I have configured internal network services to be provided from IP1, however I am not sure how to go about configuring a second connection from the same router providing service to a different range of IPs.
I'm not a networking expert (however have been learning), so I genuinely value any input to help solve this one.
Thank you!!
Code: Select all
interface bridge
add name=bridge-LAN
/interface ethernet
set [ find default-name=ether1 ] name=nuroWAN speed=10Gbps
set [ find default-name=sfp-sfpplus1 ] name=portLAN01
/interface list
add name=WAN
add name=LAN
/ip pool
add name=dhcp ranges=10.0.2.100-10.0.2.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-LAN name=dhcp1
/interface bridge port
add bridge=bridge-LAN interface=portLAN01
/interface list member
add interface=nuroWAN list=WAN
add interface=bridge-LAN list=LAN
/ip address
add address=10.0.0.1/16 interface=portLAN01 network=10.0.0.0
/ip dhcp-client
add disabled=no interface=nuroWAN
/ip dhcp-server network
add address=10.0.0.0/16 dns-server=10.0.0.1 gateway=10.0.0.1 netmask=16 \
ntp-server=10.0.0.1
/ip dns
set allow-remote-requests=yes servers=\
8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat dst-address=!10.0.0.0/16 out-interface=\
nuroWAN src-address=10.0.0.0/16
add action=masquerade chain=srcnat out-interface=nuroWAN