Manual:IP/ARP: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Versions|2.9, v3, v4}} | {{Versions|2.9, v3, v4 +}} | ||
<div class=manual> | <div class=manual> | ||
==Summary== | |||
<p><b>Sub-menu:</b> <code>/ip arp</code></ | <p id="shbox"><b>Sub-menu:</b> <code>/ip arp</code><br /> | ||
<p><b>Standards:</b> <code>ARP RFC 826</code></p> | <p><b>Standards:</b> <code>ARP RFC 826</code> | ||
</p> | |||
<br /> | <br /> | ||
<p> | <p> | ||
Line 12: | Line 13: | ||
</p> | </p> | ||
==Properties== | |||
<table class="styled_table"> | <table class="styled_table"> | ||
Line 33: | Line 34: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<br /> | |||
Read only properties | Read only properties | ||
Line 53: | Line 55: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<br /> | |||
{{ Note | | |||
Maximal number of ARP entries is 8192. | Maximal number of ARP entries is 8192. | ||
}} | |||
==ARP Modes== | |||
It is possible to set several ARP modes in interface configuration ..... | It is possible to set several ARP modes in interface configuration ..... | ||
===Disabled=== | |||
If ARP feature is turned off on the [[Interface/General | interface]], i.e., arp=disabled is used, ARP requests from clients are not answered by the router. Therefore, static arp entry should be added to the clients as well. For example, the router's IP and MAC addresses should be added to the Windows workstations using the arp command: | If ARP feature is turned off on the [[Interface/General | interface]], i.e., arp=disabled is used, ARP requests from clients are not answered by the router. Therefore, static arp entry should be added to the clients as well. For example, the router's IP and MAC addresses should be added to the Windows workstations using the arp command: | ||
<pre> | <pre> | ||
Line 67: | Line 71: | ||
</pre> | </pre> | ||
===Enabled=== | |||
This mode is enabled by default on all interfaces. ARPs will be discovered automatically and new dynamic entries will be added to ARP table. | This mode is enabled by default on all interfaces. ARPs will be discovered automatically and new dynamic entries will be added to ARP table. | ||
===Proxy ARP=== | |||
A router with properly configured proxy ARP feature acts like a transparent ARP proxy between directly connected networks. | A router with properly configured proxy ARP feature acts like a transparent ARP proxy between directly connected networks. | ||
<br /> | <br /> | ||
Line 77: | Line 81: | ||
This behaviour can be usefull, for example, if you want to assign dial-in (ppp, pppoe, pptp) clients IP addresses from the same address space as used on the connected LAN. | This behaviour can be usefull, for example, if you want to assign dial-in (ppp, pppoe, pptp) clients IP addresses from the same address space as used on the connected LAN. | ||
===Reply Only=== | |||
If arp property is set to <code>reply-only</code> on the interface, then router only replies to ARP requests. Neighbour MAC addresses will be resolved using /ip arp statically, but there will be no need to add the router's MAC address to other hosts' ARP tables like in case if arp is [[#Disabled | disabled]]. | If arp property is set to <code>reply-only</code> on the interface, then router only replies to ARP requests. Neighbour MAC addresses will be resolved using /ip arp statically, but there will be no need to add the router's MAC address to other hosts' ARP tables like in case if arp is [[#Disabled | disabled]]. |
Revision as of 12:37, 30 April 2010
Applies to RouterOS: 2.9, v3, v4 +
Summary
Sub-menu: /ip arp
Standards: ARP RFC 826
Even though IP packets are addressed using IP addresses, hardware addresses must be used to actually transport data from one host to another. Address Resolution Protocol is used to map OSI level 3 IP addreses to OSI level 2 MAC addreses. Router has a table of currently used ARP entries. Normally the table is built dynamically, but to increase network security, it can be partialy or completely built statically by means of adding static entries.
Properties
Property | Description |
---|---|
address (IP; Default: ) | IP address to be mapped |
interface (name; Default: ) | Interface name the IP address is assigned to |
mac-address (MAC; Default: 00:00:00:00:00:00) | MAC address to be mapped to |
Read only properties
Property | Description |
---|---|
DHCP (yes | no) | True if arp entry is added by DHCP server |
dynamic (yes | no) | True if entry is dynamically created |
invalid (yes | no) | True if entry is not valid |
Note: Maximal number of ARP entries is 8192.
ARP Modes
It is possible to set several ARP modes in interface configuration .....
Disabled
If ARP feature is turned off on the interface, i.e., arp=disabled is used, ARP requests from clients are not answered by the router. Therefore, static arp entry should be added to the clients as well. For example, the router's IP and MAC addresses should be added to the Windows workstations using the arp command:
C:\> arp -s 10.5.8.254 00-aa-00-62-c6-09
Enabled
This mode is enabled by default on all interfaces. ARPs will be discovered automatically and new dynamic entries will be added to ARP table.
Proxy ARP
A router with properly configured proxy ARP feature acts like a transparent ARP proxy between directly connected networks.
...
This behaviour can be usefull, for example, if you want to assign dial-in (ppp, pppoe, pptp) clients IP addresses from the same address space as used on the connected LAN.
Reply Only
If arp property is set to reply-only
on the interface, then router only replies to ARP requests. Neighbour MAC addresses will be resolved using /ip arp statically, but there will be no need to add the router's MAC address to other hosts' ARP tables like in case if arp is disabled.