[Notes] Network planning and administration: Interconnection

Miguel Menéndez

Interconnection of computer networks.

Mikrotik default user: admin (blank password).

Assign IP:

ip address print
ip address add address=192.168.241.254/24 interface=ether1

Rename:

interface ethernet print
interface ethernet set name=wan numbers=0

Assign gateway (192.168.241.2 is the VMware Workstation NAT virtual router, if the router is internal, the IP will be that of the external router):

ping 1.1.1.1
ip route add gateway=192.168.241.2

NAT rule on router:

ip firewall nat print
ip firewall nat add chain=srcnat action=masquerade

Accessible local network:

In the external router (where 10 is the internal card of the internal router and 172 is the external card of the internal router):

ip route add dst-address=10.0.0.0/24 gateway=172.16.0.253

Port forwarding for remote desktop on the client (port 3389):

On the external router:

ip firewall nat add chain=dstnat dst-port=3389 action=dst-nat protocol=tcp to-addresses=10.0.0.1 to-ports=3389 in-interface=wan

Comments

Found a bug? Do you think something could be improved? Feel free to let me know and I will be happy to take a look.