[j-nsp] Clearing ARP on Logical Interface (M/MX Series)
Felix Schueren
felix.schueren at hosteurope.de
Tue Feb 2 05:56:56 EST 2010
toph,
>
> Perhaps even a way to clear all the arp entries for a CIDR, as this
> would still speed the time instead of having to clear all the arp
> entries individually with "clear arp hostname x.x.x.x".
>
> Does anyone have any insight?
>
I've been bugging J about this for years. Even vendor F (nowadays vendor
B) does it properly, where you can state interfaces or CIDR addresses to
be cleared.
What junos needs and sorely lacks is
clear arp interface x/y/z
clear arp cidr a.b.c.d/m
and while we're at it:
clear ipv6 neighbor interface x/y/z
clear ipv6 neighbor cidr a::/m
right now, you basically have to write small shell scripts to copy-paste
sequential "clear arp hostname x" statements, like so:
~ > for i in 1 2 3 4 5 6 7 8 9 10; do echo "clear arp hostname
a.b.c.${i}"; done
clear arp hostname a.b.c.1
clear arp hostname a.b.c.2
clear arp hostname a.b.c.3
clear arp hostname a.b.c.4
clear arp hostname a.b.c.5
clear arp hostname a.b.c.6
clear arp hostname a.b.c.7
clear arp hostname a.b.c.8
clear arp hostname a.b.c.9
clear arp hostname a.b.c.10
That's just for CIDR though, if you want to clear a whole interface,
it's even worse, beause you have to do the following:
show arp no-resolve | match x/y/z | save tempfile
(which takes ~5 seconds on an ethernet router with just ~20k ARP entries)
start shell
awk '{print "clear arp hostname " $2}' < tempfile
and then copy-paste hundreds or thousands of "clear arp" lines.
So please, bug your sales people about this.
Kind regards,
Felix
--
Felix Schüren
Head of Network
-----------------------------------------------------------------------
Host Europe GmbH - http://www.hosteurope.de
Welserstraße 14 - 51149 Köln - Germany
Telefon: 0800 467 8387 - Fax: +49 180 5 66 3233 (*)
HRB 28495 Amtsgericht Köln - USt-IdNr.: DE187370678
Geschäftsführer:
Uwe Braun - Alex Collins - Mark Joseph - Patrick Pulvermüller
(*) 0,14 EUR/Min. aus dem dt. Festnetz, Mobilfunkpreise ggf. abweichend
More information about the juniper-nsp
mailing list