Mikrotik Simple Static Routing + NAT

This is a very simple example. If you need to ping an IP address in the network and you are not sure if you configured your static routes OK, this little article could help you understand how...

CORE ROUTER..

/ip address 
add address=192.168.0.2/24 interface=ether1
add address=172.16.0.1/16 interface=ether2

/ip firewall nat
add action=masquerade chain=srcnat src-address=10.0.0.0/8

/ip route
add gateway=192.168.0.1
add dst-address=10.0.0.0/8 gateway=172.16.0.2


PPP/DHCP SERVER

/ip address 
add address=172.16.0.2/16 interface=ether1

/ip pool
add name=pool1 ranges=10.0.0.2-10.255.255.254

ONLY FOR DHCP SERVER

/ip address 
add address=10.0.0.1/8 interface=ether2

No comments:

Post a Comment

Mikrotik Malicious Spam IP Blacklist – Firewall Auto Update Script

We have published a malicious ip blacklist for free! Combined dshield and spamhaus malicious blacklists formatted for Mikrotik RouterOS .r...