Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 May 2002 08:34:21 +0530
From:      shubhamr <shubhamr@malkauns.nsc.com>
To:        "Brian T.Schellenberger" <bts@babbleon.org>, "questions@FreeBSD.ORG" <questions@freebsd.org>
Subject:   ifconfig src code?
Message-ID:  <3CD0ACB5.6BF5F69F@malkauns.nsc.com>
References:  <5.1.0.14.0.20020501192418.02cea050@pop.wsonline.net> <3CD09E6F.465D6E03@malkauns.nsc.com> <20020502021829.93459BB29@i8k.babbleon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
I want to know exactly what happens when an ifconfig is done in Free BSD.
I want to know the entire lifecycle of the same.where can I find the src
code/description of ifconfig?

Thanks in advance,
shubha

"Brian T.Schellenberger" wrote:

> On Wednesday 01 May 2002 10:03 pm, shubhamr wrote:
> | I have some questions.It wud be of great help if any of you can answer
> | them.
> |
> | 1)I installed freeBSD4.5 ,but after I boot,the kernel messages keep on
> | coming (some
> | message on getty)and I am not able to even enter anything on the console.If
> | this is
> | because of me booting in wrong init level,
> | which init level am I supposed to be in and I how do I configure so that
> | every time
> | my machine boots,I am in the init level I intend to get into?
>
> It should just happen by default; perhaps there is a problem scanning for
> device or something.
>
> If you could be a little more specific about the message, it would be a big
> help.
>
> Note that ^c will probably break you out of the loop, regardless of the
> cause, until a proper fix can be applied.
>
> | 2)when I do a quick install,I have the src directory /usr/src/sys or
> | /usr/src/share and
> | so on.But when I did a standard install,these are not there and I have some
> | 4 directories under /usr/src..these are secure,kerboros..and so on..what am
> | I supposed
> | to do with these.I tried to make them and was not able to make the
> | /usr/src/secure.even after makingthe kerber..,I did not get the usr/src/sys
> | tree or
> | anything...please tell me what all to do after i did the standard
> | installation so that my
> | FreeBSD OS looks like one..ie,with proper src trees.what are the various
> | things to
> | do..like in quick install I used to make world in /usr/src/...How is it
> | when I install in
> | standard way?,,what are the other makes to be made before my installed OS
> | is complete?
>
> You should not have to make anyting to make the installed OS complete; if you
> want to rebuild a kernel, see the hand book chapter on that.
>
> But a standard install will install the full source if you tell it you want
> the kernel source installed.  During the standard install you tell it what
> sort of install distribution you want; you perhaps picked minimal?  That will
> give you a truly minimal install, no source for rebuilding the system.  It is
> possible to run a system that way.
>
> | 3) If drivers are compiled onto the kernel itself,do kldunload/kldload have
> | any
> |
> | relevance at all?
>
> No.
>
> | I have an intel Network card and it does not ping/connect
> | even if I
> | do a kldload.Only when I reboot,it gives me the connectivity?why is
> | this?How do I
> | remove the drivers already built into the kernel?
>
> Is it really unable to connect to the device?  What does ifconfig show?
> You sure you don't just need a new dhclient or whatever?
>
> | 4)where do I find the kernel prints log?where does the kernel print to as
> | /var/log/messages in Linux?what are these kernel prints?are they printk?
>
> They go to /var/log/messages.
>
> All of your symptoms suggest that something went significantly screwy on your
> install.
>
> You might want to re-install and try to jot down the choices you made, or at
> least copy the exact messages you are or aren't getting.  This would give us
> a fighting chance of providing useful help.
>
> | It wud be of great help if you can reply.I am literally begging for the
> | same.
> |
> | Thanks for your time,
> | shubha
> |
> | RichardH wrote:
> | > This was posted to webhostingtalk.com and the Apacheusers mail list and
> | > still no answers. I think most of them are running small 300 or so user
> | > systems so the idea proposed in the resonse below would be fine for them.
> | > We are looking @ 2000+ users per server (the servers can handle that with
> | > no problem due to their configurations). This will be virtual hosting.
> | > Please check the following and let me know of any ideas on doing this
> | > correctly.
> | > Original post (me):
> | > I have looked all in here and on the net for more specific info on
> | > parsing access logs for multiple user accounts. If I have 300 users on a
> | > server and want to have a "log" directory in each users home directory is
> | > there a script or a simple grep that will pull that users info from the
> | > raw access logs and split/parse the info out to the individual log
> | > directory in each users account so that it can then be viewed by the user
> | > with AWStats, Analog, etc. I know this has to be accomplished failry
> | > easily but cannot find any links or data giving the exact way of doing
> | > it. Any input would be greatly appreciated. OS is FreeBSD4.5 w/Apache Web
> | > Server 1.3.24. Response:
> | > You can just put the TransferLog directive in all of your virtualhosts.
> | > Second post (me):
> | > The only problem with using the transferlog directive, is that for each
> | > an every virtual host entry that is used in the manner, you have another
> | > open file process. In time this will overload your server and create
> | > server slow down.
> | > By parsing out the files with a script, it reduces overall server load
> | > AND permits the use of rewrite rules, that allow you to use a virtmap.txt
> | > type of setup for hosting entries (in which case the transferlog entry
> | > does not work at all).
> | > The transferlog directive is fine for a small production server, where
> | > you are hosting a few accounts, but for a large application, is not such
> | > a wise idea.
> | >
> | > The above post says 300 users as an example, actually looking at 3000+
> | > users per server.
> | >
> | > Any input, tips, etc. would be greatly appreciated.
> | > Thanks,Richard Hutson
> | >
> | > To Unsubscribe: send mail to majordomo@FreeBSD.org
> | > with "unsubscribe freebsd-questions" in the body of the message
> |
> | To Unsubscribe: send mail to majordomo@FreeBSD.org
> | with "unsubscribe freebsd-questions" in the body of the message
>
> --
> Brian T. Schellenberger . . . . . . .   bts@wnt.sas.com (work)
> Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
>                                         http://www.babbleon.org
>
> http://www.eff.org                      http://www.programming-freedom.org
>
> If you smell the smoke you don't need to be told what you've got to do;
> Yet there's a certain breed, so very in-between, they'd rather take a
> vote.   -- DEVO  --  Here To Go
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


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?3CD0ACB5.6BF5F69F>