ARP settings EcoRouter Documentation / ARP settings
ARP (Address Resolution Protocol) is a protocol in computer networks designed to determine the MAC address from a known IP address.
The Address Resolution Protocol is enabled in EcoRouter by default and does not require any additional settings. The implementation of the protocol in EcoRouterOS allows storing both dynamic records received by broadcast requests and static records.
In the table below the commands of ARP-configuring in configuration mode are represented.
Command | Description |
---|---|
arp <IP ADDRESS> <MAC ADDRESS> | Create static record for certain IP-address |
arp vrf <VRF NAME> <IP ADDRESS> <MAC ADDRESS> | Create static record for certain IP-address in specific VRF |
arp expiration-period <0-300> | Set retention time in ARP-table for dynamic entry in minutes. The default value is 5 minutes |
arp incomplete-time <5-300> | Set retention time in ARP-table for incomplete entry in seconds. The default value is 60 seconds |
arp request-interval <0-100> | Set time interval for sending ARP-requests in seconds if ARP-response is absent. The default value is 1 second |
arp request-number <0-100> | Set the number of ARP-requests sent if ARP-response is absent. The default value is 3 |
In the administrative mode use the show arp command to display ARP-table. The parameters which can be used are shown in the table below.
Command | Description |
---|---|
show arp | Display the whole ARP-table |
show arp interface <INTERFACE NAME> | Display ARP-table for entries from specific interface |
show arp ip <IP ADDRESS> | Display ARP-records for specific IP-address |
show arp mac <MAC ADDRESS> | Display ARP-records for specific mac-address |
show arp vrf <VRF NAME> | Display the whole ARP-table in VRF |
show arp vrf <VRF NAME> interface <INTERFACE NAME> | Display ARP-table for entries from specific interface in VRF |
show arp vrf <VRF NAME> ip <IP ADDRESS> | Display ARP-records for specific IP-address in VRF |
show arp vrf <VRF NAME> mac <MAC ADDRESS> | Display ARP-records for specific mac-address in VRF |
See the example of creating static ARP-record and displaing ARP-table (arrows show the local created interfaces).
ecorouter(config)#arp 10.12.0.100 ca0b.3b18.001d
ecorouter(config)#exit
ecorouter#show arp
Interface IP Address MAC Address Type Age
------------------------------------------------------------------
>eth2 200.22.0.200 1c87.7640.0507 ----- -----
>eth1 100.24.0.200 1c87.7640.0506 ----- -----
>eth3 10.12.0.200 1c87.7640.0505 ----- -----
eth3 10.12.0.100 ca0b.3b18.001d static -----
eth3 10.12.0.1 ca0b.3b18.001c dynamic 3
Use the show arp settings command to display settings.