[go: up one dir, main page]

0% found this document useful (0 votes)
30 views2 pages

Display Add Delete Modify ARP Entries in ARP Table

The document discusses commands to display, add, delete and modify ARP entries in the ARP table on Sun Solaris systems. It provides the arp command syntax to display the ARP table, delete an entry, add a static entry, and read entries from a file. It also shows how to check the ARP cache timeout value.

Uploaded by

Aqeel Nawaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Display Add Delete Modify ARP Entries in ARP Table

The document discusses commands to display, add, delete and modify ARP entries in the ARP table on Sun Solaris systems. It provides the arp command syntax to display the ARP table, delete an entry, add a static entry, and read entries from a file. It also shows how to check the ARP cache timeout value.

Uploaded by

Aqeel Nawaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Display/Add/Delete/modify ARP entries in ARP Table

7 Comments / Networking / By admin

Not so often we would end up troubleshooting or manipulating ARP and ARP tables in
Sun Solaris. However, following are some of the useful commands which can help when
required. The following commands will help you display,modify,add,delete ARP
entries in Sun Solaris ARP table.

Display ARP table

sunsolaris# arp -a
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
—— ——————– ————— —– —————
pcn0 192.168.0.1 255.255.255.255 00:18:4d:f8:a4:6e
pcn0 192.168.0.2 255.255.255.255 00:13:ce:85:0e:e1
pcn0 sunsolaris 255.255.255.255 SP 00:0c:29:d3:76:89
pcn0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00

Delete an ARP entry

sunsolaris# arp -d 192.168.0.1


192.168.0.1 (192.168.0.1) deleted

To verify the entry indeed is deleted

sunsolaris# arp -a
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
—— ——————– ————— —– —————
pcn0 192.168.0.2 255.255.255.255 00:13:ce:85:0e:e1
pcn0 solaris10 255.255.255.255 SP 00:0c:29:d3:76:89
pcn0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00

You can see the ARP entry for 192.168.0.1 is longer found.

Add a Static entry

sunsolaris# arp -s 192.168.0.1 00:18:4d:f8:a4:6e

Syntax is

arp -s HOSTNAME MAC-Address <pub/temp/trail>

where

pub – publishes the ARP entries to other hosts on the network

temp – Temporary entry

trail – Allows Trailer Encapsulations to be sent to host

You can also read static entries from a file. This can come handy if you decide
that all ARP entries are static and no ARP requests are sent and received from the
system. You can add the static entries onto a file and add the arp command onto the
network init scripts in /etc/rc2.d/

To read from file


sunsolaris# arp -f /etc/host_mac

where /etc/host_mac is my file name from where the ARP entries are read.

To check the current ARP caching time

sunsolaris# ndd -get /dev/arp arp_cleanup_interval


500000

where 500000 in milliseconds indicates 5mins

You might also like