Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 12:29:49 -0400
From:      Terry Dignon <dignont@voyager.bxscience.edu>
To:        questions@FreeBSD.org
Subject:   Re: IP information
Message-ID:  <20020417122949.A8773@voyager.bxscience.edu>
In-Reply-To: <05bf01c1e627$2b298960$fd6e34c6@mlevy>; from moti@flncs.com on Wed, Apr 17, 2002 at 11:47:17AM -0400
References:  <004101c1e60e$1fc1a6c0$0f01a8c0@Bastion> <05bf01c1e627$2b298960$fd6e34c6@mlevy>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <martinss2000@inbox.lv>
> To: <questions@FreeBSD.org>
> 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 
<dignont@bxscience.edu> <aim:ad0s1>
<http://www.bxscience.edu/~dignont>;
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




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