[lug] Calculating network addresses
BrianJ at StorageSoft.com
Wed Mar 8 11:56:28 MST 2000
besides you have to understand the basics first before you know if you have
correct answer anyway.
Once you understand the basics and have done it enough, you can do it in
your head, no programming needed. *grin*
On Wed, 08 Mar 2000, you wrote:
> On Wed, 8 Mar 2000, winrip wrote:
> > Yet I still believe the fastest way is to AND it by hand. You could get
> > answer in half the time it takes to write a perl script or program. But
> > like doing things the hard way.
> The quick and dirty way to do it in bash, I've found is to grep the output
> of route -nfor the interface name, then grep again for the netmask. The
> first field is your network address.
> <cosmo> wow, this is kinda nifty. the win98 protocol stack is
> like a chinese finger puzzle, twist and turn in the right places,
> and it pops right off --Seen on EFNet IRC
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
Web Page: http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG