About ARP table

arp

#1

Hello,

I have a question.

How long the time does vyos hold arp table?

I want to know the time to flush arp table.

Regards,


#2

It’s probably the same as Debian, which Googling says defaults to 60 seconds and is set by the gc_stale_time sysctl.
No idea if that’s correct or how to flush it.

vyos@sh-bdr-vyfw:~$ cat /proc/sys/net/ipv4/neigh/eth1/gc_stale_time 60


#3

Thank you for your reply.

I understood that there are no functions about arp flush.

Regards,


#4

@ktty-kws @jspace
Sorry about late answer, but you can delete arp entries like this:

sudo ip neigh del 172.18.65.231 dev eth1.58

for example.

Not sure if its possible to delet all at once.


#5

arp -i -d IP_address would work too


#6

You can flush the entire table using the ip command.

ip -s -s neigh flush all


closed #7

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.