Thanks, Bruce. Ethernet works well now.

>________________________________
> 发件人: Bruce Dubbs <bruce.du...@gmail.com>
>收件人: Omar <vic...@yahoo.com.cn>; LFS Support List 
><lfs-support@linuxfromscratch.org> 
>发送日期: 2012年5月30日, 星期三, 下午 12:50
>主题: Re: [lfs-support] interface eth0 doesn't exist
> 
>Omar wrote:
>> Hi, all:
>> The eth0 fails to start when I start up the LFS7.1 system. It prompts that 
>>> Bringing up the eth0 interface... interface eth0 doesn't exist [FAIL]
>>> I think it maybe correlative to the failure of chapter 7.2.1. It
>>> gave the following information and failed to generate
>>> /etc/udev/rules.d/70-persistent-net.rules file.
>
>>> root:/# for NIC in /sys/class/net/* ; do
>>>>     INTERFACE=${NIC##*/} udevadm test --action=add $NIC
>>>> done
>
>You are probably missing the correct ethernet driver in the kernel 
>configuration.  What does the following give you?
>
>   echo /sys/class/net/*
>
>It should give something like:
>
>   /sys/class/net/eth0 /sys/class/net/lo /sys/class/net/sit0
>
>If you don't have eth0, then you need a different driver.


Yes, I do.


>You can also check dmesg.  You should get something like:
>
>[    3.362235] e1000e 0000:00:19.0: eth0: (PCI Express:2.5GT/s:Width x1) 
>00:25:64:38:ec:dd
>[    3.362678] e1000e 0000:00:19.0: eth0: Intel(R) PRO/1000 Network 
>Connection
>[    3.362957] e1000e 0000:00:19.0: eth0: MAC: 8, PHY: 8, PBA No: 2021FF-0FF


I don't have any information about eth0.


>You can also try 'lspci' in your host system.  I have:
>
>00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network 
>Connection (rev 02)


My ethernet card is Realtek family but it is showed AMD PCnet32 in the VM 
ubuntu which is my host system. So I compile the kernel again with more three 
options as follows.
CONFIG_VETH=y
CONFIG_PCNET32=y  (I think it is the most important because of the obvious 
relevance to VM.)
CONFIG_STAGING=y

>   -- Bruce
>-- 
>http://linuxfromscratch.org/mailman/listinfo/lfs-support
>FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>Unsubscribe: See the above information page


Omar
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to