From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: NIC Driver Installation ProblemsDate: Thu, 17 May 2007 19:03:28 -0700
> Date: Thu, 17 May 2007 07:08:16 -0700> From: [EMAIL PROTECTED]> To: > [email protected]> Subject: Re: NIC Driver Installation > Problems> > On 5/16/07, Daniel Rozeboom <[EMAIL PROTECTED]> wrote:> >> > > If /etc/sysconfig/network-devices/ifup runs that> > command, then I'm a bit > puzzled. After booting up and running ifdown eth0> > and ifup eth0 from this > directory, the carrier data is still not present.> > However, if I then run > "ip link set eth0 up", the carrier bit is available> > as a 1. Here are the > results of ifconfig eth0 before and after the command> > (looks to me like > they're nearly the same):> > The only reason it wouldn't run that command (I > think) is because you> don't have any configuration for eth0. So, it doesn't > bring up the> device. Do you have the directory> > > /etc/sysconfig/network-devices/ifconfig.eth0 ?> > You should have the dhcp > configuration file there as shown here:> > > http://www.linuxfromscratch.org/blfs/view/stable/connect/dhcp.html#dhcp-client> > > Here's another test you can do. Add tracing to the ifup shell script> to > try to figure out why it's not running "ip link set eth0 up".> > # bash -x > /etc/sysconfig/network-devices/ifup eth0> > There'll be a lot of output, but > you can read the script and the> output to see if something strange is > happening.> > > (Before "ip link set eth0 up"):> > eth0 Link > encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX> > BROADCAST MULTICAST > MTU:1500 Metric:1> > RX packets:0 errors:0 dropped:0 overruns:0 > frame:0> > TX packets:6 errors:0 dropped:0 overruns:0 carrier:0> > > collisions:0 txqueuelen:1000> > RX bytes:0 (0.0 b) TX > bytes:3540 (3.4 Kb)> > Interrupt:18 Base address:0x3000> >> > > (After "ip link set eth0 up"):> > eth0 Link encap:Ethernet HWaddr > XX:XX:XX:XX:XX:XX> > UP BROADCAST RUNNING MULTICAST MTU:1500 > Metric:1> > RX packets:0 errors:0 dropped:0 overruns:0 frame:0> > > TX packets:6 errors:0 dropped:0 overruns:0 carrier:0> > > collisions:0 txqueuelen:1000> > RX bytes:0 (0.0 b) TX bytes:3540 > (3.4 Kb)> > Interrupt:18 Base address:0x3000> >> > Looking at it > now, though, I see that the latter says UP Broadcast Running> > Multicast - > might that be related to anything? Thanks again for any advice> > you can > offer.> > Yes, the UP is the critical part there. The device is never coming > up> for you, so anything that happens after that is useless.> > --> Dan> -- > > http://linuxfromscratch.org/mailman/listinfo/blfs-support> FAQ: > http://www.linuxfromscratch.org/blfs/faq.html> Unsubscribe: See the above > information pageHi Dan, I do have a dhcp configuration file as described. > Here's the output of running ifup with the detailed info:+ . > /etc/sysconfig/rc++ rc_base=/etc/rc.d++ > rc_functions=/etc/rc.d/init.d/functions++ > network_devices=/etc/sysconfig/network-devices+ . > /etc/rc.d/init.d/functions++ umask 022++ export > PATH=/bin:/usr/bin:/sbin:/usr/sbin++ PATH=/bin:/usr/bin:/sbin:/usr/sbin++ > RELOADSIG=HUP++ KILLDELAY=3++ '[' -z '' ']'+++ stty size++ COLUMNS='25 80'++ > COLUMNS=80++ '[' 80 = 0 ']'++ COL=72++ WCOL=70++ SET_COL='\033[72G'++ > SET_WCOL='\033[70G'++ CURS_UP='\033[1A\033[0G'++ NORMAL='\033[0;39m'++ > SUCCESS='\033[1;32m'++ WARNING='\033[1;33m'++ FAILURE='\033[1;31m'++ > INFO='\033[1;36m'++ BRACKET='\033[1;34m'++ STRING_LENGTH=0+ '[' -n '' ']'+ > '[' -d /etc/sysconfig/network-devices/ifconfig.eth0 ']'++ echo > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd > /etc/sysconfig/network-devices/ifconfig.eth0/ipv4~+ > FILES='/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd > /etc/sysconfig/network-devices/ifconfig.eth0/ipv4~'+ boot_mesg 'Bringing up > the eth0 interface...'+ local ECHOPARM=+ true+ case "${1}" in+ break++ echo > 'Bringing up the eth0 interface...'++ sed -e s,.,.,g -e 'l 1'++ grep -c '$'+ > STRING_LENGTH=35+ echo -e 'Bringing up the eth0 interface...'Bringing up the > eth0 interface...+ boot_mesg_flush+ STRING_LENGTH=0+ for file in '${FILES}'+ > '[' /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd '!=' > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd ']'+ '[' '!' -f > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd ']'+ . > /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd++ ONBOOT=yes++ > SERVICE=dhcpcd++ DHCP_START='-t 10'++ DHCP_STOP=-k++ PRINTIP=yes++ > PRINTALL=yes+ '[' '' = 1 -a yes '!=' yes ']'+ '[' '' = 1 -a '' '!=' yes -a > lfscratchlive '!=' '(none)' ']'+ '[' -n dhcpcd -a -x > /etc/sysconfig/network-devices/services/dhcpcd ']'+ '[' -z '' -o '' = y -o '' > = yes -o '' = 1 ']'+ ip link show eth0++ ip link show eth0+ link_status='4: > eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether > 00:16:d4:10:b3:ca brd ff:ff:ff:ff:ff:ff'+ '[' -n '4: eth0: > <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether > 00:16:d4:10:b3:ca brd ff:ff:ff:ff:ff:ff' ']'+ echo '4: eth0: > <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether > 00:16:d4:10:b3:ca brd ff:ff:ff:ff:ff:ff'+ grep -q UP+ ip link set eth0 up+ > IFCONFIG=/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd+ > /etc/sysconfig/network-devices/services/dhcpcd eth0 upStarting dhcpcd on the > eth0 interface...[1A[0G[72G[1;34m[[1;31m FAIL [1;34m][0;39m+ for file > in '${FILES}'+ '[' /etc/sysconfig/network-devices/ifconfig.eth0/ipv4~ '!=' > /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 ']'+ continue I don't see anything really strange in the above output, but that doesn't mean much, since I'm still a linux n00b; perhaps you'll see something that I don't. It looks to me like "ip link set eth0 up" is being run, which seems odd to say the least. I'm also not fully aware of which settings I should be assigning for speed, duplex, and autoneg when I'm loading the network driver module. Would that likely cause this problem, or is that a separate issue?- Daniel--------------Hi all, I just wanted to poke this thread to see if anyone else has ideas on how I can get my network card working; at this point, I don't know how else to troubleshoot it, and my LFS system isn't much use without internet access. :-/ Also, if anyone has links to good resources for networking help in Linux that might help me to understand the various layers involved in this problem, I'd definitely appreciate it. Thanks!- Daniel
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
