Add a static entry to the ARP table



Published: 2018-09-20 22:23:00 +0000
Categories: BASH,

Language

BASH

Description

The following allows you to add an entry to the ARP table

Snippet

arp -s $IP $MAC

Usage Example

arp -s 192.168.1.241 44:94:FC:9C:C7:5C
arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.1.241            ether   44:94:fc:9c:c7:5c   CM                    eth0
192.168.1.254            ether   00:1f:9f:76:98:53   C                     eth0
192.168.1.250            ether   80:1f:02:8d:5f:52   C                     eth0
192.168.1.73             ether   00:1f:1f:a8:92:85   C                     eth0

Keywords

ARP, Linux, Mac Address, Add, HW Address,

Latest Posts

Setting Git author details for a single repo (Git)
Checking Virtual Machine Resource Allocations with Libvirt (BASH)
Rsync over SSH with a custom port (BASH)
Remotely backing up PFsense Configuration (BASH)
FFMPEG: Converting RMVB to X264 MP4 (BASH)
Recursively print table (print_r equivalent) (LUA)
Bulk Delete Comments from (Self-Hosted) JIRA Issues (Misc)
Add a static entry to the ARP table (BASH)
SSL Cipher Hex codes to Human Readable Names (Misc)
Convert Ascii to Binary (BASH)

Copyright © 2019 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk and snippets.6zdgh5a5e6zpchdz.onion