On Friday 20 July 2007, Barbarian Mama wrote:
> how can know subnet address of the machine using bash scripting .. if i use 
> ifconfig it only displays ipaddress and subnet mask. I you have to
> calculate subnet address then you have to do binary AND operation on
> ipaddress AND subnet mask to know subnet address . Can any one help me to
> know subnet address of the machine in bash script.

this isnt really a bash question as bash has nothing to do with network 
configuration.  i dont know of any networking utilities that will give you 
the subnet address so you'll most likely have to calculate it yourself from 
the ip address and the subnet mask.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to