LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Realtek 8139 network not working - DHCP unable to get IP address (https://www.linuxquestions.org/questions/slackware-14/realtek-8139-network-not-working-dhcp-unable-to-get-ip-address-523296/)

duryodhan 01-27-2007 02:02 PM

Realtek 8139 network not working - DHCP unable to get IP address
 
hey,
I installed Slackware 11 on my friends comp and upgraded the kernel to 2.6.18. The comp detects the onboard realtek 8139 card and the mac address correctly. But dhcpcd is unable to get the ip address of the machine ( although it works fine in Windows)

I have already run netconfig etc.

Any suggestions?

ferradura 01-27-2007 08:06 PM

That chipset works fine on my pc. It uses the modules
Code:

8139too
&
Code:

mii
--------
You might try
Code:

#dhcpcd eth0
eth0 or whatever the device is.
But it should work after netconfig, if you have the modules.

duryodhan 01-27-2007 11:48 PM

I just checked : it has the modules 8139too, 8139cp and mii (as part of the 2.6.18 generic package that came with Slackware 11 DVD).

And "ifconfig etho up" shows the NIC with the correct mac address. But dhcpcd is unable to obtain the IP address. So I was wondering if anyone has ever encountered this problem? Can there be any other reason for something like this?

onebuck 01-28-2007 07:49 AM

Quote:

Originally Posted by duryodhan
I just checked : it has the modules 8139too, 8139cp and mii (as part of the 2.6.18 generic package that came with Slackware 11 DVD).

And "ifconfig etho up" shows the NIC with the correct mac address. But dhcpcd is unable to obtain the IP address. So I was wondering if anyone has ever encountered this problem? Can there be any other reason for something like this?

Hi,

Please post the output of;

Code:

ifconfig -a
route -n

Also post your /etc/rc.d/rc.inet1.conf. As for the correct MAC, are you comparing the MAC with the printed assigned MAC on the card?

Does your server/router use MAC filtering?

duryodhan 01-28-2007 08:09 AM

ifconfig -a gives three interfaces eth0 , sit0 and lo.

route -n just gives

Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

dhcpcd eth0 didn't help


And I am comparing it to the mac my friend has registered under his a/c ... we behind a NAT and our netadmin assigns IPs to us (172.*.*.*) according to our MAC addresses.

hitest 01-28-2007 12:24 PM

Good luck with this one! My other Slackware box running Slackware 11 (2.6.17.13) has a realtek card and it sits behind a router, gets an IP address with DHCP. No issues to speak of.
Is there a possibility that you've mis-configured your set-up for DHCP?

duryodhan 01-28-2007 09:56 PM

No , No chance of that ... cos I am behind the same NAT and I have configured it the exact same way .. and my comp is getting an IP address whereas his isn't!

duryodhan 01-28-2007 09:59 PM

Does the realtek card act like a PCMCIA card or a simpler PCI card?

I am asking cos it shows up right after rc.pcmcia in bootup.

onebuck 01-29-2007 07:12 AM

Quote:

Originally Posted by duryodhan
ifconfig -a gives three interfaces eth0 , sit0 and lo.

route -n just gives

Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

dhcpcd eth0 didn't help


And I am comparing it to the mac my friend has registered under his a/c ... we behind a NAT and our netadmin assigns IPs to us (172.*.*.*) according to our MAC addresses.

Hi,

When you are requested for information for diagnosis, please post un-edited and complete. A lot of information can be provided that you may over look.

As for your problem, you do not have a defined route in your routing table. If you have the gateway as 192.168.0.1 then;
Code:

route add default gw 192.168.0.1    #define default gw
This should provide;
Code:

#route -n            #man route to get switches
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.0.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0
127.0.0.0      0.0.0.0        255.0.0.0      U    0      0        0 lo
0.0.0.0        192.168.0.1    0.0.0.0        UG    1      0        0 eth0

for the device eth0.

duryodhan 01-29-2007 10:31 AM

Yeah, but all of that is provided by the DHCP server. I am behind the same NAT and DHCP provides everything.


Sorry, but I can't post the whole output cos that comp doesn't have NET access and the USB ports are erratic at best.

riodeuno 01-30-2007 03:40 AM

i have a similar problem
 
i have a similar problem as stated by duryodhan above,
except i never see a 'sit0' but i see 'eth0' and 'lo'
i have tried
'dhcpcd eth0 up'
and all of what is said above
but without any success
i too have a realtek 8139 NIC fast ethernet
i had the same problem with my previous kernel(2.6.18.3)
so i upgraded it
i am using a kernel version 2.6.19.2.
my kernel has the appropriate drivers for the ethernet card and also it detects my mac address
i am using a DHCP server behind a NAT.
i have no such problems with windows xp which is also installed alongside linux



Quote:

bash-3.1# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo


bash-3.1# ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:2A:A3:BB:BC
inet6 addr: fe80::214:2aff:fea3:bbbc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:929 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7112 (6.9 KiB) TX bytes:7112 (6.9 KiB)


bash-3.1# route add default gw 172.16.7.254
SIOCADDRT: Network is unreachable

jumapeg 01-30-2007 05:54 AM

I have a laptop with that network card, when I configure it without DCHP, using netconfig and static ip option everything seems to be ok, ifconfig shows the card configured but I'm unable to send a byte.

I found the solution in google, the command "noirqdebug" has to be added at startup, as a kernel option, in the boot manager. I have to use this command in Slackware, Debian, Ubuntu...

Try using this command.

onebuck 01-30-2007 08:52 AM

Quote:

Originally Posted by duryodhan
And I am comparing it to the mac my friend has registered under his a/c ... we behind a NAT and our netadmin assigns IPs to us (172.*.*.*) according to our MAC addresses.

Hi,

If your admin assigns you a IP, then why are you doing dhcp?

BTW, you can compare all you want! The MAC is unique to the card. Be a NIC or wireless adapter. The MAC is pre-assigned to the unit by the manufacture from a pool of allocated MACs. Your friends MAC is different than yours therefore the IP assigned to his unit will only work for him.

If the admin gave you an IP then just edit /etc/rc.d/rc.inet1.conf and add the information for the device, IP, netmask, and gateway. Don't forget to add your nameserver(s) to /etc/resolv.conf.

duryodhan 01-30-2007 09:39 AM

Jumapeg : How do I add the command ? will
Quote:

append ="noriqdebug=yes"
in lilo.conf work?

jumapeg 01-30-2007 10:41 AM

duryodhan:
Just "noirqdebug" in lilo.conf
Quote:

append ="noirqdebug"


All times are GMT -5. The time now is 03:10 PM.