PortServer Terminal Server
Ÿ
Page 41
arp
Syntax:
set arp
[
range=
range]
set arp ip=
ipaddr
ether=
etaddr [
tim2liv=
time]
set arp range=
range
rmarp=on
This sets or displays the
arp
(Address Resolution Protocol) table entries. The arp table maps IP
addresses to Ethernet addresses. In most cases, this is done automatically by the ARP protocol
and manual modification of this table will not be required. Making changes with ARP requires
root priveledges. The
arp
options are:
set arp range=
range
If the
set
arp
command is entered with no options other than a range, the current
ARP table entries for that range are displayed. (
set
arp
with no range prints the
entire table.)
set arp ip=
ipaddress
ether=
ethernetaddress [
tim2liv=
time]
The second form of the
set
arp
command is used to add a new entry into the ARP
table. Set ipaddress to the ip address to be mapped (in the normal nnn.nnn.nnn.nnn
format) and set ethernetaddress to the six byte Ethernet address that this IP address
should be mapped to (such as 08:00:20:05:0b:da).
The optional parameter
tim2liv
can be set to the length of time, in seconds, to keep
an entry in the ARP table. If no value is specified, a default of 1200 seconds (20
minutes) is used.
set arp range=
range
rmarp=on
This is used to remove entries from the ARP table. Set range equal to the range of
table entries to be removed, using the numbers from the Index field when you view
the table using
set
arp
.
You may define up to 16 arp table entries.