I have my network 10.0.30.0/24 in a vlan. DHCP is working and machines do have internet connectivity.
I want that network to use a specific IP address on ingress and egress
/ip address
add address=10.0.30.1/24 interface=RED_VLAN network=10.0.30.0
add address=[static ip 1]/29 interface=ether1 network=[static ip network]
add address=[static ip 2]/29 interface=ether1 network=[static ip network]
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=[static ip 2] \
to-addresses=10.0.30.0/24
add action=src-nat chain=srcnat src-address=10.0.30.0/24 \
to-addresses=[static IP 2]
If I curl to whatismyip, it will not return the static address I assigned in the nat rules. It will only return [static ip 1]
I have tried assigning the to-address as individual endpoints as well to see if I could get it to use [static ip 2] to no avail.
Any ideas? What am I missing here?
I want that network to use a specific IP address on ingress and egress
/ip address
add address=10.0.30.1/24 interface=RED_VLAN network=10.0.30.0
add address=[static ip 1]/29 interface=ether1 network=[static ip network]
add address=[static ip 2]/29 interface=ether1 network=[static ip network]
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=[static ip 2] \
to-addresses=10.0.30.0/24
add action=src-nat chain=srcnat src-address=10.0.30.0/24 \
to-addresses=[static IP 2]
If I curl to whatismyip, it will not return the static address I assigned in the nat rules. It will only return [static ip 1]
I have tried assigning the to-address as individual endpoints as well to see if I could get it to use [static ip 2] to no avail.
Any ideas? What am I missing here?
Statistics: Posted by jopper — Wed Feb 07, 2024 2:52 am