Re: Network configuration in FreeBSD

2008-01-30 Thread Alphons "Fonz" van Werven

Giorgos Keramidas wrote:


[ in dhclient.conf ]

interface "ath0" {
prepend domain-name-servers 196.168.1.1;
}


Neat. I used another workaround (don't remember exactly what) back then,
but this sure looks tidier.

Something to remember...

Alphons

--
VISTA - Viruses Intruders Spyware Trojans Adware

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Giorgos Keramidas
On 2008-01-30 22:07, Alphons Fonz van Werven <[EMAIL PROTECTED]> wrote:
> Jerry McAllister wrote:
> [/etc/resolv.conf]
> 
>> I think DHCP makes it if you do dynamic
> 
> It did so in 6.1-RELEASE and it's not likely that this has changed.
> In fact, I had to explicitly config DHCP to not overwrite my resolv.conf
> (because I wanted my own DNS server to be queried before the ISP's).

FWIW, there's an option which may help with this:

[ in dhclient.conf ]

interface "ath0" {
prepend domain-name-servers 196.168.1.1;
}

That's what I currently use :)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
no mine is not dynamic and I have the resolv.conf file set-up. It works fine
now.
I had some issues with FTP ing and some address conflict message for
ssh/tcp.  I sysinstalled and disabled SSH there, I guess probably cos inetd
takes care of it and ftp also works fine now, i guess after etc/rc.conf &
resolve.conf were modified

Thanks a lot
Bhuvana

On Wed, Jan 30, 2008 at 5:07 PM, Alphons Fonz van Werven <
[EMAIL PROTECTED]> wrote:

> Jerry McAllister wrote:
>
> [/etc/resolv.conf]
>
> > I think DHCP makes it if you do dynamic
>
> It did so in 6.1-RELEASE and it's not likely that this has changed.
> In fact, I had to explicitly config DHCP to not overwrite my resolv.conf
> (because I wanted my own DNS server to be queried before the ISP's).
>
> Alphons
>
> --
> VISTA - Viruses Intruders Spyware Trojans Adware
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Alphons "Fonz" van Werven

Jerry McAllister wrote:

[/etc/resolv.conf]


I think DHCP makes it if you do dynamic


It did so in 6.1-RELEASE and it's not likely that this has changed.
In fact, I had to explicitly config DHCP to not overwrite my resolv.conf
(because I wanted my own DNS server to be queried before the ISP's).

Alphons

--
VISTA - Viruses Intruders Spyware Trojans Adware

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Jerry McAllister
On Wed, Jan 30, 2008 at 03:09:00PM -0500, Bhuvaneswari Ramkumar wrote:

> strangely my /etc has no resolv.conf file at all !

It will only have one if you make one by setting up networking.
sysinstall makes one if you set up a static IP.  I think DHCP makes
it if you do dynamic, but I don't have much experience with DHCP.

jerry

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread KAYVEN RIESE


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 <[EMAIL PROTECTED]> 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 <
[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
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 <

[EMAIL PROTECTED]> 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 "

[EMAIL PROTECTED]"







___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



*--*
  Kayven Riese, BSCS, MS (Physiology and Biophysics)
  (415) 902 5513 cellular
  http://kayve.net
  Webmaster http://ChessYoga.org
*--*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
strangely my /etc has no resolv.conf file at all !

On Wed, Jan 30, 2008 at 2:56 PM, Jerry McAllister <[EMAIL PROTECTED]> 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 <
> > [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > > 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 <
> > > > [EMAIL PROTECTED]> 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 "
> > > > [EMAIL PROTECTED]"
> > > >
> > >
> > >
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Jerry McAllister
On Wed, Jan 30, 2008 at 01:35:03PM -0500, Bhuvaneswari Ramkumar wrote:

> An explicit call to /etc/netstart tells me that the route & devd with their
> pids are already running - though I dont know if this takes into account the
> new chages I've done & restarts the network.

You will have to do a restart or a -HUP rather than a full start
if things are already up and running.

jerry

> 
> On Wed, Jan 30, 2008 at 1:01 PM, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]>
> 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
> >
> >
> > On Wed, Jan 30, 2008 at 12:57 PM, Bhuvaneswari Ramkumar <
> > [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > > 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 <
> > > > [EMAIL PROTECTED]> 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 "
> > > > [EMAIL PROTECTED]"
> > > >
> > >
> > >
> >
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Jerry McAllister
On Wed, Jan 30, 2008 at 12:57:59PM -0500, Bhuvaneswari Ramkumar 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.

I should mention that the line changes if you are using DHCP for
dynamic IP assignment.Then, your system will query the net for
a DHCP server to assign an IP and other DNS information.  I only
have fixed IPs right now, so I don't know the syntax for that off
the top of my head.   You can look it up.

jerry




> 
> On Wed, Jan 30, 2008 at 12:51 PM, Jerry McAllister <[EMAIL PROTECTED]> 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 <
> > [EMAIL PROTECTED]> 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 "
> > [EMAIL PROTECTED]"
> >
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Jerry McAllister
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 <
> [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > 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 <
> > > [EMAIL PROTECTED]> 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 "
> > > [EMAIL PROTECTED]"
> > >
> >
> >
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
oh yes, I did use the right IP, netmask and interface to be configured.
Now thankfully the LAN pings work, the thing I have to find out now is how
to make ftp work which still keeps saying that hostname or servname not
known

Thanks a lot
Bhuvana


On Wed, Jan 30, 2008 at 2:50 PM, Jerry McAllister <[EMAIL PROTECTED]> wrote:

> On Wed, Jan 30, 2008 at 12:57:59PM -0500, Bhuvaneswari Ramkumar 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.
>
> I am not quite sure what you are asking here, but you do have to
> have the correct IP address and netmask and default router configured.
> You can't just pick numbers out of the air. I just used your
> example numbers in my response.
>
> jerry
>
> >
> > On Wed, Jan 30, 2008 at 12:51 PM, Jerry McAllister <[EMAIL PROTECTED]>
> 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 <
> > > [EMAIL PROTECTED]> 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 "
> > > [EMAIL PROTECTED]"
> > >
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Jerry McAllister
On Wed, Jan 30, 2008 at 12:57:59PM -0500, Bhuvaneswari Ramkumar 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.

I am not quite sure what you are asking here, but you do have to
have the correct IP address and netmask and default router configured.
You can't just pick numbers out of the air. I just used your
example numbers in my response.

jerry

> 
> On Wed, Jan 30, 2008 at 12:51 PM, Jerry McAllister <[EMAIL PROTECTED]> 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 <
> > [EMAIL PROTECTED]> 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 "
> > [EMAIL PROTECTED]"
> >
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Alphons "Fonz" van Werven

Bhuvaneswari Ramkumar wrote:


ok the local LAN ping works now


At the risk of being obvious: please be so smart as to write down
the settings (and try to understand exactly why they are the way they
are) so you don't have to reinvent the wheel next time around.

Alphons

--
VISTA - Viruses Intruders Spyware Trojans Adware

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Michael Ross
On Wed, 30 Jan 2008 19:35:03 +0100, Bhuvaneswari Ramkumar  
<[EMAIL PROTECTED]> wrote:


An explicit call to /etc/netstart tells me that the route & devd with  
their
pids are already running - though I dont know if this takes into account  
the

new chages I've done & restarts the network.


Try
/etc/rc.d/netif restart

followed by
/etc/rc.d/routing restart


Michael


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Reid Linnemann
Written by Bhuvaneswari Ramkumar on 01/30/08 13:02>>
> ok the local LAN ping works now
> 

FYI, the handbook is very helpful.
 
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
ok the local LAN ping works now

On Wed, Jan 30, 2008 at 1:52 PM, आशीष Ashish <[EMAIL PROTECTED]> wrote:

> ,--[ On Wednesday 30 Jan 2008, Bhuvaneswari Ramkumar 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.
>
> BtW, what is your network prefix and subnet mask ? Also mention the IP
> address
> you're trying to ping and IP address and subnet mask, you assigned to your
> box ?
>
> --
> 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 "[EMAIL PROTECTED]"

Re: Network configuration in FreeBSD

2008-01-30 Thread आशीष Ashish
,--[ On Wednesday 30 Jan 2008, Bhuvaneswari Ramkumar 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.

BtW, what is your network prefix and subnet mask ? Also mention the IP address 
you're trying to ping and IP address and subnet mask, you assigned to your 
box ?

-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


signature.asc
Description: This is a digitally signed message part.


Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
An explicit call to /etc/netstart tells me that the route & devd with their
pids are already running - though I dont know if this takes into account the
new chages I've done & restarts the network.

On Wed, Jan 30, 2008 at 1:01 PM, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]>
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
>
>
> On Wed, Jan 30, 2008 at 12:57 PM, Bhuvaneswari Ramkumar <
> [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > 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 <
> > > [EMAIL PROTECTED]> 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 "
> > > [EMAIL PROTECTED]"
> > >
> >
> >
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
Is it a cause of concern if I dont have any route marked as default ?
I see so when i use the netstat command

On Wed, Jan 30, 2008 at 12:57 PM, Bhuvaneswari Ramkumar <
[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> 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 <
> > [EMAIL PROTECTED]> 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 "
> > [EMAIL PROTECTED]"
> >
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
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 <[EMAIL PROTECTED]> 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 <
> [EMAIL PROTECTED]> 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 "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Network configuration in FreeBSD

2008-01-30 Thread Jerry McAllister
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 <[EMAIL PROTECTED]> 
> 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 "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Alphons "Fonz" van Werven

Bhuvaneswari Ramkumar wrote:


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.


Once it works, all this stuff can be put in /etc/rc.conf, don't worry
about that.

Alphons

--
VISTA - Viruses Intruders Spyware Trojans Adware

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
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.


On Wed, Jan 30, 2008 at 12:14 PM, आशीष Ashish <[EMAIL PROTECTED]> 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 "[EMAIL PROTECTED]"

Re: Network configuration in FreeBSD

2008-01-30 Thread आशीष Ashish
,--[ 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/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


signature.asc
Description: This is a digitally signed message part.


Re: Network configuration in FreeBSD

2008-01-30 Thread Bhuvaneswari Ramkumar
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.

On Tue, Jan 29, 2008 at 10:38 AM, आशीष Ashish <[EMAIL PROTECTED]> wrote:

> ,--[ On Tuesday 29 Jan 2008, Giorgos Keramidas wrote:
> | On 2008-01-28 21:03, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
>
> [...]
>
> | Hmmm.  There seems to be something very 'odd' about your interfaces.
> |
> |   * There is no `lo0' loopback interface, which commonly uses the
> | 127.0.0.1 address.
>
> Quoting Bhuvaneswari's output of "ifconfig -a" and "netstat -nr":
>
> --
> #ifconfig -a
>
> em0: flags=8802 mtu 1500
> options=b
> ether :0d:56:f0:f1:ba
> media:Ethernet autoselect (100baseTX )
> status: active
>
> plip0:flags=108810 mtu 1500
> lo0:flags=8049 MTU 16384
> inet 127.0.0.1 netmask 0xff00
> inet ::1 prefixlen 128
> inet6 fe80 :: 1% lo0 prefixlen 64 scopeid 0x3
> --
>
> If you notice in the above there is already a lo0 interface, it is just
> that
> he missed a newline between plip0 and lo0 interface lines. So it seems you
> missed the lo0 interface :) .
>
> So all he has to do is just assign some inet address to 'em0' interface,
> and
> ping other nodes in his LAN :) . And then when done testing IP network in
> LAN, he can add a default route and try connecting to other hosts in the
> internet.
>
> 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 "[EMAIL PROTECTED]"

Re: Network configuration in FreeBSD

2008-01-29 Thread आशीष Ashish
,--[ On Tuesday 29 Jan 2008, Giorgos Keramidas wrote:
| On 2008-01-28 21:03, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:

[...]

| Hmmm.  There seems to be something very 'odd' about your interfaces.
|
|   * There is no `lo0' loopback interface, which commonly uses the
| 127.0.0.1 address.

Quoting Bhuvaneswari's output of "ifconfig -a" and "netstat -nr":

--
#ifconfig -a

em0: flags=8802 mtu 1500
options=b
ether :0d:56:f0:f1:ba
media:Ethernet autoselect (100baseTX )
status: active

plip0:flags=108810 mtu 1500
lo0:flags=8049 MTU 16384
inet 127.0.0.1 netmask 0xff00
inet ::1 prefixlen 128
inet6 fe80 :: 1% lo0 prefixlen 64 scopeid 0x3
--

If you notice in the above there is already a lo0 interface, it is just that 
he missed a newline between plip0 and lo0 interface lines. So it seems you 
missed the lo0 interface :) .

So all he has to do is just assign some inet address to 'em0' interface, and 
ping other nodes in his LAN :) . And then when done testing IP network in 
LAN, he can add a default route and try connecting to other hosts in the 
internet.

HTH
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


signature.asc
Description: This is a digitally signed message part.


Re: Network configuration in FreeBSD

2008-01-28 Thread perryh
> You need to set the default gateway in /etc/rc.conf.  Without a
> default gateway, you will need to add a default route with the
> route command.
>
> Without a route your machine will only be able to ping itself.

Unless something has changed dramatically -- and fairly recently --
a machine that knows its own IP address and netmask should be able
to ping anything on the same subnet as itself (an interface being
implicitly a route to any other IP address on the same subnet).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
ok down works but delete dosent
I guess the 1st one is for disabling the plip interface and the second for
completely removing it , or let me know if I'm getting this wrong here.

ifconfig: 10ctl(SIOCDIFADDR) : cant assign requested address
is this bcos of the down I did before this command ?

once again, thanks for helping out.

Sincerely,
Bhuvana



On Mon, Jan 28, 2008 at 10:40 PM, Giorgos Keramidas <
[EMAIL PROTECTED]> wrote:

> On 2008-01-28 22:33, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> > Giorgos,
> >
> > Thanks a lot for the excellent reply, yes I do have some questions about
> > this but before that:
> >
> > the unplumb operation for pilp0 doesnt work.
> >
> > ifconfig: SIOCIFDESTROY: Invalid argument
> >
> > is the message I get for this.
>
> Ok, it should be sufficient to delete the assigned address from plip0:
>
># ifconfig plip0 down
># ifconfig plip0 delete
>
> Sorry for that; I don't use plip these days, and I couldn't test it :/
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Giorgos Keramidas
On 2008-01-28 22:33, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> Giorgos,
> 
> Thanks a lot for the excellent reply, yes I do have some questions about
> this but before that:
> 
> the unplumb operation for pilp0 doesnt work.
> 
> ifconfig: SIOCIFDESTROY: Invalid argument
> 
> is the message I get for this.

Ok, it should be sufficient to delete the assigned address from plip0:

# ifconfig plip0 down
# ifconfig plip0 delete

Sorry for that; I don't use plip these days, and I couldn't test it :/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
Giorgos,

Thanks a lot for the excellent reply, yes I do have some questions about
this but before that:

the unplumb operation for pilp0 doesnt work.

ifconfig: SIOCIFDESTROY: Invalid argument

is the message I get for this.

Sincerely,
Bhuvana


On Mon, Jan 28, 2008 at 9:37 PM, Giorgos Keramidas <[EMAIL PROTECTED]>
wrote:

> On 2008-01-28 21:03, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> > ok here u go, the exact output of the the commands:
>
> Excellent!  Thank you :-)
>
> > #ifconfig -a
> >
> > em0: flags=8802 mtu 1500
> > options=b
> > ether :0d:56:f0:f1:ba
> > media:Ethernet autoselect (100baseTX )
> > status: active
> >
> > plip0:flags=108810 mtu 1500
> > lo0:flags=8049 MTU 16384
> > inet 127.0.0.1 netmask 0xff00
> > inet ::1 prefixlen 128
> > inet6 fe80 :: 1% lo0 prefixlen 64 scopeid 0x3
>
> See the `active' status and the `media' description?  This means you
> have a network cable connected and FreeBSD has autodetected that you are
> using a full-duplex 100 Mbit/s link.
>
> That's good :)
>
> On 2008-01-28 21:10, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> > the netstat reads:
> >
> > #netstat -nr
> >
> > Routing tables
> >
> > Internet:
> > Destination Gateway  Flags  REfs  Use Netif Expire
> > 127.0.0.1 127.0.0.1   UH041 lo0
> >
> >
> > Internet 6
> >
> > Destination  Gateway  Flags   Netif
> > Expire
> > ::1::1   UH   lo0
> > fe80::%lo0/64   fe80::1%lo0U lo0
> > fe80::1%lo0   link#3 UHL lo0
> > ff01::/32::1  Ulo0
> > ff02 :: %lo0/32  ::1UC  lo0
>
> Hmmm.  There seems to be something very 'odd' about your interfaces.
>
>* There is no `lo0' loopback interface, which commonly uses the
>  127.0.0.1 address.
>
>* The 127.0.0.1 address is assigned to plip0 (IP over parallel
>  port), which seems wrong.
>
>* The em0 interface has no address.
>
> Can you try the following commands, so see if you can *manually* set up
> the interfaces?
>
> 1. Bringing down the 'plip0 interface
> -
>
># ifconfig plip0 unplumb
>
> This should bring down and delete the plip0 interface.  You don't really
> need it when em0 starts working.
>
> 2. Bringing up the `lo0' loopback interface
> ---
>
># ifconfig lo0 inet 127.0.0.1/32 up
>
> This will bring up the `lo0' interface, with the correct address.
>
> 3. Bringing up the em0 interface
> 
>
> Finally, try bringing up the `em0' interface with dhclient OR ifconfig.
> You don't need *both*.  One of them should be sufficient...
>
> 3.1. Using a dynamic/automatic address for em0
> --
>
> If you are using DHCP (automatic address configuration, i.e. from a DSL
> modem, or similar) it should be sufficient to run:
>
># dhclient em0
>
> 3.2. Using a static address for em0
> ---
>
> If you are not using DHCP, and you have a `static' address, like the one
> I use on the workstation I'm using to type this, you should be able to
> use ifconfig like:
>
># ifconfig inet a.b.c.d/count up
>
> where `a.b.c.d' is the IP address you want to assign, and `count' a
> number like `24' or `28'.  The correct settings depends on how your
> network is configured, but an example would look like:
>
># ifconfig em0 192.168.1.180/24 up
>
> 4. Check that em0 really got an address and is "UP"
> ---
>
> Then you should see something like:
>
>em0: flags=8802 mtu 1500
> options=b
>ether :0d:56:f0:f1:ba
> inet 192.168.1.180 netmask 0xff00 broadcast
> 192.168.1.255
> media:Ethernet autoselect (100baseTX )
>status: active
>
> 5. Add the default router/gateway
> -
>
> If you see the "UP" flag in the first line, and you get the `inet' line
> options correctly (address and netmask), the final step should be to
> configure the `default router', i.e.:
>
># route add default 192.168.1.1
>
> 6. Saving it all in `/etc/rc.conf' for the next boot
> 
>
> If you get all the steps right, and you _do_ get connectivity going,
> then you should be able to manually edit the file `/etc/rc.conf' and set
> configure everything by using something similar to:
>
>network_interfaces='lo0 em0'
>ifconfig_lo0='inet 127.0.0.1/32'
>ifconfig_em0='inet 192.168.1.180/24'
>defaultrouter='192.168.1.1'
>
> The syntax is really simple, but if you need an explanation of what it
> all means, please feel free to ask :)
>
> - Giorgos
>
>
>
___
freebsd-questio

Re: Network configuration in FreeBSD

2008-01-28 Thread Giorgos Keramidas
On 2008-01-28 21:03, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> ok here u go, the exact output of the the commands:

Excellent!  Thank you :-)

> #ifconfig -a
> 
> em0: flags=8802 mtu 1500
> options=b
> ether :0d:56:f0:f1:ba
> media:Ethernet autoselect (100baseTX )
> status: active
> 
> plip0:flags=108810 mtu 1500
> lo0:flags=8049 MTU 16384
> inet 127.0.0.1 netmask 0xff00
> inet ::1 prefixlen 128
> inet6 fe80 :: 1% lo0 prefixlen 64 scopeid 0x3

See the `active' status and the `media' description?  This means you
have a network cable connected and FreeBSD has autodetected that you are
using a full-duplex 100 Mbit/s link.

That's good :)

On 2008-01-28 21:10, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> the netstat reads:
> 
> #netstat -nr
> 
> Routing tables
> 
> Internet:
> Destination Gateway  Flags  REfs  Use Netif Expire
> 127.0.0.1 127.0.0.1   UH041 lo0
> 
> 
> Internet 6
> 
> Destination  Gateway  Flags   Netif
> Expire
> ::1::1   UH   lo0
> fe80::%lo0/64   fe80::1%lo0U lo0
> fe80::1%lo0   link#3 UHL lo0
> ff01::/32::1  Ulo0
> ff02 :: %lo0/32  ::1UC  lo0

Hmmm.  There seems to be something very 'odd' about your interfaces.

* There is no `lo0' loopback interface, which commonly uses the
  127.0.0.1 address.

* The 127.0.0.1 address is assigned to plip0 (IP over parallel
  port), which seems wrong.

* The em0 interface has no address.

Can you try the following commands, so see if you can *manually* set up
the interfaces?

1. Bringing down the 'plip0 interface
-

# ifconfig plip0 unplumb

This should bring down and delete the plip0 interface.  You don't really
need it when em0 starts working.

2. Bringing up the `lo0' loopback interface
---

# ifconfig lo0 inet 127.0.0.1/32 up

This will bring up the `lo0' interface, with the correct address.

3. Bringing up the em0 interface


Finally, try bringing up the `em0' interface with dhclient OR ifconfig.
You don't need *both*.  One of them should be sufficient...

3.1. Using a dynamic/automatic address for em0
--

If you are using DHCP (automatic address configuration, i.e. from a DSL
modem, or similar) it should be sufficient to run:

# dhclient em0

3.2. Using a static address for em0
---

If you are not using DHCP, and you have a `static' address, like the one
I use on the workstation I'm using to type this, you should be able to
use ifconfig like:

# ifconfig inet a.b.c.d/count up

where `a.b.c.d' is the IP address you want to assign, and `count' a
number like `24' or `28'.  The correct settings depends on how your
network is configured, but an example would look like:

# ifconfig em0 192.168.1.180/24 up

4. Check that em0 really got an address and is "UP"
---

Then you should see something like:

em0: flags=8802 mtu 1500
options=b
ether :0d:56:f0:f1:ba
inet 192.168.1.180 netmask 0xff00 broadcast 192.168.1.255
media:Ethernet autoselect (100baseTX )
status: active

5. Add the default router/gateway
-

If you see the "UP" flag in the first line, and you get the `inet' line
options correctly (address and netmask), the final step should be to
configure the `default router', i.e.:

# route add default 192.168.1.1

6. Saving it all in `/etc/rc.conf' for the next boot


If you get all the steps right, and you _do_ get connectivity going,
then you should be able to manually edit the file `/etc/rc.conf' and set
configure everything by using something similar to:

network_interfaces='lo0 em0'
ifconfig_lo0='inet 127.0.0.1/32'
ifconfig_em0='inet 192.168.1.180/24'
defaultrouter='192.168.1.1'

The syntax is really simple, but if you need an explanation of what it
all means, please feel free to ask :)

- Giorgos


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
the netstat reads:

#netstat -nr

Routing tables

Internet:
Destination Gateway  Flags  REfs  Use Netif Expire
127.0.0.1 127.0.0.1   UH041 lo0


Internet 6

Destination  Gateway  Flags   Netif
Expire
::1::1   UH   lo0
fe80::%lo0/64   fe80::1%lo0U lo0
fe80::1%lo0   link#3 UHL lo0
ff01::/32::1  Ulo0
ff02 :: %lo0/32  ::1UC  lo0


On Mon, Jan 28, 2008 at 9:03 PM, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]>
wrote:

> ok here u go, the exact output of the the commands:
>
> #ifconfig -a
>
> em0: flags=8802 mtu 1500
> options=b
> ether :0d:56:f0:f1:ba
> media:Ethernet autoselect (100baseTX )
> status: active
>
> plip0:flags=108810 mtu 1500
> lo0:flags=8049 MTU 16384
> inet 127.0.0.1 netmask 0xff00
> inet ::1 prefixlen 128
> inet6 fe80 :: 1% lo0 prefixlen 64 scopeid 0x3
>
>
> On Mon, Jan 28, 2008 at 8:06 PM, Giorgos Keramidas <
> [EMAIL PROTECTED]> wrote:
>
> > On 2008-01-28 18:18, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> > > On Mon, Jan 28, 2008 at 4:42 PM, Christopher Cowart <
> > [EMAIL PROTECTED]> wrote:
> > > >
> > > > Send the list the output of the following commands:
> > > > # ifconfig -a
> > > > # netstat -rn
> > > >
> > > > With that info, we can probably help you out better.
> > >
> > > ifconfig -a
> > >
> > > em0:  flags ...lot of data .
> > > status: active
> > >
> > > ( I'm guessing this is the ethernet interface)
> > >
> > > netstat -rn
> > >
> > > routing tables:
> > > Internet :
> > > 127.0.0.1  ..followed by some IPs, flags(UH), etc ..
> > >
> > > Internet6
> > > expire followed by some hex-values and flags
> > >
> > > would this do or more specifics needed ?
> >
> > Not really, no.  You are supposed to show the *exact* output of
> > commands, if you expect more useful answers.
> >
> > Now, I understand that without networking, it may be tricky to capture
> > the output and post it in an email message.
> >
> > If you have a floppy disk you can use the floppy to capture the output
> > of these commands, i.e. by mounting it:
> >
> ># cd /root
> ># mount -t msdosfs /dev/fd0 /mnt
> ># ifconfig -a > /mnt/ifconfig.txt
> ># netstat -rn > /mnt/netstat.txt
> ># umount /mnt
> >
> > If you have a USB flash drive, you can mount that too (assuming it has a
> > single FAT partition):
> >
> >( plug the USB flash disk into a USB socket )
> >
> ># cd /root
> ># mount -t msdosfs /dev/da0s1 /mnt
> ># ifconfig -a > /mnt/ifconfig.txt
> ># netstat -rn > /mnt/netstat.txt
> ># umount /mnt
> >
> >( unplug the flash disk )
> >
> > It will help immensely if you post the *exact* output of the commands
> > mentioned by Christopher.
> >
> > - Giorgos
> >
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > [EMAIL PROTECTED]"
> >
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
ok here u go, the exact output of the the commands:

#ifconfig -a

em0: flags=8802 mtu 1500
options=b
ether :0d:56:f0:f1:ba
media:Ethernet autoselect (100baseTX )
status: active

plip0:flags=108810 mtu 1500
lo0:flags=8049 MTU 16384
inet 127.0.0.1 netmask 0xff00
inet ::1 prefixlen 128
inet6 fe80 :: 1% lo0 prefixlen 64 scopeid 0x3

On Mon, Jan 28, 2008 at 8:06 PM, Giorgos Keramidas <[EMAIL PROTECTED]>
wrote:

> On 2008-01-28 18:18, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> > On Mon, Jan 28, 2008 at 4:42 PM, Christopher Cowart <
> [EMAIL PROTECTED]> wrote:
> > >
> > > Send the list the output of the following commands:
> > > # ifconfig -a
> > > # netstat -rn
> > >
> > > With that info, we can probably help you out better.
> >
> > ifconfig -a
> >
> > em0:  flags ...lot of data .
> > status: active
> >
> > ( I'm guessing this is the ethernet interface)
> >
> > netstat -rn
> >
> > routing tables:
> > Internet :
> > 127.0.0.1  ..followed by some IPs, flags(UH), etc ..
> >
> > Internet6
> > expire followed by some hex-values and flags
> >
> > would this do or more specifics needed ?
>
> Not really, no.  You are supposed to show the *exact* output of
> commands, if you expect more useful answers.
>
> Now, I understand that without networking, it may be tricky to capture
> the output and post it in an email message.
>
> If you have a floppy disk you can use the floppy to capture the output
> of these commands, i.e. by mounting it:
>
># cd /root
># mount -t msdosfs /dev/fd0 /mnt
># ifconfig -a > /mnt/ifconfig.txt
># netstat -rn > /mnt/netstat.txt
># umount /mnt
>
> If you have a USB flash drive, you can mount that too (assuming it has a
> single FAT partition):
>
>( plug the USB flash disk into a USB socket )
>
># cd /root
># mount -t msdosfs /dev/da0s1 /mnt
># ifconfig -a > /mnt/ifconfig.txt
># netstat -rn > /mnt/netstat.txt
># umount /mnt
>
>( unplug the flash disk )
>
> It will help immensely if you post the *exact* output of the commands
> mentioned by Christopher.
>
> - Giorgos
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
ifconfig -a

em0:  flags ...lot of data .
status: active

( I'm guessing this is the ethernet interface)

lo0: similar stuff as em0

and my var/log/messages has a lot of data in it, I dont know if I'm
identifying a boot message accurately but there is a line that specifies the
location of a kernel boot file as /boot/kernel.I dont know if
this is just default message present here



On Mon, Jan 28, 2008 at 7:00 PM, Alphons Fonz van Werven <
[EMAIL PROTECTED]> wrote:

> Bhuvaneswari Ramkumar wrote:
>
> > I'm guessing it does detect the interface, network-device & all that,
> bcos
> > my ifconfig says the ethernet status is active. But still I'm unable to
> do
> > any kind of networking at all, even pings from other PCs to this one
> remain
> > unreachable. I'm wondering if I should configure something else in the
> > sysinstall or the rc.conf file.
>
> Hehe. Network problem solving often seems more about magic than about
> logic...
>
> Anyway, for starters, can you send me the output of ifconfig -a?
> Also, if your NIC got detected, there should be some boot messages in
> /var/log/messages. You might want to check on that.
>
> Alphons
>
> --
> VISTA - Viruses Intruders Spyware Trojans Adware
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Giorgos Keramidas
On 2008-01-28 18:18, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]> wrote:
> On Mon, Jan 28, 2008 at 4:42 PM, Christopher Cowart <[EMAIL PROTECTED]> wrote:
> >
> > Send the list the output of the following commands:
> > # ifconfig -a
> > # netstat -rn
> >
> > With that info, we can probably help you out better.
>
> ifconfig -a
>
> em0:  flags ...lot of data .
> status: active
>
> ( I'm guessing this is the ethernet interface)
>
> netstat -rn
>
> routing tables:
> Internet :
> 127.0.0.1  ..followed by some IPs, flags(UH), etc ..
>
> Internet6
> expire followed by some hex-values and flags
>
> would this do or more specifics needed ?

Not really, no.  You are supposed to show the *exact* output of
commands, if you expect more useful answers.

Now, I understand that without networking, it may be tricky to capture
the output and post it in an email message.

If you have a floppy disk you can use the floppy to capture the output
of these commands, i.e. by mounting it:

# cd /root
# mount -t msdosfs /dev/fd0 /mnt
# ifconfig -a > /mnt/ifconfig.txt
# netstat -rn > /mnt/netstat.txt
# umount /mnt

If you have a USB flash drive, you can mount that too (assuming it has a
single FAT partition):

( plug the USB flash disk into a USB socket )

# cd /root
# mount -t msdosfs /dev/da0s1 /mnt
# ifconfig -a > /mnt/ifconfig.txt
# netstat -rn > /mnt/netstat.txt
# umount /mnt

( unplug the flash disk )

It will help immensely if you post the *exact* output of the commands
mentioned by Christopher.

- Giorgos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Derek Ragona

At 05:38 PM 1/28/2008, Bhuvaneswari Ramkumar wrote:

I'm guessing it does detect the interface, network-device & all that, bcos
my ifconfig says the ethernet status is active. But still I'm unable to do
any kind of networking at all, even pings from other PCs to this one remain
unreachable. I'm wondering if I should configure something else in the
sysinstall or the rc.conf file.


On Mon, Jan 28, 2008 at 6:18 PM, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]>
wrote:

> ifconfig -a
>
> em0:  flags ...lot of data .
> status: active
>
> ( I'm guessing this is the ethernet interface)
>
>
> netstat -rn
>
> routing tables:
> Internet :
> 127.0.0.1  ..followed by some IPs, flags(UH), etc ..
>
> Internet6
> expire followed by some hex-values and flags
>
>
> would this do or more specifics needed ?
>
>
>
>
> On Mon, Jan 28, 2008 at 4:42 PM, Christopher Cowart <
> [EMAIL PROTECTED]> wrote:
>
> > On Mon, Jan 28, 2008 at 04:29:49PM -0500, Bhuvaneswari Ramkumar wrote:
> > > I'm a newbie FreeBSD user, I've just installed the 5.5 version.
> > > I know this is a very silly question but I've searched the archives
> > and any
> > > suggestions are welcome.
> > >
> > > I think my system is not connected to the internet or any external
> > network,
> > > ping dosent work ( nor ftp or dig)
> > >
> > > When I try to do a post-install configuration and choose to enable the
> > inetd
> > > daemon option from the sysinstall, it doesnt invoke the editor to
> > change the
> > > inetd.conf at all, so I did a root-login and enabled ftp, even pftp
> > and
> > > other services in the file as mentioned in the installation document.
> >
> > This file affects running an ftp server, not an ftp client from the
> > command line.
> >
> > > But still I'm unable to ftp to any server, the message I get is ftp:
> > > hostname or servname not known or not provided.
> > >
> > > Do you guys have any ideas ?
> >
> > Send the list the output of the following commands:
> > # ifconfig -a
> > # netstat -rn
> >
> > With that info, we can probably help you out better.
> >
> > --
> > Chris Cowart
> > Network Technical Lead
> > Network & Infrastructure Services, RSSP-IT
> > UC Berkeley
> >
>
>
__


You need to set the default gateway in /etc/rc.conf.  Without a default 
gateway, you will need to add a default route with the route command.


Without a route your machine will only be able to ping itself.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
I'm guessing it does detect the interface, network-device & all that, bcos
my ifconfig says the ethernet status is active. But still I'm unable to do
any kind of networking at all, even pings from other PCs to this one remain
unreachable. I'm wondering if I should configure something else in the
sysinstall or the rc.conf file.


On Mon, Jan 28, 2008 at 6:18 PM, Bhuvaneswari Ramkumar <[EMAIL PROTECTED]>
wrote:

> ifconfig -a
>
> em0:  flags ...lot of data .
> status: active
>
> ( I'm guessing this is the ethernet interface)
>
>
> netstat -rn
>
> routing tables:
> Internet :
> 127.0.0.1  ..followed by some IPs, flags(UH), etc ..
>
> Internet6
> expire followed by some hex-values and flags
>
>
> would this do or more specifics needed ?
>
>
>
>
> On Mon, Jan 28, 2008 at 4:42 PM, Christopher Cowart <
> [EMAIL PROTECTED]> wrote:
>
> > On Mon, Jan 28, 2008 at 04:29:49PM -0500, Bhuvaneswari Ramkumar wrote:
> > > I'm a newbie FreeBSD user, I've just installed the 5.5 version.
> > > I know this is a very silly question but I've searched the archives
> > and any
> > > suggestions are welcome.
> > >
> > > I think my system is not connected to the internet or any external
> > network,
> > > ping dosent work ( nor ftp or dig)
> > >
> > > When I try to do a post-install configuration and choose to enable the
> > inetd
> > > daemon option from the sysinstall, it doesnt invoke the editor to
> > change the
> > > inetd.conf at all, so I did a root-login and enabled ftp, even pftp
> > and
> > > other services in the file as mentioned in the installation document.
> >
> > This file affects running an ftp server, not an ftp client from the
> > command line.
> >
> > > But still I'm unable to ftp to any server, the message I get is ftp:
> > > hostname or servname not known or not provided.
> > >
> > > Do you guys have any ideas ?
> >
> > Send the list the output of the following commands:
> > # ifconfig -a
> > # netstat -rn
> >
> > With that info, we can probably help you out better.
> >
> > --
> > Chris Cowart
> > Network Technical Lead
> > Network & Infrastructure Services, RSSP-IT
> > UC Berkeley
> >
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Jerry McAllister
On Mon, Jan 28, 2008 at 04:29:49PM -0500, Bhuvaneswari Ramkumar wrote:

> Hi,
> 
> I'm a newbie FreeBSD user, I've just installed the 5.5 version.
> I know this is a very silly question but I've searched the archives and any
> suggestions are welcome.
> 
> I think my system is not connected to the internet or any external network,
> ping dosent work ( nor ftp or dig)
> 
> When I try to do a post-install configuration and choose to enable the inetd
> daemon option from the sysinstall, it doesnt invoke the editor to change the
> inetd.conf at all, so I did a root-login and enabled ftp, even pftp and
> other services in the file as mentioned in the installation document.
> 
> But still I'm unable to ftp to any server, the message I get is ftp:
> hostname or servname not known or not provided.
> 
> Do you guys have any ideas ?

Well, the first thing is to learn about 'ifconfig'
Start with the handbook and the man pages.
>From there, you will branch out to other network documentation.

Anyway, it sounds like you did not configure or start any
network device (NIC - Network Interface Card).

jerry

> 
> Thanks
> Bhuvana
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
I configured the ethernet interface in the post-install config with my IP
and net-mask, though I didnt know the gateway then. It gave me a warning
that I might not be able to access remote machines, but that still dosent
explain why it wont even ping the next node in my LAN. The rc.conf file does
have some lines, are we looking for something specific here or should I
key-in the gateway data b4 expecting anything else ?

On Mon, Jan 28, 2008 at 4:39 PM, Brian <[EMAIL PROTECTED]> wrote:

> Bhuvaneswari Ramkumar wrote:
> > Hi,
> >
> > I'm a newbie FreeBSD user, I've just installed the 5.5 version.
> > I know this is a very silly question but I've searched the archives and
> any
> > suggestions are welcome.
> >
> > I think my system is not connected to the internet or any external
> network,
> > ping dosent work ( nor ftp or dig)
> >
> > When I try to do a post-install configuration and choose to enable the
> inetd
> > daemon option from the sysinstall, it doesnt invoke the editor to change
> the
> > inetd.conf at all, so I did a root-login and enabled ftp, even pftp and
> > other services in the file as mentioned in the installation document.
> >
> > But still I'm unable to ftp to any server, the message I get is ftp:
> > hostname or servname not known or not provided.
> >
> > Do you guys have any ideas ?
> >
> > Thanks
> > Bhuvana
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
> >
> Interesting that you chose 5.5 for a new install, most anyone would
> recommend something newer.  Having said that, is the ether interface
> enabled?  If you run sysinstall, and select post install config, then
> networking, then the interface in question, try to view/config it based
> on the parameters your isp gave you.  When you're done you should see
> some lines in /etc/rc.conf specific to your config.  Be careful with
> this file.
>
>
> Brian
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
ifconfig -a

em0:  flags ...lot of data .
status: active

( I'm guessing this is the ethernet interface)


netstat -rn

routing tables:
Internet :
127.0.0.1  ..followed by some IPs, flags(UH), etc ..

Internet6
expire followed by some hex-values and flags


would this do or more specifics needed ?



On Mon, Jan 28, 2008 at 4:42 PM, Christopher Cowart <
[EMAIL PROTECTED]> wrote:

> On Mon, Jan 28, 2008 at 04:29:49PM -0500, Bhuvaneswari Ramkumar wrote:
> > I'm a newbie FreeBSD user, I've just installed the 5.5 version.
> > I know this is a very silly question but I've searched the archives and
> any
> > suggestions are welcome.
> >
> > I think my system is not connected to the internet or any external
> network,
> > ping dosent work ( nor ftp or dig)
> >
> > When I try to do a post-install configuration and choose to enable the
> inetd
> > daemon option from the sysinstall, it doesnt invoke the editor to change
> the
> > inetd.conf at all, so I did a root-login and enabled ftp, even pftp and
> > other services in the file as mentioned in the installation document.
>
> This file affects running an ftp server, not an ftp client from the
> command line.
>
> > But still I'm unable to ftp to any server, the message I get is ftp:
> > hostname or servname not known or not provided.
> >
> > Do you guys have any ideas ?
>
> Send the list the output of the following commands:
> # ifconfig -a
> # netstat -rn
>
> With that info, we can probably help you out better.
>
> --
> Chris Cowart
> Network Technical Lead
> Network & Infrastructure Services, RSSP-IT
> UC Berkeley
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Wojciech Puchar

I'm a newbie FreeBSD user, I've just installed the 5.5 version.
I know this is a very silly question but I've searched the archives and any
suggestions are welcome.


RTFM

begin with

/usr/share/doc/en_US.ISO8859-1/books/handbook/handbook.txt (or html what 
you prefer)



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Christopher Cowart
On Mon, Jan 28, 2008 at 04:29:49PM -0500, Bhuvaneswari Ramkumar wrote:
> I'm a newbie FreeBSD user, I've just installed the 5.5 version.
> I know this is a very silly question but I've searched the archives and any
> suggestions are welcome.
> 
> I think my system is not connected to the internet or any external network,
> ping dosent work ( nor ftp or dig)
> 
> When I try to do a post-install configuration and choose to enable the inetd
> daemon option from the sysinstall, it doesnt invoke the editor to change the
> inetd.conf at all, so I did a root-login and enabled ftp, even pftp and
> other services in the file as mentioned in the installation document.

This file affects running an ftp server, not an ftp client from the
command line.

> But still I'm unable to ftp to any server, the message I get is ftp:
> hostname or servname not known or not provided.
> 
> Do you guys have any ideas ?

Send the list the output of the following commands:
# ifconfig -a
# netstat -rn

With that info, we can probably help you out better.

-- 
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley


pgpdTB3co0zcU.pgp
Description: PGP signature


Re: Network configuration in FreeBSD

2008-01-28 Thread Nerius Landys
>
> I'm a newbie FreeBSD user, I've just installed the 5.5 version.
> I know this is a very silly question but I've searched the archives and
> any
> suggestions are welcome.
>
> I think my system is not connected to the internet or any external
> network,
> ping dosent work ( nor ftp or dig)
>
> When I try to do a post-install configuration and choose to enable the
> inetd
> daemon option from the sysinstall, it doesnt invoke the editor to change
> the
> inetd.conf at all, so I did a root-login and enabled ftp, even pftp and
> other services in the file as mentioned in the installation document.
>
> But still I'm unable to ftp to any server, the message I get is ftp:
> hostname or servname not known or not provided.
>
> Do you guys have any ideas ?
>

The standard install should have asked you if you want to configure your
network device.  The questions it would ask is which device to configure,
and whether to try to configure DHCP, and whether to try to configure IPv6.
It would then ask you, during install, whether to try to "bring up the
network interface now?"

If these questions were not part of the install, then something is not
right, and someone else on this board might help you.  My guess (I'm a
newbie too) is that perhaps the network device was not recognized by FreeBSD
5.5?

It's always possible to do network configuration post-install.  I'd find
some documentation on that in the handbook.  I think the file that
configures the network is rc.local or something.  But first make sure the
kernel recognized the network device.  You might have to put something in
/boot/loader.conf to load a kernel module for your network device?  But
inetd and ftp server and what not have nothing to do with your network
actually working, so you were barking up the wrong tree.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2008-01-28 Thread Brian

Bhuvaneswari Ramkumar wrote:

Hi,

I'm a newbie FreeBSD user, I've just installed the 5.5 version.
I know this is a very silly question but I've searched the archives and any
suggestions are welcome.

I think my system is not connected to the internet or any external network,
ping dosent work ( nor ftp or dig)

When I try to do a post-install configuration and choose to enable the inetd
daemon option from the sysinstall, it doesnt invoke the editor to change the
inetd.conf at all, so I did a root-login and enabled ftp, even pftp and
other services in the file as mentioned in the installation document.

But still I'm unable to ftp to any server, the message I get is ftp:
hostname or servname not known or not provided.

Do you guys have any ideas ?

Thanks
Bhuvana
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  
Interesting that you chose 5.5 for a new install, most anyone would 
recommend something newer.  Having said that, is the ether interface 
enabled?  If you run sysinstall, and select post install config, then 
networking, then the interface in question, try to view/config it based 
on the parameters your isp gave you.  When you're done you should see 
some lines in /etc/rc.conf specific to your config.  Be careful with 
this file.



Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Network configuration in FreeBSD

2008-01-28 Thread Bhuvaneswari Ramkumar
Hi,

I'm a newbie FreeBSD user, I've just installed the 5.5 version.
I know this is a very silly question but I've searched the archives and any
suggestions are welcome.

I think my system is not connected to the internet or any external network,
ping dosent work ( nor ftp or dig)

When I try to do a post-install configuration and choose to enable the inetd
daemon option from the sysinstall, it doesnt invoke the editor to change the
inetd.conf at all, so I did a root-login and enabled ftp, even pftp and
other services in the file as mentioned in the installation document.

But still I'm unable to ftp to any server, the message I get is ftp:
hostname or servname not known or not provided.

Do you guys have any ideas ?

Thanks
Bhuvana
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2004-07-08 Thread Steve Bertrand
>> Am new to FreeBSD... just installed it for 2nd time today, but don't
>> know what
>> I did that it didn't ask me for the network configuration (ip, domain,
>> etc)... once installed, is there a command to perform that task?
>>
>> I'm linux user, so am familiar to *nix systems, but don't know how to
>> configure the network specifically on freebsd...

I certainly agree with the suggestions to RTFM (Handbook), as well as
sysinstall, but just for the record, the following is how you can do it
from the command line. Let's assume that your network adapter is using the
device name vr0 (you can look this up using the # ifconfig command), your
IP address will be 192.168.0.10, your subnet mask is 255.255.255.0 your
hostname is mybox.example.com, your DNS servers are 10.0.0.1 and 10.0.0.2
and finally, your default gateway is 192.168.0.1:

First, edit /etc/rc.conf and add the following lines (include the quotes):

ifconfig_vr0="inet 192.168.0.10 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
hostname="mybox.example.com"

Next, edit /etc/resolv.conf and add these lines:

search example.com
nameserver 10.0.0.1
nameserver 10.0.0.2

Now, to enable things as to not have to reboot, run the following commands:

# ifconfig vr0 192.168.0.10/24
# route add default 192.168.0.1

Unless you have a firewall, you should now be able to connect to other hosts.

Regards,

Steve

>
> As another person suggested, try checking out the FreeBSD Handbook at
> freebsd.org, which pretty much describes everything you need to know
> when getting started w/FBSD.
>
> Since, no one has suggested this yet, I will:  you can go back into the
> installer utility by running /stand/sysinstall.  The installer comes in
> handy quite a bit when you don't know the actually commands to do
> something (ie setting up a network interface or partitioning a disk).
>
> Once you run /stand/sysinstall, you can scroll all the way to the bottom
> and select 'Index' and then select 'Network Interfaces'.
>
> HTH
> --
> Don't you wish that all the people who sincerely want to help you
> could agree with each other?
>
> /*  Aaron Walker
>   *  http://butsugenjitemple.org/~ka0ttic/
>   */
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2004-07-08 Thread Aaron Walker
Miguel Cardenas wrote:
Hello
Am new to FreeBSD... just installed it for 2nd time today, but don't know what 
I did that it didn't ask me for the network configuration (ip, domain, 
etc)... once installed, is there a command to perform that task?

I'm linux user, so am familiar to *nix systems, but don't know how to 
configure the network specifically on freebsd...

Thanks for any comment,
Mike
As another person suggested, try checking out the FreeBSD Handbook at 
freebsd.org, which pretty much describes everything you need to know 
when getting started w/FBSD.

Since, no one has suggested this yet, I will:  you can go back into the 
installer utility by running /stand/sysinstall.  The installer comes in 
handy quite a bit when you don't know the actually commands to do 
something (ie setting up a network interface or partitioning a disk).

Once you run /stand/sysinstall, you can scroll all the way to the bottom 
and select 'Index' and then select 'Network Interfaces'.

HTH
--
Don't you wish that all the people who sincerely want to help you
could agree with each other?
/*  Aaron Walker
 *  http://butsugenjitemple.org/~ka0ttic/
 */
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2004-07-08 Thread Kjell Midtseter
On 8 Jul 2004 at 1:52, Miguel Cardenas wrote:

> Hello
> 
> Am new to FreeBSD... just installed it for 2nd time today, but don't know what 
> I did that it didn't ask me for the network configuration (ip, domain, 
When you got to the HD partitioning in the beginning of setup you should have deleted 
the entire disk, then repartitioned it. If you kept the partitioning from your first 
install the 
setup routine will look in the excisting folders and use what it finds there
> etc)... once installed, is there a command to perform that task?
It all goes into the /etc/rc.conf file. Use your editor to make changes if you do not 
like 
what you find.
> 
> I'm linux user, so am familiar to *nix systems, but don't know how to 
> configure the network specifically on freebsd...
> 
> Thanks for any comment,
> Mike
kjell

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network configuration in FreeBSD

2004-07-07 Thread uidzero
Miguel Cardenas wrote:
Hello
Am new to FreeBSD... just installed it for 2nd time today, but don't know what 
I did that it didn't ask me for the network configuration (ip, domain, 
etc)... once installed, is there a command to perform that task?

I'm linux user, so am familiar to *nix systems, but don't know how to 
configure the network specifically on freebsd...

Thanks for any comment,
Mike
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html
The FreeBSD Handbook literally covers everything "basic" to FreeBSD. 
Give that a try. :)

Michael
--
Michael D. Whities
[EMAIL PROTECTED]
http://www.one-arm.com
--
There are four colors of hats to watch for: 
Black, White, Grey, and Red.

The meanings are: 
Cracker, Hacker, Guru, and Victim.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Network configuration in FreeBSD

2004-07-07 Thread Miguel Cardenas
Hello

Am new to FreeBSD... just installed it for 2nd time today, but don't know what 
I did that it didn't ask me for the network configuration (ip, domain, 
etc)... once installed, is there a command to perform that task?

I'm linux user, so am familiar to *nix systems, but don't know how to 
configure the network specifically on freebsd...

Thanks for any comment,
Mike

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"