From owner-freebsd-questions Sun Oct 28 12:33:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from webs1.accretive-networks.net (webs1.accretive-networks.net [207.246.154.13]) by hub.freebsd.org (Postfix) with ESMTP id 09FBF37B42C for ; Sun, 28 Oct 2001 12:33:12 -0800 (PST) Received: from localhost (davidk@localhost) by webs1.accretive-networks.net (8.11.1/8.11.3) with ESMTP id f9SKX4J35388; Sun, 28 Oct 2001 12:33:04 -0800 (PST) Date: Sun, 28 Oct 2001 12:33:04 -0800 (PST) From: David Kirchner X-X-Sender: To: David Loszewski Cc: "'David Powers'" , Subject: RE: subnetmask In-Reply-To: <000201c16039$1b8ecbb0$3000a8c0@sickness> Message-ID: <20011028123222.W35308-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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