Before I did a question related with the NAt but that don't fix the problem. Lets me explain what I need to do and maybe you can give me and advise.
I've to implement a private network inside - connected to other private network which this last one is connected to the public network. Why this? well is a proyect but it's something that implements a pbx + softphone and this inner lan (my lan) it's think to has a mikrotik rb2011 which will implements QoS for voice and a VPN.
The mikrotik RB2011 has configured the ports ether1, ether3, ether4, ether5 with ether2 as master-port and there is on ether2 a DHCP server with this IP pool:
100.64.0.0/24 and yes it's a grade nat pool. This is because this inner LAN (my lan) is connected to an other LAN (mikrotik's ether6 ) and I dont' know what private pool IP this lan would have (so I use grade nat pool to avoid ip overlap). As it's think to can connects in a lot of place or situacion, the outside private lan can implements a network with 10.0.0.0/24 or 192.168.0.0/24 etc.
in this outside lan would be a DHCP server with this pool 10.0.0.0/24 (as example.) and just one public IP. So this outside private network has a router which implements NAT.
If I connect the mikrotik RB2011 to the outside private network by ether6, it would get a IP from 10.0.0.0/24 pool. Lets suppose it's 10.0.0.6 and the ether2 is configure as gateway with this IP 100.64.0.1.
I must implement a NAT between 10.0.0.6 and 100.64.0.1? or I must implement a router that every IP that does not belong to 100.64.0.0/24 is route to 10.0.0.0/24? the problem here is that I don't know what IP the DHCP client on port ether6 can get. It could be from a pool like 10.0.0.0/24 or 192.168.0.0/24 etc.
Could you please give me and advise? this is a code I used but it doesn't works
Code: Select all
# oct/14/2017 13:43:07 by RouterOS 6.37.4
# software id = 818B-XRQ1
#
/interface ethernet
set [ find default-name=ether3 ] master-port=ether2
set [ find default-name=ether4 ] master-port=ether2
set [ find default-name=ether5 ] master-port=ether2
set [ find default-name=ether9 ] master-port=ether6
set [ find default-name=ether1 ] master-port=ether2
/ip pool
add name=dhcp_poolIPv4 ranges=100.64.0.2-100.64.0.254
/ip dhcp-server
add address-pool=dhcp_poolIPv4 disabled=no interface=ether2 lease-time=10h name=dhcp_IPv4
/ip address
add address=100.64.0.1/24 interface=ether2 network=100.64.0.0
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=ether6
/ip dhcp-server network
add address=100.64.0.0/24 dns-server=8.8.8.8 gateway=100.64.0.1
/ip firewall nat
add action=masquerade chain=src-nat out-interface=ether6
/routing rip interface
add interface=ether2 send=v1-2
add interface=ether6 send=v1-2