Use ARP to assign ip address

Use ARP to assign ip address

Use ARP to assign ip address 150 150 Roderick Derks

If you install a new device, that has no ip assigned to it, but you have the mac address of this device, you can use arp and ping to assign a temporary ip address:

1) Assign ARP/IP

Windows:
> arp -s 192.168.1.123 00-aa-cc-c6-09

Linux:
# arp -i eth0 -vs 192.168.100.124 00:0E:35:1F:91:F5

2) Ping it

A "normal" ping will not work as expected here… you need to ping it with a packet-size of 113:

Windows:
> ping 192.168.1.123 -l 113

Linux:
# ping 192.168.1.124 -s 113

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

      Your Name (required)

      Your Email (required)

      Subject

      Your Message