As I said, the card associated with the first loaded module is configured correctly (and can be configured correctly), while the second card associated with the second module can't be configured. ALWAYS.
Unloading all modules, and loading modules, make eth0 always working (because eth0 is the interface claimed by the first module), and make eth1 not working (becuase eth1 is the interface claimed by the second module).
Just because someone asked, here is the output when all modules are loaded:
Quote:
eth0 Link encap:Ethernet HWaddr 00:0F:EA:48:75:C0
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:462967 errors:0 dropped:0 overruns:0 frame:0
TX packets:522133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:251046254 (239.4 MiB) TX bytes:275298506 (262.5 MiB)
Interrupt:17 Memory:fb000000-0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1718 errors:0 dropped:0 overruns:0 frame:0
TX packets:1718 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:104620 (102.1 KiB) TX bytes:104620 (102.1 KiB)
|
Don't think I'm a noob, please. I know what I'm doing.
Here is a snippet of a bash session, to explain what happens:
Code:
rmmod sk98lin
rmmod 8139too
modprobe sk98lin
modprobe 8139too
# Now eth0 is related to sk98lin, and eth1 is related to 8139too
ifconfig eth0 192.168.0.1
ifconfig eth1 198.168.1.1
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
rmmod sk98lin
rmmod 8139too
modprobe 8139too
modprobe sk98lin
# Now eth0 is related to 8139too, and eth1 is related to sk98lin
ifconfig eth0 192.168.0.1
ifconfig eth1 198.168.1.1
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
Any suggestion?