LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-07-2004, 08:26 PM   #1
slacktom
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Rep: Reputation: 0
Question 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
 
Old 04-08-2004, 03:35 AM   #2
slacktom
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Original Poster
Rep: Reputation: 0
anyone?
 
Old 04-08-2004, 11:32 AM   #3
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
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.
 
Old 04-08-2004, 11:51 AM   #4
slacktom
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Original Poster
Rep: Reputation: 0
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...
 
Old 04-08-2004, 01:28 PM   #5
Bean101
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 7

Rep: Reputation: 0
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..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
can't get network card to work MeOrSo Linux - Hardware 3 07-26-2005 12:56 AM
help!! newbie can't get network card to work loof Slackware 10 03-24-2005 07:56 AM
Network card that will work with my computer myohanne Linux - Networking 3 12-01-2004 12:16 PM
How do I get my network card to work? TheScot Linux - Hardware 12 07-01-2004 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration