From owner-freebsd-questions Wed Apr 17 9:34:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from voyager.bxscience.edu (voyager.bxscience.edu [167.206.203.44]) by hub.freebsd.org (Postfix) with SMTP id 8141437B404 for ; Wed, 17 Apr 2002 09:34:20 -0700 (PDT) Received: (qmail 8878 invoked by uid 5415); 17 Apr 2002 16:29:49 -0000 Date: Wed, 17 Apr 2002 12:29:49 -0400 From: Terry Dignon To: questions@FreeBSD.org Subject: Re: IP information Message-ID: <20020417122949.A8773@voyager.bxscience.edu> References: <004101c1e60e$1fc1a6c0$0f01a8c0@Bastion> <05bf01c1e627$2b298960$fd6e34c6@mlevy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <05bf01c1e627$2b298960$fd6e34c6@mlevy>; from moti@flncs.com on Wed, Apr 17, 2002 at 11:47:17AM -0400 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 you should do the following at the command line: # ifconfig eth0 there should then be about 6 or so lines of data, most concerning your question to find the dns server, view /etc/resolv.conf and each "nameserver" keyword indicates one..generally the first listed is the one first queried. your gateway will be the default route..you find this by: # netstat -rn | grep default i hope that was a help On Wed, Apr 17, 2002 at 11:47:17AM -0400, Moti wrote: > > ----- Original Message ----- > From: "Martins Struka" > To: > Sent: Wednesday, April 17, 2002 8:48 AM > Subject: IP information > > > > Dear Sir / Madam, > > what comands do I have to use to get all available information (ip, > > netmask, > > network, > workgroup, gateway, DNS server seearch order etc.) about eth0 > > interfaice and other interfaces, for example, an0 (Radio Card)? > > Thank You. > > Martins > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > ifconfig interface name will give you - ip,mac,netmask,network > netstat -nr - will give you gateway > cat /etc/resolv.conf and /etc/host.conf will give you dns servers > workgroup - dont know if you mean nis domain than its cat /etc/defaultdomain > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Terry Dignon Bronx Science Computing "Republicans understand the importance of bondage between a mother and child." Senator Dan Quayle, US News and World Report (10/10/88) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message