Hello, I recently bought a ccr2004 and I have medium knowledge in networking.
I have an assigned /24 PI without AS. My ISP provided me a local ip (10.0.42.2/24) which I can route my class trough. This subnet is used exclusively on servers.
I have another isp with static IP which I’ll be using with NAT for the work LAN.
How can I avoid making a default static route? Trying marking routes with mangle leaves me with gateway ip useless (no route to host from Internet). I have planned to use that ip for tunneling.
/routing table
add fib name=IPclass
/ip address
add address=10.0.42.2/24 interface=sfp-sfpplus1 network=10.0.42.0
add address=x.x.x.1/24 interface=bond40G network=x.x.x.0
/ip firewall mangle
add action=mark-routing chain=prerouting passthrough=yes src-address=x.x.x.0/24
/ip route
add gateway=10.0.42.1@main routing-table=IPclass
Without mangle and separate routing table x.x.x.1 can be ping-ed form Internet but I can not use NAT for the other subnets.