[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Subnet address
From: |
Mike Frysinger |
Subject: |
Re: Subnet address |
Date: |
Fri, 20 Jul 2007 16:33:40 -0400 |
User-agent: |
KMail/1.9.7 |
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
signature.asc
Description: This is a digitally signed message part.
- Subnet address, Barbarian Mama, 2007/07/20
- Re: Subnet address,
Mike Frysinger <=