Re: NIC trouble
Subject: NIC trouble
Date: Thu, Apr 08, 1999 at 01:43:19PM -0700
In reply to:Ben Messinger
Quoting Ben Messinger(bmessin@3-cities.com):
> I just picked up some cheap used NE2K pci ethernet cards to use for a
> home lan. I installed two in this Linux box since it may become a
> proxy-gateway/firewall for a DSL connection soon.
>
> I re-compiled the kernel to support the cards, and set my BIOS to use
> irq's that were available. This is the relevant boot message:
>
> ne2k-pci.c:v0.99L 2/7/98 D. Becker/P. Gortmaker
> http://cesdis.gsfc.nasa.gov/linu
> x/drivers/ne2k-pci.html
> ne2k-pci.c: PCI NE2000 clone 'Winbond 89C940' at I/O 0x6c00, IRQ 10.
> eth0: PCI NE2000 found at 0x6c00, IRQ 10, 00:20:78:14:51:6B.
> ne2k-pci.c: PCI NE2000 clone 'Winbond 89C940' at I/O 0x7000, IRQ 5.
> eth1: PCI NE2000 found at 0x7000, IRQ 5, 00:20:78:12:8C:3C.
>
> I made entries in /etc/init.d/network so that it now reads:
>
> #! /bin/sh
> ifconfig lo 127.0.0.1
> route add -net 127.0.0.0
> ifconfig eth0 netmask 255.255.255.0 broadcast 192.168.1.255 192.168.1.1
> route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
>
> But when the above is executed at boot time it returns the following
> errors:
>
> SIOCSIFNETMASK: Cannot assign requested address
> SIOCSIFBRDADDR: Cannot assign requested address
>
> The card (eth0) is now listed in the routing table, as well as being
> identified by ifconfig, but I can not pass packets to my other computers
> although I see the light blinking on the card when I try to ping another
> box.
>
> Any help will be appreciated. Thank you.
Ben
I think you must be using kernel 2.2.x. If so, that is the problem.
I have changed my /etc/init.d/network to work under 2.2.3 like this
if [ $(uname -r |grep 2.0) ]; then
/sbin/route add -net 127.0.0.0
ifconfig ppp ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
/sbin/route add -net ${NETWORK} netmask ${NETMASK}
else
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
fi
I forget now where the ref is but the above does work. Something to
do with the nre kernel setting the route when it finds the network
card, IIRC.
HTH
>
> -Ben
>
> --
> ------------------------------------
> Ben Messinger bmessin@3-cities.com
> Debian GNU/Linux user.
> ------------------------------------
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
--
Office Automation, n.:
The use of computers to improve efficiency by removing anyone
you would want to talk with over coffee.
_______________________________________________________
Wayne T. Topa <wtopa@ix.netcom.com>
Reply to: