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 page

Reply via email to