Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2001 12:33:04 -0800 (PST)
From:      David Kirchner <davidk@accretivetg.com>
To:        David Loszewski <stealth215@mediaone.net>
Cc:        "'David Powers'" <dnpowers@swbell.net>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: subnetmask
Message-ID:  <20011028123222.W35308-100000@localhost>
In-Reply-To: <000201c16039$1b8ecbb0$3000a8c0@sickness>

next in thread | previous in thread | raw e-mail | index | archive | help
Check out 'bc'. For example:

$ bc
bc 1.04
Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
ibase=16
FC
252

(note that ibase and FC were both input by me, 252 was the output)

On Mon, 29 Oct 2001, David Loszewski wrote:

> Just what I was looking for, how bout fc, what is that?
>
> Dave
>
> -----Original Message-----
> From: David Powers [mailto:dnpowers@swbell.net]
> Sent: Saturday, October 27, 2001 11:28 PM
> To: 'David Loszewski'; freebsd-questions@freebsd.org
> Subject: RE: subnetmask
>
> ff=255 and 00=0, so to translate ffffff00=255.255.255.0
>
> -----Original Message-----
> From: owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of David Loszewski
> Sent: Saturday, October 27, 2001 6:06 PM
> To: freebsd-questions@freebsd.org
> Subject: RE: subnetmask
>
>
> Shouldn't the netmask be like 255.255.x.x though?
>
> Dave
>
> -----Original Message-----
> From: owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of ravi pina
> Sent: Saturday, October 27, 2001 6:24 PM
> To: David Loszewski
> Cc: freebsd-questions@FreeBSD.ORG
> Subject: Re: subnetmask
>
> On Sat, Oct 27, 2001 at 06:17:50PM -0400, David Loszewski said at one
> point in time:
> > I know by doing netstat -r I can find out a lot of useful info, but
> how
> > would I find out what my subnet is for my external Ethernet?
>
> ravi@happy:[ttypg][6:22pm](2):103:~> ifconfig
> xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
>         inet 198.88.20.7 netmask 0xffffff00 broadcast 198.88.20.255
> [...]
>
> the netmask will tell you that.
>
> -r
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011028123222.W35308-100000>