Router VM None trivial routes

Hi,

i want to use MikroTik as a virtual Router in my ESXi setup. But my hoster has me assigned an ip address for this router vm which i couldnt get configured right on my MikroTik.

He gave me this setup description for debian/ubuntu and windows:

/etc/network/interfaces:
---

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 6.199.143.192
	netmask 255.255.255.255
	post-up ip route add 218.79.179.1 dev eth0
	post-up ip route add default via 218.79.179.1
 
Windows:
---
netsh interface ip set address name=“LAN-Connection“ static 6.199.143.192 255.255.255.255 218.79.179.1

Is it possible to set such routes in the MikroTik Router? I think two routes are needed like in the debian setup. But i tried, and the web interface says “unreachable” for the Default GW route.

Okay i think MikroTik cant handle a default gateway outside of the wan interface address network.

I tried it with lowering the scope of the host route and setting the default gw route to a higher target-scope. But he will just not send the traffic out. The following configuration works with CentOS:

[root@localhost ~]# LANG=en_US ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:56:49:44
          inet addr:6.199.143.192  Bcast:6.199.143.192  Mask:255.255.255.255
          inet6 addr: fe80::20c:29ff:fe56:4944/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:90072 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31500 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:81134725 (77.3 MiB)  TX bytes:2335707 (2.2 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
[root@localhost ~]# LANG=en_US route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
218.79.179.1    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
0.0.0.0         218.79.179.1    0.0.0.0         UG    0      0        0 eth0