disabling the ARP protocol in linux box

5

1

I need to disable the system level ARP protocol to perform some experiment in my ubuntu 11.10 system. So please help me in disabling the ARP module/protocol in my system.

subhash kumar singh

Posted 2012-03-11T16:30:22.333

Reputation: 153

Are you willing to dive into the source code of linux to disable it? ARP is a critical protocol for IPv4 and IPv6. If you disable it you won't be able to use any IP services from your machine – SecurityMatt – 2012-03-11T17:04:41.563

please clarify what you mean by 'disabling system-level arp'... what do u want not to work, exactly? – user1055604 – 2012-03-14T18:35:30.577

Answers

1

chmod

Posted 2012-03-11T16:30:22.333

Reputation: 2 082

10

To supress ARP on interface eth0 run the following command as root:

ip link set dev eth0 arp off

To turn it back on again:

ip link set dev eth0 arp on

user1055604

Posted 2012-03-11T16:30:22.333

Reputation: 1 485

1I know that ip is newer and more powerful than ifconfig but ifconfig eth0 -arp( turning off) and ifconfig eth0 arp (turning on) also works. – Sourav Ghosh – 2018-07-20T12:06:54.700

but i want to generate ARP traffic from my program on same interface. – subhash kumar singh – 2012-03-12T11:09:14.887

0

Disable ARP protocol:
sudo ifconfig wlan0 -arp

Enable ARP protocol:
sudo ifconfig wlan0 arp

ablil

Posted 2012-03-11T16:30:22.333

Reputation: 1