Implementation of Address Resolution Protocol.
Syntax:
arp view [IP]
arp add IP MAC|auto proxy
arp del IP|all [proxy]
arp [-]freeze
arp [-]proxyall [$ACL]
...
Description
The "arp" command is used to manipulate with ARP tables. ARP protocol serves for IP to MAC address mapping and vice versa. For example in Ethernet it allows to transform IP destination transform IP destination address into its 48-bit Ethernet address for packet forwarding over LANover LAN.
In common case ARP works case ARP works automatically making address resolution as it is necessary. But there are some cases when ARP tables when ARP tables should be corrected manually and arp command solves this problem.
The command has several formsSyntax:
Code Block |
---|
language | javatext |
---|
theme | DJangoEmacs |
---|
|
arp view [IP] |
Displays ARP records for IP -address. Displays all ARP records if address is not specified:
Code Block |
---|
|
arp add IP {MAC | auto} [proxy]
arp adddel {IP | all} [proxy]
arp [-]freeze auto proxy
arp [-]proxyall [$ACL] |
Parameters
Center |
---|
Parameter | Description |
---|
view [IP] | Displays the ARP table. - "IP" – IP address which records must be shown.
| add IP {MAC | auto} [proxy] | Adds record into |
|
...
the ARP table. - "IP" – IP address to add a compliance.
- "MAC" – MAC address which is mapped to IP
|
|
...
...
- "proxy" – if specified then the system will announce this information as response to
|
|
...
- requests from other stations, acting as
|
|
...
- proxy ARP server, even if
|
|
...
- this IP address is not system own address.
|
|
...
Code Block |
---|
|
arp del IP | all [proxy] |
Deletes the record for IP . Or all records in the system if keyword all specified. If optional parameter proxy specified, then only proxy IP -addresses will be deleted.
Code Block |
---|
|
arp - "auto" – if specified, network interface MAC address from same subnetwork as the IP address will be set.
| del IP|all [proxy] | Removes records from the ARP table. - "IP" – IP address which information need to be removed.
- "all" – all records in the ARP table.
- "proxy" – IP address for which system acting as proxy ARP server.
| [-]freeze | Enables to |
|
...
freeze ARP table. No more automatically updates allowed. The command fixes only manual records and does not affect on the radio interface with active |
|
...
Code Block |
---|
|
language | java |
---|
theme | DJangoprotocol MINT. Be careful when entering this command via telnet. |
|
...
...
Enables/disables "proxyall" mode. In this mode the system will reply on |
|
...
...
...
address resides in the routing tables and reachable via interface other than |
|
...
...
address. I.e. if there is a route to the |
|
...
...
...
device can be considered as a gateway.
|
|
...
- "$ACL" – list of addresses/networks
|
|
...
- , which limits this command.
|
|
Examples
Add the "00:11:22:33:44:55" MAC address which is mapped to "10.10.10.10" IP address to the table. |
...
...
| arp add 10.10.10.10 00:11:22:33:44:55 |
|
...
|
Make system act as proxy ARP server for the "192.168.103.35" IP address. Code Block |
---|
| arp add 192.168. |
|
...
103.35 auto proxy
using interface svi1 for proxy with address 020435035E4E |
|