LinuxQuestions.org
Help answer threads with 0 replies.
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 12-21-2008, 03:08 AM   #1
alex170872
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Rep: Reputation: 0
eth1 works fine, but eth0 does not


Hi,

I would appreciate for any help in my case.

I am running FC5 and I am using the D-Link DI 524 which is connected to the internet. Now the problem I have, is that with both types (eth0, cable and eth1, wireless) I can connect to the D-Link router, but only through eth1 I can connect to the internet!

Example:

# ping -I eth0 google.com
PING google.com (74.125.45.100) from 192.168.0.175 eth0: 56(84) bytes of data.
From 192.168.0.175 icmp_seq=1 Destination Host Unreachable
From 192.168.0.175 icmp_seq=2 Destination Host Unreachable
From 192.168.0.175 icmp_seq=3 Destination Host Unreachable

# ping -I eth1 google.com
PING google.com (209.85.171.100) from 192.168.0.146 eth1: 56(84) bytes of data.
64 bytes from cg-in-f100.google.com (209.85.171.100): icmp_seq=1 ttl=230 time=240 ms
64 bytes from cg-in-f100.google.com (209.85.171.100): icmp_seq=2 ttl=230 time=244 ms
64 bytes from cg-in-f100.google.com (209.85.171.100): icmp_seq=3 ttl=230 time=237 ms

Why is that so different? And why does google have different IP adresses in that case? Maybe something is confuing the router? Maybe something wrong in my Network configuration? But for BOTH types (eth0, eth1) I can ping that router! Below are some more infos, please let me know if you need some more.


Cheers
Alex



eth0 Link encap:Ethernet HWaddr 00:15:C5:3A:66:63
inet addr:192.168.0.175 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::215:c5ff:fe3a:6663/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1112 (1.0 KiB) TX bytes:5106 (4.9 KiB)
Interrupt:185

eth1 Link encap:Ethernet HWaddr 00:13:02:6D:6A:77
inet addr:192.168.0.146 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:2ff:fe6d:6a77/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11091 errors:16 dropped:110 overruns:0 frame:0
TX packets:4869 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5241082 (4.9 MiB) TX bytes:1555833 (1.4 MiB)
Interrupt:177 Base address:0x6000 Memory:dfdff000-dfdfffff

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:2340 errors:0 dropped:0 overruns:0 frame:0
TX packets:2340 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2591254 (2.4 MiB) TX bytes:2591254 (2.4 MiB)
 
Old 12-21-2008, 05:44 AM   #2
alex170872
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Original Poster
Rep: Reputation: 0
Hi,

just an addition to my problem: I ran the collectNWData.sh script I have found and the essential problem for the wired connection (eth0) given is:

!!! CND0130E: There is more than one network card defined in the same subnet: eth1:eth0

I looked at the webpage to see what this error messge means, but I do not understand, neither how to fix it. The output of ifconfig is posted in the post just before.

Any ideas what is going on and how to fix that? I am configuring the network with system-config-network, but I cannot see any stange settings in there...

Cheers
Alex
 
Old 12-23-2008, 04:03 PM   #3
naghi32
Member
 
Registered: Dec 2008
Distribution: Slackware
Posts: 39

Rep: Reputation: 17
Well the script said that eth0 AND eth1 are in the same subnet IE: 192.168.0.x/24
try using diferent subnets . ( 192.168.0.x and 192.168.1.x for the other one )

and remember if you wanna go thru diferent interfaces you gotta tell the routing table the gateway ip for each one ( ie diferent tables/ diferent gw`s )
( how must it connect to the rest of the world thru that interface )
Oh and don`t worry about google having diferent ip`s ... they have WAY MORE than just 2 :-)
 
  


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
CentOS 5.2: Only one of eth0 (internet) or eth1 (LAN) works Sinedie Linux - Networking 3 08-20-2008 04:52 AM
Swapping cables to eth0 & eth1 on the same machine still works. Why? ses Linux - Networking 2 06-07-2005 01:31 AM
New Red Hat ES install, can't bring up interface eth0 but DSL works fine gruffy Linux - Newbie 1 10-19-2004 06:46 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
eth0 and eth1 work fine seperately but together one disables. dsmigelski Linux - Networking 2 09-06-2001 11:58 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration