ethernet card not coming up on reboot
Luke Kearney
lukek at meibin.net
Tue May 25 21:50:36 PDT 2004
On Tue, 25 May 2004 17:58:04 -1000
hoe-waa at hawaii.rr.com spake thus:
> Aloha
>
> I have a little annoyance on one of my boxes. The box has an Asus
> P4P800 mobo with a 2.6GHz P4 and 1GB of DDR-400 Ram. I have FreeBSD
> 5.2-RC1 loaded on a 120Gig SATA Hard disk. My ouput of uname -a:
>
> p4# uname -a
> FreeBSD p4.hawaii.rr.com 5.2-RC1 FreeBSD 5.2-RC1 #0: Sun Dec 7 22:15:14
> GMT 2003 root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
>
>
> The mobo has an onboard 3COM 3C940 Gbit LAN controller. This device
> is recognised during boot as sk0 and uses the SysKonnectPCI driver.
>
> The problem is that after a reboot a DHCP address is not assigned to
> sk0. Here is "ifconfig -a" after a reboot.
>
> p4# ifconfig -a
> sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet6 fe80::20c:6eff:fe91:dea6%sk0 prefixlen 64 scopeid 0x1
> ether 00:0c:6e:91:de:a6
> media: Ethernet autoselect (100baseTX <full-duplex,flag0,flag1>)
> status: active
> plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> inet 127.0.0.1 netmask 0xff000000
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
>
> Here is the output of resolv.conf and rc.conf
>
> p4# cat /etc/resolv.conf
> search hawaii.rr.com
> nameserver 24.25.227.66
> nameserver 24.25.227.33
> nameserver 24.25.227.64
>
> p4# cat /etc/rc.conf
>
> # -- sysinstall generated deltas -- # Thu May 20 10:05:35 2004
> # Created: Thu May 20 10:05:35 2004
> # Enable network daemons for user convenience.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> hostname="p4.hawaii.rr.com"
> ifconfig_sk0="DHCP"
> linux_enable="YES"
> nfs_client_enable="YES"
> sshd_enable="YES"
> usbd_enable="YES"
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
>
> # Enable network daemons for user convenience.
> # Created: Thu May 20 20:27:06 2004
> # -- sysinstall generated deltas -- # Thu May 20 20:27:06 2004
> ifconfig_sk0="DHCP"
> hostname="p4.hawaii.rr.com"
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
>
> # Enable network daemons for user convenience.
>
> Notice that there is a second entry in rc.conf relating to sk0.
>
> If I enter /stand/sysinstall and choose configure then networking and then
> interfaces and then chooses DHCP, the fields are all populated with the
> correct information. I can then exit back to the "#" and when I then
> look at "ifconfig -a" I get some good stuff!
>
> p4# ifconfig -a
> sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet6 fe80::20c:6eff:fe91:dea6%sk0 prefixlen 64 scopeid 0x1
> inet 192.168.1.103 netmask 0xffffff00 broadcast 192.168.1.255
> ether 00:0c:6e:91:de:a6
> media: Ethernet autoselect (100baseTX <full-duplex,flag0,flag1>)
> status: active
> plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> inet 127.0.0.1 netmask 0xff000000
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
>
> Notice I now have an inet line populated with an IP address.
>
> If I now look at rc.conf I get this
>
> p4# cat /etc/rc.conf
>
> # -- sysinstall generated deltas -- # Thu May 20 10:05:35 2004
> # Created: Thu May 20 10:05:35 2004
> # Enable network daemons for user convenience.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> hostname="p4.hawaii.rr.com"
> ifconfig_sk0="DHCP"
> linux_enable="YES"
> nfs_client_enable="YES"
> sshd_enable="YES"
> usbd_enable="YES"
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
>
> # Enable network daemons for user convenience.
> # Created: Thu May 20 20:27:06 2004
> # -- sysinstall generated deltas -- # Thu May 20 20:27:06 2004
> ifconfig_sk0="DHCP"
> hostname="p4.hawaii.rr.com"
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
>
> # Enable network daemons for user convenience.
> # Created: Tue May 25 16:17:31 2004
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
>
> # Enable network daemons for user convenience.
> # Created: Tue May 25 17:28:40 2004
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
>
> # Enable network daemons for user convenience.
> # Created: Tue May 25 17:31:13 2004
> # -- sysinstall generated deltas -- # Tue May 25 17:31:13 2004
> ifconfig_sk0="DHCP"
> hostname="p4.hawaii.rr.com"
>
> Still another entry for sk0!!
>
> As I stated at the begimming of this epic, this is merely an annoyance. I
> don't reboot all that often and when I do I usually log in as a normal user.
> Of course, at that time, I am not able to access the network and have logout
> and log back in as root in order to use sysinstall.
>
> Has anyone run into this before?
>
> I have also attached a copy of dmesg if anyone is still reading. :-)
>
> Thanks
> Robert
Hi,
from my tiny amount of experience each time you use /stand/sysinstall it
will append your changes to the existing rc.conf file. In reality that
interface only needs to be mentioned once. If you remove all but one of
the ifconfig_sk0 lines will the interface obtain it's IP when you reboot?
HTH
LukeK
--
Luke Kearney <lukek at meibin.net>
More information about the freebsd-questions
mailing list