Bruce Dubbs wrote:
> Walter Webb wrote:
>> Since I got firefox installed in lfs-7.2 about 3 days ago,
>> I have been trying to connect. Eventually, I tried:
>>
>> dmesg | grep eth
>>
>> which showed me that whichever board was recognized
>> first usually became eth0. At least once, however, it was
>> renamed according to /etc/udev/rules.d/70-persistent-net.rules.
>>
>> I have three plans:
>>
>> A. Maybe someone knows a solution here.
>>
>> B. Use udev-181 from lfs-7.1.
>>
>> C. Use a bootscript to configure the networks after
>> determining how they are matched.
>>
>> In any case, there may be a problem with udev-188 for
>> multiple ethernet boards.
> What is the content of 70-persistent-net.rules?
>
> How about the output from 'ip link show'?
> 'ls /sys/class/net'?
>
> If you have pci-utils installed, what do you get from
> 'lspci|grep -i eth'?
>
> -- Bruce
>
--------------- lfs 7.2 70-persistent-net.rules ---------------
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# net device 8139too
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:e0:4c:19:16:99", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# net device r8169
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:26:18:fe:70:ec", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
-----------------------------------------------------------------
This is from 7.1:
--------------- lfs 7.1 70-persistent-net.rules ---------------
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1e.0/0000:07:03.0
(8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:e0:4c:19:16:99", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.7/0000:02:00.0
(r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:26:18:fe:70:ec", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
-----------------------------------------------------------------
From 7.2:
# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode
DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN mode DEFAULT qlen 1000
link/ether 00:26:18:fe:70:ec brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN mode DEFAULT qlen 1000
link/ether 00:e0:4c:19:16:99 brd ff:ff:ff:ff:ff:ff
# ls /sys/class/net
eth0 eth1 lo
# lspci|grep -i eth
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
07:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
# dmesg | grep eth
r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xf8896000,
00:26:18:fe:70:ec, XID 083000c0 IRQ 47
r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx
checksumming: ko]
8139too 0000:07:03.0: eth1: RealTek RTL8139 at 0xf88bac00,
00:e0:4c:19:16:99, IRQ 18
r8169 0000:02:00.0: eth0: unable to load firmware patch
rtl_nic/rtl8168d-2.fw (-2)
r8169 0000:02:00.0: eth0: link down
8139too 0000:07:03.0: eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
from 7.1:
# dmesg | grep eth
r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xf8786000,
00:26:18:fe:70:ec, XID 083000c0 IRQ 46
r8169 0000:02:00.0: eth0: jumbo features [frames: 9200 bytes, tx
checksumming: ko]
udevd[1055]: renamed network interface eth0 to eth1
8139too 0000:07:03.0: eth0: RealTek RTL8139 at 0xf8822c00,
00:e0:4c:19:16:99, IRQ 18
8139too 0000:07:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
r8169 0000:02:00.0: eth1: unable to load firmware patch
rtl_nic/rtl8168d-2.fw (-2)
r8169 0000:02:00.0: eth1: link down
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page