LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   my second network card does not work (slackware) (https://www.linuxquestions.org/questions/linux-networking-3/my-second-network-card-does-not-work-slackware-167521/)

slacktom 04-07-2004 08:26 PM

my second network card does not work (slackware)
 
Hi!

I am on Slackware. I got two network cards. One for acessing the internet and one for the local network.

eth0 (acess to the internet) works, but eth1 doesn't.

what I did:

*** I changed /etc/rc.d/rc.modules for my second network card (Realtek 8029)
# PCI NE2000 clone support:
/sbin/modprobe ne2k-pci

*** I changed /etc/rc.d/rc.inet1.config
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="10.0.0.1"
NETMASK[1]="255.0.0.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

*** I rebooted

*** eth0 works but eth1 doen't

***output of /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:4F:49:0E:22:D2
inet addr:62.178.161.162 Bcast:62.178.161.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22310 errors:0 dropped:0 overruns:0 frame:0
TX packets:1024 errors:0 dropped:0 overruns:0 carrier:0
collisions:12 txqueuelen:1000
RX bytes:1667393 (1.5 Mb) TX bytes:152699 (149.1 Kb)
Interrupt:11 Base address:0xe400

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:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)

*** then I changed /etc/rc.d/rc.inet1.config (exchange the cards):
# Config information for eth0:
IPADDR[0]="10.0.0.1"
NETMASK[0]="255.0.0.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""

*** I reboot

*** now eth0 works and I can ping 10.0.0.1 but eht1 doesn't work and I can't acess the internet

any Idea how to make them both work at the same time?

THANK YOU

slacktom 04-08-2004 03:35 AM

anyone? :cry:

slackwarefan 04-08-2004 11:32 AM

Are you using the precompiled kernel? If you're ok with recompiling, Ive had much more success with network cards if they're compiled into the kernel.

slacktom 04-08-2004 11:51 AM

Quote:

Originally posted by slackwarefan
Are you using the precompiled kernel? If you're ok with recompiling, Ive had much more success with network cards if they're compiled into the kernel.
yes precompiled slackware 9.1 updated to current with swaret - I don't want to compile a kernel myself because I am a bloody noob ...

On http://www.linuxtux.org/~juhl/slackwarefaq/ it reads:

Quote:

22) How do I configure several NIC's in Slackware?

You need to manually edit /etc/rc.d/rc.netdevice and /etc/rc.d/rc.inet1 and add the driver(s) and settings for your additional NIC's. The exact details can be found as part of the answer for question 21.
Is this out of date? - because I don't have a rc.netdevice file in that directory...

Bean101 04-08-2004 01:28 PM

whats eth0's driver...? .. are both of these cards plugged into the same hub, or do you have eth0 to the modem & eth1 to the hub... you might have to setup an alias in /etc/modules.conf

alias eth0 ???DRIVER NAME????
alias eth1 ne2k-pci

eth0's driver might be tulip.. its kinda common.. check here under compatibility for u're card..


All times are GMT -5. The time now is 05:02 AM.