I'm running Linux and I know my gateway will always be 192.168.1.254 with MAC address aa:aa:aa:aa:aa:aa.
Is there any way I can instruct my machine to only ever use this MAC address for the gateway and ignore all ARP responses for this IP address?
I'm running Linux and I know my gateway will always be 192.168.1.254 with MAC address aa:aa:aa:aa:aa:aa.
Is there any way I can instruct my machine to only ever use this MAC address for the gateway and ignore all ARP responses for this IP address?
You can use arp
to control the ARP tables.
arp -s 192.168.1.254 aa:aa:aa:aa:aa:aa
will statically map the IP to the MAC, bypassing ARP, and should do the trick.