Networking Forums

Networking Forums > Computer Networking > Linux Networking > pinging problem on 2NIC machine

Reply
Thread Tools Display Modes

pinging problem on 2NIC machine

 
 
kernel.lover
Guest
Posts: n/a

 
      04-06-2005, 06:56 AM
Hello,
I have Local interfaces are configured as
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:A1:43:61:F5
inet addr:10.0.1.100 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:240 (240.0 b)
Interrupt:9 Base address:0xbc00

eth1 Link encap:Ethernet HWaddr 00:80:48:C3:11:94
inet addr:10.0.1.200 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:915 (915.0 b) TX bytes:420 (420.0 b)
Interrupt:11 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:784 (784.0 b) TX bytes:784 (784.0 b)


and Routing table
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 10.0.1.100 0.0.0.0 UG 0 0
0 eth0


When i ifdown eth1 at start in rc.local so that it will not start by
default my configuration for kernel routing table is
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
0.0.0.0 10.0.1.100 0.0.0.0 UG 0 0
0 eth0

I want to make eth0 alone work by successfully pinging to
another pc which is connected by crossover wire. what cheages shoul i
do? I tried with
route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.1.100
but it fails with error
SIOCADDRT: Network is unreachable

Then i up eth1 and my routing table is as given above. then i
give following commands
route del -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.1.100
route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.2.100 //10.0.2.100 is
eth0 of other pc

but besides that i get following erorros
ping 10.0.2.100
PING 10.0.2.100 (10.0.2.100) 56(84) bytes of data.
From 10.0.1.200 icmp_seq=1 Destination Host Unreachable
From 10.0.1.200 icmp_seq=2 Destination Host Unreachable
From 10.0.1.200 icmp_seq=3 Destination Host Unreachable
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      04-06-2005, 07:07 AM
On 2005-04-06, kernel.lover <(E-Mail Removed)> wrote:
> eth0 Link encap:Ethernet HWaddr 00:08:A1:43:61:F5
> inet addr:10.0.1.100 Bcast:10.255.255.255 Mask:255.0.0.0


> eth1 Link encap:Ethernet HWaddr 00:80:48:C3:11:94
> inet addr:10.0.1.200 Bcast:10.255.255.255 Mask:255.0.0.0


So, both interfaces are in the same subnet.

> 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1


But only eth1 is used for 10.x.x.x network

> 0.0.0.0 10.0.1.100 0.0.0.0 UG 0 0 0 eth0


And you configured your own interface to be the gateway.

> When i ifdown eth1 at start in rc.local so that it will not start by
> default my configuration for kernel routing table is


> 0.0.0.0 10.0.1.100 0.0.0.0 UG 0 0 0 eth0


Like before, but now you don't have a LAN anymore.

> I want to make eth0 alone work by successfully pinging to
> another pc which is connected by crossover wire.


Then tell him that _there_is_ a network over there. Get rid of the
gateway (that is incorrect)

route del default gw 10.0.1.100

And re-enable the LAN

route add -net 10.0.0.0 netmask 255.0.0.0 eth0

Davide

--
Q: What is the difference between Jurassic Park and Microsoft?
A: One is an over-rated high tech theme park based on prehistoric information
and populated mostly by dinosaurs, the other is a Steven Spielberg movie.
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      04-06-2005, 04:38 PM
In comp.os.linux.networking Davide Bianchi <(E-Mail Removed)>:
> On 2005-04-06, kernel.lover <(E-Mail Removed)> wrote:
>> eth0 Link encap:Ethernet HWaddr 00:08:A1:43:61:F5
>> inet addr:10.0.1.100 Bcast:10.255.255.255 Mask:255.0.0.0


>> eth1 Link encap:Ethernet HWaddr 00:80:48:C3:11:94
>> inet addr:10.0.1.200 Bcast:10.255.255.255 Mask:255.0.0.0


> So, both interfaces are in the same subnet.


Looks like and that's the problem, it doesn't work out until you
setup the bonding driver for the devices. Looking for bonding.txt
in the kernel "Documentation" dir should tell how to utilize.

[..]


--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 261: The Usenet news is out of date
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem pinging domain Jeff Windows Networking 1 04-08-2008 04:57 PM
Win 2003 and XP Pro pinging problem Godzilla Windows Networking 2 01-30-2007 09:14 PM
Pinging problem Sneha Windows Networking 1 08-14-2006 01:49 PM
arp problem in pinging host cranium.2003@gmail.com Linux Networking 7 05-17-2005 10:27 AM
Problem pinging resources L Lewis Linux Networking 4 04-19-2004 06:07 PM



1 2 3 4 5 6 7 8 9 10 11