i install mikrotik on vmware workstation with following setting :
Code: Select all
/ip address
add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
add address=192.168.100.1/24 interface=ether2 network=192.168.100.0
Code: Select all
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=ether2 lease-time=3d name=\
dhcp1
/ip dhcp-server network
add address=192.168.100.0/24 dns-server=8.8.8.8,4.2.2.4 gateway=192.168.100.1
Code: Select all
/ip route
add distance=1 dst.Address=0.0.0.0/0 gateway=192.168.1.1 reachable ether1
dst.Address=192.168.1.0/24 gateway=ether1 reachable
dst.Address=192.168.100.0/24 gateway=ether2 reachable
when i set a nat rule as following i have access to internet :
Code: Select all
/ip firewall nat
add action=masquerade chain=srcnat dst-address=0.0.0.0/0 src-address=\
192.168.100.200
but when i try to access internet with static source nat as following i dont have access to internet even my modem ip (192.168.1.1 requst time out) :
Code: Select all
/ip firewall nat
add action=src-nat chain=srcnat dst-address=0.0.0.0/0 src-address=\
192.168.100.200 to-addresses=192.168.1.20
any solution?