LinuxQuestions.org
Help answer threads with 0 replies.
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-12-2005, 05:08 AM   #16
gunther
LQ Newbie
 
Registered: May 2005
Location: Montreal
Distribution: FC3
Posts: 10

Original Poster
Rep: Reputation: 0

Quote:
Originally posted by MS3FGX
The problem is that his machine isn't getting an IP from the DHCP server in his router.

The fact that static IP also isn't working suggests that the NIC itself is having some sort of problem.

Now, you show that your NIC is being detected, but what is that ouput from? If you are using "lspci" it can show a device even if there is no module loaded for it.

Check the output of "lsmod" to see if a module has been loaded for your NIC.
I agree that the NIC seems to be trouble .... heres the output from lspci for eth0 (let me know if you want me to post the full log):

00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)

And the output from lsmod:

Module Size Used by
parport_pc 24705 1
lp 11565 0
parport 41737 2 parport_pc,lp
autofs4 24005 0
sunrpc 160421 1
ipt_REJECT 6465 1
ipt_state 1857 1
ip_conntrack 40693 1 ipt_state
iptable_filter 2753 1
ip_tables 16193 3 ipt_REJECT,ipt_state,iptable_filter
button 6481 0
battery 8517 0
ac 4805 0
md5 4033 1
ipv6 232577 8
uhci_hcd 31449 0
ehci_hcd 31557 0
snd_via82xx 27237 2
snd_ac97_codec 64401 1 snd_via82xx
snd_pcm_oss 47609 0
snd_mixer_oss 17217 2 snd_pcm_oss
snd_pcm 97993 2 snd_via82xx,snd_pcm_oss
snd_timer 29765 1 snd_pcm
snd_page_alloc 9673 2 snd_via82xx,snd_pcm
gameport 4801 1 snd_via82xx
snd_mpu401_uart 8769 1 snd_via82xx
snd_rawmidi 26725 1 snd_mpu401_uart
snd_seq_device 8137 1 snd_rawmidi
snd 54053 11 snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,s nd_seq_device
soundcore 9889 2 snd
via_rhine 23497 0
mii 4673 1 via_rhine
floppy 58609 0
dm_snapshot 17029 0
dm_zero 2369 0
dm_mirror 23341 2
ext3 116809 2
jbd 74969 1 ext3
dm_mod 54741 6 dm_snapshot,dm_zero,dm_mirror

... sorry about the spacing in the lsmod output. Do those entries for mii and via_rhine look ok?
thanks :)
ron
 
Old 05-12-2005, 05:18 AM   #17
gunther
LQ Newbie
 
Registered: May 2005
Location: Montreal
Distribution: FC3
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by phats_O
quote:The fact that static IP also isn't working suggests that the NIC itself is having some sort of problem.:end quote

Ron, what is the exact message you get when you try to ping the router?

MS3FGX could very well be right about a problem with the nic, but theres still a fundamental difference between getting an ip address from your router, and trying to go through a router to obtain an address from the isp. If you want to get the address from your isp, then you don't need a router, and if you need a router, you dont need to get your ip from your isp.
When I'm using DHCP and eth0 isn't brought up, then I get:

#ping 192.168.1.1
connect: Network is unreachable

When I go back to static IP and eth0 seems to come up ok, I get:

#ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.100 icmp_seq=0 Destination Host Unreachable
From 192.168.1.100 icmp_seq=3 Destination Host Unreachable
From 192.168.1.100 icmp_seq=4 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4000ms, pipe 3

...... not so good, eh?
ron
 
Old 05-12-2005, 05:37 AM   #18
gunther
LQ Newbie
 
Registered: May 2005
Location: Montreal
Distribution: FC3
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by n0xvb
After you set eth0 with static IP address, did you add routing for that interface as well? DHCP will automatically do this for you, but if you set a static address you'll need to add this as well.

Something like this after ifup eth0 (using your previous example):

Code:
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
route add default gw 192.168.1.4
Now you can attempt to ping or connect to IP addresses, if you want name resolution
you'll need to add the appropriate line(s) to your resolv.conf file:

Code:
nameserver 192.168.1.1
ok - I just rebooted with the static IP set to 192.168.1.100 (figured I'd keep it well away from the 20 ip's that can be distributed by the router's DHCP, just in case everything starts working all at once ;) ). So my commands were:

Code:
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
route add default gw 192.168.1.100
... the ping results (trying to see the router at 192.168.1.1) are still:

#ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.100 icmp_seq=0 Destination Host Unreachable
From 192.168.1.100 icmp_seq=1 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, +2 errors, 100% packet loss, time 3999ms, pipe 3

... still not looking so good - here's my new ifconfig in case that provides any clues --- thanks for all the help.

eth0 Link encap:Ethernet HWaddr 00:10:DC:D7:64:EF
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::210:dcff:fed7:64ef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:11 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11

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:1850 errors:0 dropped:0 overruns:0 frame:0
TX packets:1850 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3451840 (3.2 MiB) TX bytes:3451840 (3.2 MiB)
 
Old 05-12-2005, 06:17 AM   #19
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Googling for info, I found this info:
The VIA Rhine and Rhine-II chips, via-rhine.c. This chip is used on many OEM boards. The most common branded implementation is the D-Link DFE530-TX. (Note: the DFE530-TX+ uses a RTL8139B chip.) You will need a driver with version 1.07 or higher if you have a VT6102 Rhine-II chip with PCI device ID 3065.

Could you list the relavent part of the "lspci" output to double check that the driver and versions are correct?
 
Old 05-12-2005, 11:01 AM   #20
phats_O
Member
 
Registered: Apr 2005
Distribution: debian
Posts: 38

Rep: Reputation: 15
way longshot, but....

Ron, are you 100% certain that your ethernet cable is good?
 
Old 05-12-2005, 11:53 AM   #21
gunther
LQ Newbie
 
Registered: May 2005
Location: Montreal
Distribution: FC3
Posts: 10

Original Poster
Rep: Reputation: 0
Re: way longshot, but....

Quote:
Originally posted by phats_O
Ron, are you 100% certain that your ethernet cable is good?
That one I'm pretty close to certain on --- when I boot into XP, the network works like a charm and the lights on the router seem to indicate that the connnection is ok for both OSs (i.e. they're on). Let me know if there's a more foolproof way to verify that, though.
ron

ps - I'll post the lspci output that jschiwal requested as soon as I can make it home - hopefully something'll jump out at us (well, more likely you guys than me) at that point... thanks again for the help guys
 
Old 05-12-2005, 12:32 PM   #22
phats_O
Member
 
Registered: Apr 2005
Distribution: debian
Posts: 38

Rep: Reputation: 15
quote: when I boot into XP, the network works like a charm and the lights on the router seem to indicate that the connnection is ok for both OSs (i.e. they're on). Let me know if there's a more foolproof way to verify that, though.
:endquote
That'll do. If it works, it works.
 
Old 05-12-2005, 03:44 PM   #23
gunther
LQ Newbie
 
Registered: May 2005
Location: Montreal
Distribution: FC3
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jschiwal
Googling for info, I found this info:
The VIA Rhine and Rhine-II chips, via-rhine.c. This chip is used on many OEM boards. The most common branded implementation is the D-Link DFE530-TX. (Note: the DFE530-TX+ uses a RTL8139B chip.) You will need a driver with version 1.07 or higher if you have a VT6102 Rhine-II chip with PCI device ID 3065.

Could you list the relavent part of the "lspci" output to double check that the driver and versions are correct?
Ok - here's the output from lspci -vvx for the Ethernet Controller. I can attach more of the log if that would be helpful:

00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 390c
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (750ns min, 2000ns max), Cache Line Size 08
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at ec00 [size=256]
Region 1: Memory at ea002000 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: 06 11 65 30 07 00 10 02 74 00 00 02 08 20 00 00
10: 01 ec 00 00 00 20 00 ea 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 62 14 0c 39
30: 00 00 00 00 40 00 00 00 00 00 00 00 ff 01 03 08
40: 01 00 02 fe 00 00 00 00

When I do a 'dmesg | grep eth0', I get the following (the timeout error repeats ad nauseum):

divert: allocating divert_blk for eth0
eth0: VIA Rhine II at 0xea002000, 00:10:dc:d7:64:ef, IRQ 11.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 41e1.
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0003, PHY status 786d, resetting...
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
eth0: no IPv6 routers present
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0003, PHY status 786d, resetting...
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
NETDEV WATCHDOG: eth0: transmit timed out

not cool. Also, I don't see any driver version information in the above logs ... have I forgotten to include some output or is there somewhere else I should be looking?
ron
 
Old 05-12-2005, 04:00 PM   #24
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
I've just solved a very similar problem. Try adding the following to your append line in lilo.conf:

acpi=off noapic

Then run /sbin/lilo and reboot.
 
Old 05-12-2005, 06:00 PM   #25
gunther
LQ Newbie
 
Registered: May 2005
Location: Montreal
Distribution: FC3
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jschiwal
Googling for info, I found this info:
The VIA Rhine and Rhine-II chips, via-rhine.c. This chip is used on many OEM boards. The most common branded implementation is the D-Link DFE530-TX. (Note: the DFE530-TX+ uses a RTL8139B chip.) You will need a driver with version 1.07 or higher if you have a VT6102 Rhine-II chip with PCI device ID 3065.

Could you list the relavent part of the "lspci" output to double check that the driver and versions are correct?
Ok - just found the driver info in the dmesg ... looks like I'm running with:

via-rhine.c:v1.10-LK1.2.0-2.6 June-10-2004 Written by Donald Becker

He's produced a v1.16 already - any thoughts that it would be worth upgrading to the newest driver?
ron
 
Old 05-12-2005, 06:33 PM   #26
gunther
LQ Newbie
 
Registered: May 2005
Location: Montreal
Distribution: FC3
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by davcefai
I've just solved a very similar problem. Try adding the following to your append line in lilo.conf:

acpi=off noapic

Then run /sbin/lilo and reboot.
ok davcefai ...... what the ??? *everything is working perfectly*. I use grub instead of lilo, so the solution goes something like this.

Modify the /etc/grub.conf file by appending 'acpi=off noapic" to the kernel configuration line, i.e.
BEFORE: kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
AFTER: kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00 rhgb quiet acpi=off noapic

There's a note in /etc/grub.conf that you don't need to rerun grub after making mods, but I did anyways and that seemed to work fine after the reboot.

Suddenly, there's no more ACPI junk in the system boot logs and *wow* if eth0 isn't brought up like a charm (DHCP, the whole 9 yards)... amazing. If you have a few minutes davcefai, could you explain briefly how you arrived at this configuration - I'll read up on the Advanced Configuration and Power Interface for my own edification, but I'm dying to know what the smoking gun was in your case.

To all you guys who helped me with this - thank you very much --- you're all-stars - I hope I can return the favour some day... in the meantime, I think we all deserve some beer
ron
 
Old 05-12-2005, 07:18 PM   #27
phats_O
Member
 
Registered: Apr 2005
Distribution: debian
Posts: 38

Rep: Reputation: 15
Congrats, Ron!
 
Old 05-12-2005, 11:54 PM   #28
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Quote:
If you have a few minutes davcefai, could you explain briefly how you arrived at this configuration - I'll read up on the Advanced Configuration and Power Interface for my own edification, but I'm dying to know what the smoking gun was in your case.
How I got there:

Mobo worked OK under Win98 but would not work under Shorewall, Mandrake Security, Mandrake 10.1 or Knoppix.

This is a Socket 370 so we're not talking bleeding edge technology which Linux hasn't caught up with.
Therefore problem was mobo. This is supported by the fact that even disabling the onboard NIC and using plug in cards showed indistinguishable symptoms.

All the suggestions I received did not work.

I googled around and found references to APIC causing problems with some mobos. Apparently the boards mislead Linux into thinking that APIC will work. As this is for SMP systems things go blooey with Interrupt handling doing the wrong things. Note that the REAL problem was APIC, not ACPI.

So I tried removing it!

Took me over a week to get here but I dug my heels in.
 
Old 05-20-2005, 10:14 PM   #29
hummus
LQ Newbie
 
Registered: May 2005
Posts: 4

Rep: Reputation: 0
Thumbs up

Thank you very much! Your solution worked for me as well.

I recently purchased an SY-KT600 Dragon Plus v2.0 motherboard with onboard NIC (uses Rhine-II driver) and was trying to get networking to work with Mandrake 10.1. Same behavior => could not get networking working either with the onboard NIC, or with PCI NICs that work in other systems running Mandrake 10.1. Completely baffled.

This was a dual boot system and no problems with WinXP networking. Knoppix and Suse9.2 bootable CDs also had no problems.

After making the changes to lilo.conf, everything works like a charm. Nice bit of sleuthing to come up with that solution.
 
  


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
Connecting to my linksys router gbogle Linux - Newbie 3 05-02-2005 09:47 PM
Can't ping Linksys router on Fedora 2 with WMP54G freek sanders Linux - Wireless Networking 0 09-10-2004 12:21 PM
MAC address? DHCP - Home Network ntwkthtbtch Linux - Newbie 2 08-24-2004 07:08 AM
Home network using linksys router -- DHCP server? GoinEasy9 Linux - General 12 04-01-2004 11:32 PM
Connecting to Net with Surecom Network card and Linksys Router? EpicLinux Linux - Newbie 0 10-28-2003 02:04 PM

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

All times are GMT -5. The time now is 11:25 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