The answer is:
> >
> > funny, you just backed up my statement completely. there is no utility
> > that'll give you the subnet address straight, you'll need to calculate it
> > by hand.
>
> You're making assumptions about what the OP's question was.
> Sp
Mike Frysinger wrote:
On Saturday 21 July 2007, Archimerged Ark Submedes decided to be rude:
On 7/20/07, Mike Frysinger <[EMAIL PROTECTED]> did not read the question.
The answer is:
funny, you just backed up my statement completely. there is no utility
that'll give you the sub
On Saturday 21 July 2007, Archimerged Ark Submedes decided to be rude:
> On 7/20/07, Mike Frysinger <[EMAIL PROTECTED]> did not read the question.
>
> The answer is:
funny, you just backed up my statement completely. there is no utility
that'll give you the subnet address s
On 7/21/07, Archimerged Ark Submedes <[EMAIL PROTECTED]> wrote:
On 7/20/07, Mike Frysinger <[EMAIL PROTECTED]> did not read the question.
Neither did you. ;-) Asked for was a solution using ifconfig and bash;
you added grep and tr. Yes, that's entirely reasonable on your part,
but it's not n
On 7/20/07, Mike Frysinger <[EMAIL PROTECTED]> did not read the question.
The answer is:
/sbin/ifconfig eth0 |
grep 'inet addr' | tr .: ' ' |
(read inet addr a b c d Bcast e f g h Mask i j k l;
echo $(($a & $i)).$(($b & $j )).$(( $c & $k )).$(( $d & $l )) )
___
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 su
Hi All,
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