Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Expand Shortended CIDR notation?
February 9, 2009, 3:51 pm
rate this thread
expand short CIDR notation? Some of our unix/freebsd boxes print
routes in this annoying shortened format and I'd like to expand them
for various reasons... (I already written scripts that handle the
destination format so I'd like to continue using them once converted
to a more familiar format...
For example :
Should be re-written as 10.0.0.0 255.0.0.0 (I'd like both the
network and mask written like that)
needs to be re-written as 192.168.50.0 255.255.224.0
I'm slightly familiar with the PACK and UNPACK but need some
assistance here.. alternatively some CIDR module might be better
suited here. Thanks in advance.
CIDR is great.. but not when I'm trying to use the expanded formats in