Network cards tests
Stephane Boireau <[email protected]>
| Newsgroups | gmane.linux.tomsrtbt |
|---|---|
| Organization | MENRT |
| Message-ID | <[email protected]> |
Hi,
I've just finished reinstallation of 20 pc using network backups... ('hope
it's understandable)
It appears that:
Use of network modules and smbmount with Tomsrtbt1.7.361 is OK with:
-RTL8029 network card and rtl8139.o driver
-SN3200CT network card and rtl8139.o driver
-RTL8139 network card and rtl8139.o driver
-Dlink DFE530TX Rev-A1 and via-rhine.o driver
But it doesn't with:
-Dlink DFE530TX Rev-A3-1 (recently bought) and via-rhine.o driver
----------------------------------------
Use of network modules with Tomsrtbt2.0.103 is OK (I mean pings are OK) with:
-RTL8029 network card and rtl8139.o driver
-RTL8139 network card and rtl8139.o driver
-Dlink DFE530TX Rev-A1 and via-rhine.o driver
But it doesn't with:
-Dlink DFE530TX Rev-A3-1 and via-rhine.o driver
#insmod via-rhine.o
via-rhine.c:v1.08b_LK1.0.1 12/14/2000 Written by Donald Becker
eth0: VIA VTG102 Rhine-II at 0xe000,00:05:5d:06:d6:f8,IRQ 10.
eth0:MII PHY found at address 8, status 0x7829 advertising 01e1 Link0021
#ifconfig eth0 192.168.52.24 netmask 255.255.255.0 up
#ping 192.168.52.24
ping: sendto: Network is unreachable
#route add -net 192.168.52.0
SIOCADDRT:Invalid argument
#route add default 192.168.52.0
SIOCADDRT:No such device
#route
Destination:193.168.52.0
Gateway:*
Genmask:255.255.255.0
Flags:U
Metric:U
Ref:0
Use:0
Iface:eth0
#ping 127.0.0.1
<THE ANSWER IS OK>
#cat /etc/networks
loopback 127.0.0.0
#echo "eth0 192.168.52.24" >>/etc/networks
#ping 192.168.52.24
ping: sendto: Network is unreachable
Is there something wrong with this driver?
----------------------------------------
With Tomsrtbt and smbmount, I failed to make it OK.
Pete Scott told me the way I should do it, but It didn't work.
After a lot of tests:
Use of smbmount with Tomsrtbt2.0.103 is OK with:
-RTL8029 network card and rtl8139.o driver
I get some errors like:
smb_request: result -22, setting invalid
smb_close_socket: still catching keepalives!
smb_retry: successful, new pid=135,generation=2
...
But it works.
It doesn't work with:
-RTL8139 network card and rtl8139.o driver
-Dlink DFE530TX Rev-A1 and via-rhine.o driver
-Dlink DFE530TX Rev-A3-1 and via-rhine.o driver
But Mdk8.2 recognize this card and uses via-rhine.o updated(?).
I have tried to use Mdk8.2's driver with Tomsrtbt2.0.103 and:
It doesn't work:
I get many lines with:
"unresolved symbol add-timer_Ra19eacf8
unresolved symbol ...
..."
And "ping 127.0.0.1" works but doing "CTRL+C" freezes the terminal.
Mdk8.2 has 2.4 kernel and Tomsrtbt2.0.103 has 2.2.20...
It was a stupid test.
Where can I get help for theese cards?
Thank you very much.
------------------------
I've tried line by line, command after command.
I've tried those scripts too:
With Tomsrtbt1.7.361:
#---------------------------------------------------
#!/bin/sh
#Script for Tomsrtbt1.7.361:
#Parameters: $1 for network driver
#$2 for tomsrtbt floppy mount point
#$3 for IP address (default is 192.168.52.39)
if [ $1 ] ; then
cd $2
insmod $1
if [ $3 ] ; then
ifconfig eth0 $3 netmask 255.255.255.0 broadcast 192.168.52.255
else
ifconfig eth0 192.168.52.39 netmask 255.255.255.0 broadcast 192.168.52.255
fi
route add -net 192.168.52.0
route add default gw 192.168.52.1
cp $2/hosts /etc/
mkdir /mnt/win
mount -t vfat /dev/hda1 /mnt/win
cp $2/smbfs.o.bz2 /mnt/win
bzip2 -d /mnt/win/smbfs.o.bz2
insmod /mnt/win/smbfs.o
cp $2/smbmount.bz2 /mnt/win
bzip2 -d /mnt/win/smbmount.bz2
else
echo Give \$1 for network driver name
echo \$2 for Tomsrtbt floppy mount point
echo \$3 for IP address (192.168.52.39 default).
fi
#---------------------------------------------------
With Tomsrtbt2.0.103:
#---------------------------------------------------
#!/bin/sh
#Script for Tomsrtbt2.0.103:
#scriptinit.sh
#This script, the drivers and programs are
#stored on an other floppy disk
if [ $1 ]; then
#Creation of /etc/hosts:
echo "192.168.52.10 pc10" >> /etc/hosts
echo "192.168.52.16 pc16" >> /etc/hosts
echo "192.168.52.17 pc17" >> /etc/hosts
echo "192.168.52.19 pc19" >> /etc/hosts
echo "192.168.52.24 pc24" >> /etc/hosts
echo "192.168.52.39 pc39" >> /etc/hosts
#Adding eth0 to /etc/networks
echo "eth0 192.168.52.39" >>/etc/networks
#Network card parameters
ifconfig eth0 192.168.52.39 netmask 255.255.255.0 up
#Route definition:
route add default eth0
route add default gw 192.168.52.1
#Copy of programs and drivers to /tmp:
cp ./* /tmp
cd /tmp
#"Unbzipage" of theese files:
bzip2 -d *.bz2
#Loading network card driver (via-rhine.o, rtl8139.o,...):
insmod $1
#Loading smbfs module for Samba/window$:
insmod smbfs.o
#Creation of mount point:
mkdir /mnt/smb
#Creation of links for smbmount:
ln -s /tmp/smbmnt /usr/bin/smbmnt
ln -s /tmp/smbmount /usr/bin/smbmount
ln -s /tmp/smbumount /usr/bin/smbumount
#Infos:
echo "The route is:"
route
echo "And the eth0 config is:"
ifconfig
echo "Let's go for smbmount!"
cd /tmp
else
echo "Give network card driver name for $1"
fi
#---------------------------------------------------