LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-22-2010, 06:01 AM   #1
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 15
eth1 routes to eth2, but no the opposite


Hello all

I have a debian distro, with 2 interfaces:

192.168.3.254 eth0
192.168.4.254 eth1

I currently have no iptables rules (i ran iptables -F, -X, -Z, -t nat -F......)

Of course, when a host in 192.168.4.x network send a ping to the 192.168.3.1 router, ping doesnt reach it.

Weird thing is, when a host in 192.168.4.x network send a ping to the 192.168.3.254 interface, ping reaches.

I say its weird, because when i do the opposite, a host in 192.168.3.x network send a ping to the 192.168.4.254 interface, ping doesnt reach.


maybe im paranoid, but it makes no sense.


Any tips?
 
Old 12-22-2010, 06:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sounds like there is not route on the machines in the 3 network to reach the 4 network. That is consistent in the statement that no traffic on the 3 network hits the router box when addressed to the 4 network
 
Old 12-22-2010, 06:35 AM   #3
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
sounds like there is not route on the machines in the 3 network to reach the 4 network. That is consistent in the statement that no traffic on the 3 network hits the router box when addressed to the 4 network

Seems an option to start the investigation, but, i only have one host in the .3 and .4 subnets:

i configured the server (the box with 192.168.3.254 and 192.168.4.254 IPs) to give DHCPs in 192.168.3 and 192.168.4 subnets.
When i unplug and plug the cable, the only host for proofs, gets 192.168.4.x or 192.168.3.x IP



SCHEMA

router 192.168.3.1 ----------192.168.3.3---------- 192.168.3.254 SERVER WITH DHCP AND PROBLEM 192.168.4.254 ---- 192.168.4.4


The 192.168.3.3 and 192.168.4.4 IP's belongs to the same host, deppending if i plug it to ona interface or another


Explaining that, when should i check the routes? in the server or in the client?






p.s. traceroute shows only 1 hop from 192.168.3.3 to 192.168.4.254
i thought it would be 2 hops, one to 192.168.3.254 and another from that to 192.168.4.254

Last edited by fdelval; 12-22-2010 at 06:46 AM.
 
Old 12-22-2010, 07:51 AM   #4
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
I managed to draw the schema










And this is the routing table

192.168.4.0........0.0.0.0...........255.255.255.0 .... u .... 0 ..... 0 .... eth1
192.168.3.0........0.0.0.0...........255.255.255.0 .... u .... 0 ..... 0 .... eth0
0.0.0.0 ........ 192.168.3.1...........0.0.0.0.... ug .... 0 ..... 0 .... eth0
Attached Thumbnails
Click image for larger version

Name:	ping.JPG
Views:	10
Size:	28.3 KB
ID:	5606  

Last edited by fdelval; 12-22-2010 at 03:40 PM.
 
Old 12-23-2010, 04:16 AM   #5
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
i also installed virtualbox, which creates a new subnet.... maybe its related?
 
  


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
What determines the assignment of eth0, eth1, eth2, etc.. larold Linux - Hardware 1 02-04-2010 12:07 PM
Resetting network interface to eth1 & eth2 kushalkoolwal Debian 15 08-24-2007 10:01 AM
[SOLVED] eth1 and eth2 keeps interchanging vharishankar Debian 6 03-08-2006 03:46 AM
eth0 - eth1 - eth2 and how to determine which driver they are using vharishankar Linux - Networking 7 06-02-2005 10:52 PM
eth0 eth1 and eth2 on boot sergiodemoura Linux - Newbie 4 12-03-2003 01:21 AM

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

All times are GMT -5. The time now is 08:22 PM.

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