How Mikrotik/RouterOS knows the ip address of the gateway, if I set as gateway the physical interface?
I mean Mikrotik with routeros 6.35.2
make him a full config reset, without using a standard
that is, it turns the "bare" configuration without an ip address
I have a subnet 184.108.40.206/30
where 220.127.116.11 gateway, Cisco 18.104.22.168 - Mikrotik
make the following configuration
add address=22.214.171.124/30 interface=ether1 network=126.96.36.199
add distance=1 gateway=ether1
that is the ip address of the gateway I do not specify, I specify the physical interface
the question is, why in this configuration, the Internet works? :) (for example there is a ping to 188.8.131.52)
the trace shows 184.108.40.206 as the first hop, but how did he know it?
I certainly understand that I as a man not hard to guess that the gateway is 220.127.116.11, but Mikrotik not people)
I'm certainly not somenvayus that it is even described in the manual Mikrotik but did not find myself :(
very interested in a mechanism for determining
and what will happen if the network is such as will not /30 and /29
View /print the ip routes
The default gateway there? I think not.
The answer lies in the question itself. A CISCO gateway. BY default, the interfaces they have enabled proxy-arp.
With other equipment - not the fact that you have to repeat a specified pattern.
neva_Metz answered on July 9th 19 at 13:26
Cisco have enabled proxy-ARP on the interfaces. If you look in the ip-arp, you'll see that a bunch of IP addresses mapped to one Mac. To use this feature, but it pogibaet the RAM. Therefore, I am for classical routing. The subnet mask in this case is irrelevant, though /8
felicity_Schmeler answered on July 9th 19 at 13:28
Briefly, the first hop was recognized Mac address for interface ether1
More on HOW all this works - answer the OSI model (the second level of networking).