[c-nsp] BGP subnet mask display
Ashe Canvar
acanvar at gmail.com
Thu Jun 9 00:47:37 EDT 2005
Thanks Guys.
An update from my side. I found this great tool called ipcalc (perl script) :
basically I do :
for x in `cat ./PREFIXLIST`;
do
./ipcalc.pl -n -b $x | grep Network | awk '{print $2}';
done >> PREFIXES-NORMALIZED
Gives me a "corrected" list with netmasks.
The other thing is that quagga/zebra can provide "classless" table
dumps. Cisco still sucks though. :)
Cheers.
On 6/8/05, David Barak <thegameiam at yahoo.com> wrote:
> I've got some perl-fu which I wrote a while ago which
> dealt with this in the course of doing other things.
> Anyone who's interested, please contact me off-list.
>
> -David
>
> --- Ashe Canvar <acanvar at gmail.com> wrote:
>
> > Hi there,
> >
> > My "sho ip bgp" command does not show a subnet mask
> > against the
> > networks that advertize their natural netmask. Is
> > there a way to
> > change this ?
> >
> >
> > i.e. the below entries show /netmask :
> > *> 164.80.242.0/24 209.58.54.21
> > 0 6453
> > 18398 9837 18117 i
> > *> 172.205.128.0/17 209.58.54.21
> > 0 6453
> > 18398 9443 9714 i
> >
> > but these don't.
> > *> 192.26.230.0 209.58.54.21
> > 0 6453 18398 4739 i
> > *> 192.43.185.0 209.58.54.21
> > 0 6453
> > 18398 9837 4736 i
> > *> 192.52.72.0 209.58.54.21
> > 0 6453 18398 4739 i
> >
> >
> > Thanks!
> > -ashe
> >
> > _______________________________________________
> > cisco-nsp mailing list cisco-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/cisco-nsp
> > archive at
> > http://puck.nether.net/pipermail/cisco-nsp/
> >
>
>
> David Barak
> Need Geek Rock? Try The Franchise:
> http://www.listentothefranchise.com
>
>
>
> __________________________________
> Discover Yahoo!
> Stay in touch with email, IM, photo sharing and more. Check it out!
> http://discover.yahoo.com/stayintouch.html
>
More information about the cisco-nsp
mailing list