Interface route w/o IP address: how?..

[admin@MikroTik] > /interface vlan add name=vlan1 interface=ether1 vlan-id=123 disabled=no
[admin@MikroTik] > /ip route add gateway=vlan1
[admin@MikroTik] > /ip route print detail
...
 1   S  dst-address=0.0.0.0/0 gateway=vlan2 gateway-status=vlan2 unreachable 
        distance=1 scope=30 target-scope=10 
...
[admin@MikroTik] >

is it possible to make it reachable w/o adding ake IP address to the intrfacve? even setting ‘pref-src’ to any router address do not solve the task :frowning:

Sorry my reply is not correctly precise.

  1. Interface route works for multi-access interfaces, when it is possible to resolve DST-address by ARP. When DST-address is directly reachable from the same router or there is any other router in the network with proxy-arp.

  2. Why can’t you just assign address to the vlan interface? In recent RouterOS
    versions it is even possible to have the same IP address on multiple interfaces.

actually, I need it for IP Tunnel interfaces…

so, it works only for /32 routes?.. or how will it resolve subnets?..

well, that’s what I do, but I’d like not to add many identical addresses - it’s not very beautiful =)

and if I need it for asymmetrical routing (one router for upload, another one for download) - why should I add address for download interface?..

I think, at least for tunnel interfaces, there should be no need to add an address…

In the case of proxy-arp routing, I just add a 10.0.0.1/32 to the interface. No big deal.