Community discussions

MikroTik App
 
User avatar
Chupaka
Forum Guru
Forum Guru
Topic Author
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

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

Mon Dec 28, 2009 1:12 pm

[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 :(
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

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

Mon Dec 28, 2009 1:14 pm

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.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Topic Author
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

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

Mon Dec 28, 2009 3:40 pm

actually, I need it for IP Tunnel interfaces...
works for multi-access interfaces, when it is possible to resolve DST-address by ARP
so, it works only for /32 routes?.. or how will it resolve subnets?..
it is even possible to have the same IP address on multiple interfaces
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...
 
roadracer96
Forum Veteran
Forum Veteran
Posts: 733
Joined: Tue Aug 25, 2009 12:01 am

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

Mon Dec 28, 2009 3:50 pm

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

Who is online

Users browsing this forum: Bing [Bot] and 172 guests