Networking Forums

Networking Forums > Computer Networking > Linux Networking > Send IP traffic to own IP address over first router/gateway

Reply
Thread Tools Display Modes

Send IP traffic to own IP address over first router/gateway

 
 
Achim
Guest
Posts: n/a

 
      06-28-2004, 01:59 PM
Hello,

I try to evaluate the performance of the link between a linux box with
one NIC and the first router/gateway (using ping, ftp, ...).

The problem: all sent IP packets to own IP address are routed local in
the box.

How is it possible to patch the kernel or modify the routing tables
that packets to own IP address treated like packets to destinations
behind the gateway/router?

Thanks.

Best wishes.

Achim
 
Reply With Quote
 
 
 
 
Toni Erdmann
Guest
Posts: n/a

 
      06-28-2004, 03:29 PM
Achim wrote:
> Hello,
>
> I try to evaluate the performance of the link between a linux box with
> one NIC and the first router/gateway (using ping, ftp, ...).
>
> The problem: all sent IP packets to own IP address are routed local in
> the box.
>
> How is it possible to patch the kernel or modify the routing tables
> that packets to own IP address treated like packets to destinations
> behind the gateway/router?
>
> Thanks.
>
> Best wishes.
>
> Achim


Hi Achim,

there was a thread starting on April 22nd 2004, initiated by
"(E-Mail Removed)"
"pinging between two NIC on my PC"

there was a second thread starting on May 7th 2004, initiated by
"(E-Mail Removed)"
"How to send packets out and come back ?"

Try to find those threads with 'google' and follow the the
discussions over there.

Toni
(I made some suggestions for both threads)
 
Reply With Quote
 
Achim
Guest
Posts: n/a

 
      06-29-2004, 11:30 AM
Toni Erdmann <for-spammers-(E-Mail Removed)> wrote in message news:<cbpdhd$e5o$(E-Mail Removed)>...
>
> Hi Achim,
>
> there was a thread starting on April 22nd 2004, initiated by
> "(E-Mail Removed)"
> "pinging between two NIC on my PC"
>
> there was a second thread starting on May 7th 2004, initiated by
> "(E-Mail Removed)"
> "How to send packets out and come back ?"


Hello Toni,

I had already read these two threads, but didn't find a solution to my
problem:

I try to ping my own IP address with one NIC over the first router:
ping -I eth0 <IP of eth0>
Route added before:
route add -host <IP of eth0> gw <IP of R>
The ping is local.
In the routing table local exists an entry for the IP of eth0,
indicated as local.
If I delete this route <local IP of eth0> in table local the ping
fails with
connect: Invalid argument
because there is no route to eth0.

I think we need a kernel patch to prevent local looping of IP packets
destined to own IP address . This is the first step: to get the packet
out of the box.

The second step is to get the packet from the Router and to prevent
dropping (this is the kernel patch deleting two lines).

Any ideas to take step 1?

Thanks,

Achim
 
Reply With Quote
 
Toni Erdmann
Guest
Posts: n/a

 
      06-29-2004, 12:21 PM
Achim wrote:
> Toni Erdmann <for-spammers-(E-Mail Removed)> wrote in message news:<cbpdhd$e5o$(E-Mail Removed)>...
>
>>Hi Achim,
>>
>>there was a thread starting on April 22nd 2004, initiated by
>>"(E-Mail Removed)"
>>"pinging between two NIC on my PC"
>>
>>there was a second thread starting on May 7th 2004, initiated by
>>"(E-Mail Removed)"
>>"How to send packets out and come back ?"

>
>
> Hello Toni,
>
> I had already read these two threads, but didn't find a solution to my
> problem:
>
> I try to ping my own IP address with one NIC over the first router:
> ping -I eth0 <IP of eth0>


So you're trying to ping yourself with only one NIC ?

> Route added before:
> route add -host <IP of eth0> gw <IP of R>
> The ping is local.
> In the routing table local exists an entry for the IP of eth0,
> indicated as local.
> If I delete this route <local IP of eth0> in table local the ping
> fails with
> connect: Invalid argument
> because there is no route to eth0.
>
> I think we need a kernel patch to prevent local looping of IP packets
> destined to own IP address . This is the first step: to get the packet
> out of the box.
>
> The second step is to get the packet from the Router and to prevent
> dropping (this is the kernel patch deleting two lines).
>
> Any ideas to take step 1?


No, we always used at least 2 NICs (ppp0 and eth0 or eth[01])

Did you try to find something from "Ben Greear" in 'linux.kernel' or
'linux.networking' (right name?). I guess, he posted a lot to both
lists.

Toni
 
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
Want to send traffic between two NICs Asif Linux Networking 3 06-07-2007 06:23 PM
My Router does not accept a gateway ip that has a subnet address different from the laptop ip address keethyanandpr@gmail.com Wireless Internet 15 03-18-2007 04:03 PM
How to get default Gateway address, subnet address, DNS names using C/C++ Matrixinline Linux Networking 2 01-11-2007 04:32 AM
Pick IP/NIC used to send UDP traffic Smedly Tonker Windows Networking 16 11-09-2006 01:31 PM
DHCP gives client address but no gateway address mheymann Windows Networking 4 06-09-2006 12:29 PM



1 2 3 4 5 6 7 8 9 10 11