Default gateway in another network

Welcome,

I have a problem configuring my MT to work with my ISP modem. Generally I have been given one public IP address to associate it with WAN interface. I have added this address including subnet mask and network address. Unfortunatelly my ISP forces to use an address from C private class as a default gateway. Setting this address as a gateway gives me gateway marked as blue with description “unreachable” :frowning:

I was trying to connect directly a Windows based PC to the modem, I have set a public IP, subnet mask and private default gateway. There was a warning message that host IP and gateway are in another networks, but configuration was accepted and everything worked fine. Now I have no idea how to set it up on my MT. My ISP uses a technique to save IP addresses, so that some NAT traversals are placed on his side. For the time being I have no idea how to set a gateway in MT so it could be accessible from the Internet from the given external public IP :frowning:

Public addres is 37.xxx.xxx.91/29 and gateway is 192.168.100.252. MT is planned to be a IPsec peer.

Any help very appreciate!

I have seen this as a solution to that particular problem:

/ip address add address=37.xxx.xxx.91/29 interface=ether1 network=192.168.100.252
/ip route add gateway=192.168.100.252

THANKS A LOT!!! IT WORKS :slight_smile: :slight_smile: :slight_smile:

Hi, is there any solution for this particular problem but with dynamic Public IP and also default gateway ?
I have a similar problem with my mikrotik and ADSL modem, but I get different Public IP and default gateway IP for each connection.
Thanks