From owner-freebsd-questions@FreeBSD.ORG Wed Jan 30 20:17:00 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B175416A418 for ; Wed, 30 Jan 2008 20:17:00 +0000 (UTC) (envelope-from kayve@sfsu.edu) Received: from iron3.sfsu.edu (iron3.sfsu.edu [130.212.10.128]) by mx1.freebsd.org (Postfix) with ESMTP id 99B3413C455 for ; Wed, 30 Jan 2008 20:17:00 +0000 (UTC) (envelope-from kayve@sfsu.edu) X-onepass: IPPSC X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAFhpoEeC1Apk/2dsb2JhbACwXw Received: from smtp01.sfsu.edu ([130.212.10.100]) by iron3.sfsu.edu with ESMTP; 30 Jan 2008 12:16:51 -0800 Received: from libra.sfsu.edu ([130.212.10.238]) by mail05a.sfsu.edu (Lotus Domino Release 7.0.3HF100) with ESMTP id 2008013012164860-2349 ; Wed, 30 Jan 2008 12:16:48 -0800 Date: Wed, 30 Jan 2008 12:16:48 -0800 (PST) From: KAYVEN RIESE To: Bhuvaneswari Ramkumar In-Reply-To: <7c7927920801301209k59a8e07ft474e46a3149ce158@mail.gmail.com> Message-ID: References: <20080128214202.GO41095@hal.rescomp.berkeley.edu> <200801292108.47352.wahjava.ml@gmail.com> <7c7927920801300847v665e7322ufb512701c0b1070a@mail.gmail.com> <200801302244.25990.wahjava.ml@gmail.com> <7c7927920801300919v4df4786bsc97c8e027dda4e5a@mail.gmail.com> <20080130175155.GA80106@gizmo.acns.msu.edu> <7c7927920801300957m5bb6e402p53f59786fb534a72@mail.gmail.com> <7c7927920801301001p38357709hba158efccfb49113@mail.gmail.com> <20080130195614.GD80674@gizmo.acns.msu.edu> <7c7927920801301209k59a8e07ft474e46a3149ce158@mail.gmail.com> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on MAIL05a/SERVERS/SFSU(Release 7.0.3HF100 | December 5, 2007) at 01/30/2008 12:16:48, Serialize by Router on SMTP01/SERVERS/SFSU(Release 7.0.3|September 26, 2007) at 01/30/2008 12:16:50, Serialize complete at 01/30/2008 12:16:50 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Jerry McAllister , freebsd-questions@freebsd.org Subject: Re: Network configuration in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 20:17:00 -0000 i got my ISP's IP address from some webpage. i am at home running DSL here is what my file looks like kv_bsd# kv_bsd# cat /etc/resolv.conf nameserver 192.168.0.1 kv_bsd# i just had to create that file On Wed, 30 Jan 2008, Bhuvaneswari Ramkumar wrote: > strangely my /etc has no resolv.conf file at all ! > > On Wed, Jan 30, 2008 at 2:56 PM, Jerry McAllister wrote: > >> On Wed, Jan 30, 2008 at 01:01:18PM -0500, Bhuvaneswari Ramkumar wrote: >> >>> Is it a cause of concern if I dont have any route marked as default ? >>> I see so when i use the netstat command >> >> Yes. You need a default router specified because that is the >> address that becomes your gateway to the rest of the network. >> >> You also need a nameserver specified in your /etc/resolv.conf file >> unless you plan to manually specify every other host you wish to talk to. >> >> ////jerry >> >>> >>> On Wed, Jan 30, 2008 at 12:57 PM, Bhuvaneswari Ramkumar < >>> ramkumar@iastate.edu> wrote: >>> >>>> with the above assigned IP address and net-mask I'm reading to make it >>>> work and ping my LAN successfully ( which it doesn't now) before I >> put them >>>> in the rc.conf script. >>>> >>>> >>>> On Wed, Jan 30, 2008 at 12:51 PM, Jerry McAllister >>>> wrote: >>>> >>>>> On Wed, Jan 30, 2008 at 12:19:33PM -0500, Bhuvaneswari Ramkumar >> wrote: >>>>> >>>>>> ifconfig em0 up also doesnt help ping my LAN. >>>>>> >>>>>> the ifconfig -a output now reads the IP I just added, as well as >> the >>>>>> net-mask & the 100 Mbps active linnk. >>>>>> >>>>>> quick question : >>>>>> >>>>>> I did an ifconfig em0 1.1.1.2 yday.should this be done everytime >> I >>>>> restart >>>>>> my application, is it some kind of a temporary address assignment, >>>>> bcos >>>>>> whatever I assigned was not visible today when I re-booted and I >> had >>>>> to do >>>>>> it again, probably I should set this in the conf file also ? maybe >> as >>>>>> another user said my NIC is not enabled or something like that. >>>>> >>>>> You have to put it in /etc/rc.conf so it will be taken care of >> during >>>>> network initialization each time you boot. Everything at startup >>>>> reads the /etc/rc.conf and finds variables it needs to do its >> startup >>>>> and network startup does that too. So, you put in a line like: >>>>> >>>>> ifconfig_em0="inet 1.1.1.2 netmask 255.255.255.0" >>>>> and >>>>> defaultrouter="1.1.1.3" >>>>> >>>>> Amongst a number of other startup settings in /etc/rc.conf >>>>> >>>>> network startup sees those and says 'oh, I know what to do with >> those' >>>>> and runs the ifconfig, etc. >>>>> Note that putting it in rc.cong only causes a 'ifconfig_em0' >> variable >>>>> to be set to "inet 1.1.1.2 netmask 255.255.255.0" >>>>> and the 'defaultrouter' variable to be set to "1.1.1.3" >>>>> It is up to the startup programs to do something about it. >>>>> >>>>> The startup programs are generally run from the /etc/rc script and >>>>> from other scripts that it runs. >>>>> >>>>> ////jerry >>>>> >>>>>> >>>>>> >>>>>> On Wed, Jan 30, 2008 at 12:14 PM, ???????????? Ashish < >>>>> wahjava.ml@gmail.com> wrote: >>>>>> >>>>>>> ,--[ On Wednesday 30 Jan 2008, Bhuvaneswari Ramkumar wrote: >>>>>>> | I did have an IP address assigned to my ethernet interface( >> using >>>>> the >>>>>>> | ifconfig command) but I'm unable to ping anybody in my LAN. >>>>>>> >>>>>>> In the 'ifconfig -a' output you posted earlier, the 'em0' (your >>>>> desired >>>>>>> interface) interface neither has any IP address assigned to it, >> nor >>>>> its UP >>>>>>> . >>>>>>> So, if you've assigned an IP address to 'em0', then also make >> sure >>>>> its UP, >>>>>>> by >>>>>>> doing 'ifconfig em0 up' . >>>>>>> >>>>>>> HTH >>>>>>> -- >>>>>>> Ashish Shukla ???????????? ??????????????? >>>>>>> http://wahjava.wordpress.com/ >>>>>>> ?-- ?- ???? ?--- ?- ???- ?- ?--?-? --? -- ?- ?? ?-?? ?-?-?- -?-? >> --- >>>>> -- >>>>>>> >>>>> >>>>>> _______________________________________________ >>>>>> freebsd-questions@freebsd.org mailing list >>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>>>> To unsubscribe, send any mail to " >>>>> freebsd-questions-unsubscribe@freebsd.org" >>>>> >>>> >>>> >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > *----------------------------------------------------------* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *----------------------------------------------------------*