Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 15:55:16 -0500
From:      Mike Hauber <m.hauber@mchsi.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Hello List
Message-ID:  <200411101555.16659.m.hauber@mchsi.com>
In-Reply-To: <d014caa504111005201fb69ebb@mail.gmail.com>
References:  <d014caa5041110014539e5e831@mail.gmail.com> <200411100700.12410.m.hauber@mchsi.com> <d014caa504111005201fb69ebb@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 10 November 2004 08:20 am, Ben Haysom=20
proclaimed:
>
> god# uname -a
> FreeBSD god.mshome.net 5.1-RELEASE FreeBSD 5.1-RELEASE
> #0: Thu Jun =A05 02:55:42 GMT 2003
> root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC=20
> i386
>
> god# =A0ifconfig -a
> rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
> mtu 1500 inet 192.168.1.2 netmask 0xffffff00 broadcast
> 192.168.1.255 inet6 fe80::205:5dff:fe42:713e%rl0
> prefixlen 64 scopeid 0x1 ether 00:05:5d:42:71:3e
> =A0 =A0 =A0 =A0 media: Ethernet autoselect (none)
> =A0 =A0 =A0 =A0 status: no carrier
> sis0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
> mtu 1500 inet6 fe80::240:f4ff:fe59:68ed%sis0 prefixlen 64
> scopeid 0x2 inet 192.168.0.36 netmask 0xffffff00
> broadcast 192.168.0.255 ether 00:40:f4:59:68:ed
> =A0 =A0 =A0 =A0 media: Ethernet autoselect (10baseT/UTP)
> =A0 =A0 =A0 =A0 status: active

Okay, so let's look at this...

ISP -- modem -- rl0 -- fbsd -- sis0 -- LAN

The kernal obviously has the drivers up and running (else=20
the output of ifconfig wouldn't have shown the interfaces)

=46or _some_ reason, rl0 is showing a status of "no carrier."

This tells me one of two things...

1. =A0The cable between rl0 and the modem is not connected.
2. =A0The cable is faulty.

If the NIC has lights on it, you should be able to tell by=20
the status light on the NIC.

>
> god# more /etc/rc.conf
>
> gateway_enable=3D"YES"
> hostname=3D"god.mshome.net"
> inetd_enable=3D"YES"
> sendmail_enable=3D"NO"
> sshd_enable=3D"YES"
> ifconfig_sis0=3D"inet 192.168.0.2 netmask 255.255.255.0"
> sendmail_enable=3D"YES"
> nfs_server_enable=3D"NO"
> sshd_enable=3D"YES"
> ifconfig_rl0=3D"inet 192.168.1.2 =A0netmask 255.255.255.0"
> defaultrouter=3D"192.168.1.1"
> linux_enable=3D"YES"
> sendmail_enable=3D"NONE"
> nis_server_enable=3D"YES"
> nis_client_enable=3D"NO"
> rpcbind_enable=3D"YES"
> ifconfig_sis0=3D"DHCP"
> hostname=3D"god.mshome.net"
>

Lots of repeats/changes, but let's see...

You have DHCP set up on sis0, but you do not have DHCP set=20
up on rl0. =A0Is there a reason for this? =A0I always ran DHCP=20
and let the ISP cough up all the info the server needs to=20
connect (such as default router).

What it _looks_ like you've done is specify local IP=20
addresses to both network cards, and then tried to get the=20
server to try to connect to the ISP through the internal=20
NIC. =A0I _think_ what you want to do in this case is as=20
follows:

1. =A0Change the line that says: ifconfig_sis0=3D"DHCP" =A0so that=20
is says: ifconfig_rl0=3D"DHCP" =A0This way, your internal=20
network will be able to communicate with the server again,=20
and dhclient will attempt to get the info from your ISP.
=A0 =A0 =A0=20
2. =A0Go through the rc.conf file and remove repeated and/or=20
changed lines. =A0Make sure that you don't delete the lines=20
you want -- only the ones that are unnecessary. =A0For=20
example, if the following three lines are in rc.conf, then=20
_only_ the last is applicable. =A0

sendmail_enable=3D"YES"
sendmail_enable=3D"NO"
sendmail_enable=3D"NONE"

I know it may sound picky, but if you cleaned the file up a=20
bit, you'll probably see what's going on with more clarity.

3. =A0Remove the line that says: defaultrouter=3D"192.168.1.1"

That should take care of rc.conf

> god# more /etc/hosts
>
> ::1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 localhost.mshome.net localhost
>
> 127.0.0.1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 localhost.mshome.net localhost
> 192.168.1.2 =A0 =A0 =A0 =A0 =A0 =A0 god.mshome.net god
> 192.168.1.2 =A0 =A0 =A0 =A0 =A0 =A0 god.mshome.net.
>

no problems there...

>
> dmesg -a gives a load of stuff... do you really want me
> to post all that?

Actually, not in this case... =A0I just wanted to make sure=20
that your system was picking up on the NICs, and your=20
output from ifconfig shows that it had no problem with it.

Let me know how it goes.

Good luck,

Mike



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411101555.16659.m.hauber>