Re: Network configuration in FreeBSD
- From: Jerry McAllister <jerrymc@xxxxxxx>
- Date: Wed, 30 Jan 2008 14:56:15 -0500
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@xxxxxxxxxxx> 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 <jerrymc@xxxxxxx>
wrote:
On Wed, Jan 30, 2008 at 12:19:33PM -0500, Bhuvaneswari Ramkumar wrote:
ifconfig em0 up also doesnt help ping my LAN.restart
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
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 hadto 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
wahjava.ml@xxxxxxxxx> wrote:
On Wed, Jan 30, 2008 at 12:14 PM, ???????????? Ashish <
the
,--[ On Wednesday 30 Jan 2008, Bhuvaneswari Ramkumar wrote:
| I did have an IP address assigned to my ethernet interface( using
desired| ifconfig command) but I'm unable to ping anybody in my LAN.
In the 'ifconfig -a' output you posted earlier, the 'em0' (your
its UPinterface) 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
--by
doing 'ifconfig em0 up' .
HTH
--
Ashish Shukla ???????????? ???????????????
http://wahjava.wordpress.com/
?-- ?- ???? ?--- ?- ???- ?- ?--?-? --? -- ?- ?? ?-?? ?-?-?- -?-? ---
_______________________________________________freebsd-questions-unsubscribe@xxxxxxxxxxx"
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Network configuration in FreeBSD
- From: Bhuvaneswari Ramkumar
- Re: Network configuration in FreeBSD
- References:
- Re: Network configuration in FreeBSD
- From: Christopher Cowart
- Re: Network configuration in FreeBSD
- From: आशीष Ashish
- Re: Network configuration in FreeBSD
- From: Bhuvaneswari Ramkumar
- Re: Network configuration in FreeBSD
- From: आशीष Ashish
- Re: Network configuration in FreeBSD
- From: Bhuvaneswari Ramkumar
- Re: Network configuration in FreeBSD
- From: Jerry McAllister
- Re: Network configuration in FreeBSD
- From: Bhuvaneswari Ramkumar
- Re: Network configuration in FreeBSD
- From: Bhuvaneswari Ramkumar
- Re: Network configuration in FreeBSD
- Prev by Date: Re: Starting X - was Re: Vista / FreeBSD dual boot
- Next by Date: Re: Network configuration in FreeBSD
- Previous by thread: Re: Network configuration in FreeBSD
- Next by thread: Re: Network configuration in FreeBSD
- Index(es):
Relevant Pages
|