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: Trying to setup a serial console on my desktop

2008-01-30 Thread आशीष Ashish
,--[ On Sunday 20 Jan 2008, WATANABE Kazuhiro wrote:
| Hello.

[...]

| loader.conf(5) says:
| | comconsole_speed
| |   (``9600'' or the value of the BOOT_COMCONSOLE_SPEED vari-
| |   able when loader(8) was compiled).  Sets the speed of the
| |   serial console.  If the previous boot loader stage speci-
| |   fied that a serial console is in use then the default
| |   speed is determined from the current serial port speed
| |   setting.
|
| If you specify to use a serial console via /boot.config and
| want to change the speed from 9600bps (default), you need to add
| the -S speed flag to your /boot.config.  See boot(8) for details.

By me specifying use of serial console via /boot.config, you mean '-D'
option, which I specified in /boot.config, hmm...?

If yes, then this means it'll override 'console' setting I specified
in loader.conf, hmm...? e.g. if I specified 'console=vidconsole' in
'loader.conf', but has '-D' in /boot.config, will I get output on both
serial and internal console, hmm...?

And BtW, if I specify anything at loader prompt, e.g. set
comconsole_speed=115200, it works, i.e. I can connect to serial
console at 115200 bps. So won't values specified at loader prompt have
same priority as values specified in loader.conf, hmm... ? Sorry I'm
bit confused regarding which gets priority, 'loader.conf' or
'boot.config'.

|  2. Keyboard doesn't work irrespective of '-P' being present in
|  /boot.config . So I can't login to any TTY or login to X via GDM.
| 
|  I'm following
|  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-s
| etup.html
|
| Is a login prompt displayd to the video console?

I asked GDM service to start at startup. So I get a GDM GUI, but I
can't use my keyboard to enter my username there, not I'll be able to
switch TTYs, though mouse is working fine.

| If not, the system boot sequence may have been stopped at some kinds
| of daemon (sshd, sendmail, etc.).

I've all my hostname, and DNS stuff set up correctly, so there isn't
problem of any kind, as I see messages of sendmail, sshd starting on
my serial console at 9600bps. BtW, only 'dmesg' message appears on my
video console, whereas all kind of messages appear on serial console,
do I need some changes in syslog too to get all messages also on my
video console, hmm...?

TIA
-- 
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 आशीष 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-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=8802BROADCAST, SIMPLEX, MULTICAST mtu 1500
options=bRXSCUM, TXSCUM, VLAN_MTU
ether :0d:56:f0:f1:ba
media:Ethernet autoselect (100baseTX full-duplex)
status: active

plip0:flags=108810POINTTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0:flags=8049UP, LOOPBACK,RUNNING,MULTICAST 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.