LinuxQuestions.org
Register a domain and help support LQ
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 07-04-2008, 02:29 PM   #1
verb
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
static routing between two networks


hello i am trying to route between two netwrokz
the first machine has eth0 with ip 192.168.1.123/24 and subinterface eth0:0 with ip 172.16.1.1/24

so i am trying to ping 172.16.1.1 from other computer in the network (192.168.1.124/24) but the ping fail
this is the routing table for 192.168.1.124 =>

localnet * 255.255.255.0 U 0 0 0 eth2
172.16.1.0 192.168.1.123 255.255.255.0 UG 0 0 0 eth2
default DD-WRT 0.0.0.0 UG 0 0 0 eth2




this is the routing table from 192.168.1.123

192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
172.16.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default DD-WRT 0.0.0.0 UG 0 0 0 eth0

please any suggestions what`s wrong here ?
 
Old 07-04-2008, 03:31 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Do you have IP forwarding turned on in the kernel? Refer to http://www.redhat.com/docs/manuals/e...orwarding.html for information on how to achieve this.

Also, do you have VLAN module enabled as you have two IPs with different networks on one card? This means your switch/hub and kernel must support VLANs.

Last edited by harry edwards; 07-04-2008 at 03:32 PM.
 
Old 07-04-2008, 04:37 PM   #3
verb
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
yes i have ip forwarding enabled and vlan module enabled in my kernel

the problem now comes when i try to route with my slackware computer the routing fails
but when i try to route with debian computer(the same scheme) the routing is successful
on the debian computer i didn`t have ip_forwarding enabled but even so the routing was successful

Last edited by verb; 07-04-2008 at 04:53 PM.
 
Old 07-04-2008, 05:43 PM   #4
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Could it be a simple as a iptables (firewall) problem?
 
  


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
Network - Routing between two networks problem tvliew Linux - Networking 13 07-25-2007 08:02 PM
2 networks, 2 gateways, routing help guitara Linux - Networking 0 05-20-2006 06:37 PM
Setting up Static Route for two Networks ctrylace Linux - Networking 2 07-23-2004 03:18 AM
routing problem between 2 networks bligg Linux - Networking 6 10-27-2003 02:33 AM
Routing 2 incoming networks into 1 ivanatora Linux - Networking 1 10-19-2003 12:56 PM


All times are GMT -5. The time now is 06:53 AM.

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