LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 network cards on Slack = nothing (https://www.linuxquestions.org/questions/linux-networking-3/2-network-cards-on-slack-%3D-nothing-183545/)

silmaril8n 05-19-2004 10:20 PM

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?

silmaril8n 05-19-2004 11:35 PM

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.

bipul4b 05-20-2004 03:13 AM

please first check that you are able to ping localhost.

ping 127.0.0.1

:newbie:

silmaril8n 05-20-2004 10:25 AM

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.

mermxx 05-20-2004 03:30 PM

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

silmaril8n 05-20-2004 05:16 PM

Ive tried to set the IP to static but I still can't get out. I can't even ping the gateway.

Astro 05-20-2004 05:35 PM

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.

mermxx 05-20-2004 05:38 PM

can u post the output of ifconfig -a now u have disabled dhcp

silmaril8n 05-20-2004 06:33 PM

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!

silmaril8n 05-20-2004 07:40 PM

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!


All times are GMT -5. The time now is 10:31 AM.