From owner-freebsd-questions@FreeBSD.ORG Tue May 25 23:00:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70BE016A4CE for ; Tue, 25 May 2004 23:00:42 -0700 (PDT) Received: from ms-smtp-02-eri0.socal.rr.com (ms-smtp-02-qfe0.socal.rr.com [66.75.162.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id B44C043D1F for ; Tue, 25 May 2004 23:00:41 -0700 (PDT) (envelope-from hoe-waa@hawaii.rr.com) Received: from ms-mss-01 ([10.10.4.10])i4Q60CXr010002 for ; Tue, 25 May 2004 23:00:12 -0700 (PDT) Received: from socal.rr.com (localhost [127.0.0.1]) by ms-mss-01.socal.rr.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HYB002BT4OCKB@ms-mss-01.socal.rr.com> for freebsd-questions@freebsd.org; Tue, 25 May 2004 23:00:12 -0700 (PDT) Received: from [10.10.6.203] (Forwarded-For: [24.25.245.126]) by ms-mss-01.socal.rr.com (mshttpd); Tue, 25 May 2004 20:00:12 -1000 Date: Tue, 25 May 2004 20:00:12 -1000 From: hoe-waa@hawaii.rr.com To: Eric Crist Message-id: MIME-version: 1.0 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.21 (built Sep 8 2003) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-questions@freebsd.org Subject: Re: RE: ethernet card not coming up on reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hoe-waa@hawaii.rr.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2004 06:00:42 -0000 Aloha Eric and Luke I am aware that sysinstall will append to rc.conf. I went ahead and deleted all of the appends and rebooted. The ethernet did not come up on reboot. I had to use sysinstall to get an ip. And yes, it did append to rc.conf again. I will look into setting a static ip but I would like to know why this is happening. I have 3 other boxes that have FreeBSD on them and they don't have this problem. Robert ----- Original Message ----- From: Eric Crist Date: Tuesday, May 25, 2004 7:30 pm Subject: RE: ethernet card not coming up on reboot > I have also noticed this issue, but if I have only once instance of > theentry in rc.conf, everything works fine. Why not statically > define the > IP, though? That would be the best situation, IMHO. > > HTH > > Eric F Crist > President > AdTech Integrated Systems, Inc > (612) 998-3588 > > > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [owner-freebsd-questions@freebsd.org] On Behalf Of Luke Kearney > Sent: Tuesday, May 25, 2004 11:42 PM > To: hoe-waa@hawaii.rr.com > Cc: freebsd-questions@freebsd.org > Subject: Re: ethernet card not coming up on reboot > > > > On Tue, 25 May 2004 17:58:04 -1000 > hoe-waa@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@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 mtu 1500 > > inet6 fe80::20c:6eff:fe91:dea6%sk0 prefixlen 64 scopeid 0x1 > > ether 00:0c:6e:91:de:a6 > > media: Ethernet autoselect (100baseTX > ) > > status: active > > plip0: flags=8810 mtu 1500 > > lo0: flags=8049 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 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 > ) > > status: active > > plip0: flags=8810 mtu 1500 > > lo0: flags=8049 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 > normaluser. > > Of course, at that time, I am not able to access the network and > havelogout > > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > >