LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-19-2004, 10:20 PM   #1
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Rep: Reputation: 15
2 network cards on Slack = nothing


I've just loaded a computer that was running Mandrake 9.2 to Slackware 9.1.

The PC had an integrated ethernet card and then also another PCI card. I put the PCI card in because I was having problems with the onboard when using Windows although it was only a troubleshooting shot... I don't know if the onboard is bad or not.

Anywho... I've tried every scenario with the stupid machine and I can't get the IP from the router (DHCP) no matter what. I've tried with the PCI installed and the onboard enabled, PCI out and onboard enabled, and also PCI installed with the onboard disabled. Linix comes up each time and shows it doing a DHCP broadcast but it never comes back with an IP.

Any thoughts?
 
Old 05-19-2004, 11:35 PM   #2
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Note:

This is the card that I'm having issues with.

http://www.linuxquestions.org/hcl/sh...hp?product=482

RTL-8139/8139C/8139C+ (rev 10)

I've tried loading the 8139 module and it doesn't do anything. Everything looks like it should work yet I can't ping the gateway or obtain an ip.
 
Old 05-20-2004, 03:13 AM   #3
bipul4b
LQ Newbie
 
Registered: May 2004
Location: India
Distribution: redhat
Posts: 21

Rep: Reputation: 15
please first check that you are able to ping localhost.

ping 127.0.0.1

 
Old 05-20-2004, 10:25 AM   #4
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
localhost pings perfectly.

dmesg shows:
Code:
8139too Fast Ethernet driver 0.9.26
eth0: RealTek RTL8139 Fast Ethernet at 0xdob64f00, 00:e0:7d:a9:92:14, IRQ 10
eth0:  Identified 8139 chip type 'RTL8139C'
eth0: Setting half-duplex based on autonegotiated partner ability 0000.
lspci
Code:
00:0f.0 Ethernet controller: RealTek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
lsmod
Code:
module                       Size        Used  by         Not tainted
8139too                    15240        0
mii                              2304        0 [8139too]
crc32                          2880       0 [8139too]
ifconfig shows the card but doesn't list any address. dhcpcd hangs for a few minutes and then disables the card.
 
Old 05-20-2004, 03:30 PM   #5
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
u an give your router the default gateway 192.168.1.1 then configure it in ur linux box
u could also try configuring addresses manually in ur LAN and turn off dhcp

for example
ifconfig eth0 192.168.0.1
up netmask 255.255.255.0 or netmask 255.255.255.0 up
u will probably have edit the file /etc/rc.d/rc.local to get this to boot up every time
and check the /etc/sysconfig/network-scripts + /etc/resolv.conf + /etc/sysconfig/network
 
Old 05-20-2004, 05:16 PM   #6
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Ive tried to set the IP to static but I still can't get out. I can't even ping the gateway.
 
Old 05-20-2004, 05:35 PM   #7
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
First of all run `netconfig` and see which network card it uses to configure. Then from there you can add to your /etc/rc.d/rc.local or wherever this code to do the second one...

Code:
##Setting eth1 variables
# First we set the ip address and misc shitza:
IPADDR="192.168.0.1"      # Internal IP
NETMASK="255.255.255.0"   # Netmask
NETWORK="192.168.0.0"     # Network Address
BROADCAST="192.168.0.255" # Broadcast Address
GATEWAY=""                #Gateway

##Set up the NIC
echo "Configuring eth1 as ${IPADDR}..."
/sbin/ifconfig eth1 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
This is how I have it set up on my server with a local subnet behind it.
 
Old 05-20-2004, 05:38 PM   #8
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
can u post the output of ifconfig -a now u have disabled dhcp
 
Old 05-20-2004, 06:33 PM   #9
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
I'm going to try and upgrade the kernel to 2.6.6 and I'll let you all know what happens. Thanks so much for the suggestions!
 
Old 05-20-2004, 07:40 PM   #10
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Solved. Just successfully compiled my first Kernel. After moving this PC up to 2.6.6 everything (so far...) works perfectly! I can't believe it. Gonna celebrate tonight!
 
  


Reply



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
Slack 10.2 recompiled to kernel 2.6.X lost my network cards JimRivera Slackware 2 10-01-2005 05:19 PM
2 network cards, single network, load balancing? tormentum Linux - Networking 1 02-13-2005 02:37 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
Setting up wireless network cards in Slack 10?? Rhatlinux Slackware 2 10-21-2004 07:49 PM
Slack 9: Two network cards.... hjles Slackware 1 06-23-2003 10:27 AM

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

All times are GMT -5. The time now is 11:59 AM.

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
Open Source Consulting | Domain Registration