LinuxQuestions.org
Review your favorite Linux distribution.
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 11-16-2005, 10:27 PM   #1
qs_tahmeed
Member
 
Registered: Nov 2003
Location: Bangladesh
Posts: 101

Rep: Reputation: 15
Routing Local Packets


Hello Forum,

I would like to state a problem.

When ever I ping any interface of a PC both the request and the reply goes through
the LO interface.

Suppose I want to ping eth0 (10.0.1.1/24) of a system using eth1 (10.0.10.1/24) of that
same system. The packets flow internally as when I use tcpdump to look at the
interfaces I only find packets flowing through the LO interface.

The thing I want to do is to block this internal flow of packets and send any packets
that is generated locally and the destination of which is also local (the scenario
explained above) to go through some forwarding machine.

Like - when I ping eth0 of PC1 using eth1 of PC1 the request should flow to eth1 of
PC2 and from there eth0 of PC2 and then it reaches the eth0 of PC1.

So the network diagram is:


pc1 (eth0) ---------- pc2 (eth0)
pc1 (eth1) ---------- pc2 (eth1)


And Packet flow diag is:

pc1 (eth1) >>>>>>>> pc2 (eth1)
|
|
pc1 (eth0) <<<<<<<< pc2 (eth0)


The reply is not a major factor. One way communication is OK for me. It dosent matter
if I get any reply or not. But the Packets must flow in the stated manner. And this
should be the case for all packets.

Also my ARP entries are static. and there is no default route set on any pc. And no
other connections are there in any of the pcs.

I did mention this problem before - but I thought I needed it to be more clearer.

Any way - is there any special kind of alteration that has to be made in the kernel
parameters. Or this can be handled

PLS ask for any other issues that I have not made clear.

And Advance Thanks for any help.
 
Old 11-16-2005, 10:30 PM   #2
qs_tahmeed
Member
 
Registered: Nov 2003
Location: Bangladesh
Posts: 101

Original Poster
Rep: Reputation: 15
Sorry But the Packet Flow Diag is not in the way it should be.

The PIPES should be in between the interfaces of PC2 - not in between the interfaces of PC1.

Bye
 
  


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
how can i use libpcap to capture packets for the local loopback interface (lo) ? gajaykrishnan Programming 0 02-22-2005 04:03 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
Resending packets (routing) Barca Linux - Networking 7 11-13-2004 03:24 PM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
Aargh!!! Not routing to local subnet sancho5 Linux - Networking 5 02-10-2004 02:11 AM

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

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