LinuxQuestions.org
Help answer threads with 0 replies.
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 06-29-2007, 06:26 PM   #1
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Rep: Reputation: 15
Static rouring with IP forwarding


Hi all,

I have:
1- RHEL5 on desktop that has 2 NIC's,
eth0 -> 10.10.10.10/8
eth1 -> 172.10.10.10/16

2- RHEL4 on desktop with eth0 -> 10.10.10.11/8

3- FC5 on laptop with eth0 -> 172.10.10.11

I configured a static route on the 10.10.10.11 desktop like:
route add -net 172.10.0.0 netmask 255.255.0.0 gw 10.10.10.10
and I could ping 172.10.10.10 (2nd NIC on RHEL5) successfully, but couldnt ping the 172.10.10.11 (FC5), at the (RHEL5):I configured the ip_forwarding in the /etc/sysctl.conf and by echo "1" > net.ipv4.ip_forward. And also I couldnt ping the FC5.

Did I miss something to do?
and
Could I configure the 2 IP's on RHEL5 in the same subnet (like 192.168.1.1 and 192.168.1.2)??

Regards
Mhm
 
Old 06-30-2007, 11:50 AM   #2
framp
Member
 
Registered: Apr 2003
Location: Next to Stuttgart, Germany
Distribution: Debian, Mint, Raspbian
Posts: 131
Blog Entries: 5

Rep: Reputation: 27
Quote:
Originally Posted by mhm
I configured a static route on the 10.10.10.11 desktop like:
route add -net 172.10.0.0 netmask 255.255.0.0 gw 10.10.10.10
There also has to be a route defined on FC5 back to RHEL4.

Quote:
Could I configure the 2 IP's on RHEL5 in the same subnet (like 192.168.1.1 and 192.168.1.2)??
No, the nics have to be in different subnets.
 
Old 06-30-2007, 05:36 PM   #3
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Original Poster
Rep: Reputation: 15
I appreciate your help nut i dont think that is the solution, rhel4 desktp should ping the FC5 if I dont do the static route on FC5.

Guys its really driving me crazy, routng is pretty straight froward and it just cant be done.

If I put the RHEL5 the default gateway for the 2 networks, the clients in the 2 networks should ping each other without static routing but it also dont work.

Whats the ****?
what I have to check? the types of the NICs or the version of my kernel?

Any ideas?????

Regards
Mhm

Last edited by mhm; 07-01-2007 at 12:55 AM.
 
Old 07-01-2007, 11:58 AM   #4
whistl
Member
 
Registered: May 2005
Location: USA
Distribution: Ubuntu, CentOS
Posts: 37

Rep: Reputation: 15
routing is a two way street

Routing is a two way street. Both endpoints of the connection have to know how to get to each other. You only added a static route on the RHEl4 host. You need a second static route, on the FC5 host.

Try running this on the FC5 host:

route add -net 10.0.0.0/8 gw 172.10.10.10

then do your ping again.

If that still doesn't work, run "netstat -rn" on all three hosts, and post the results here.

Last edited by whistl; 07-01-2007 at 12:01 PM.
 
Old 07-01-2007, 04:20 PM   #5
mhm
Member
 
Registered: Oct 2006
Distribution: RHEL, FC
Posts: 58

Original Poster
Rep: Reputation: 15
Yes guys, framp and whistl, you were right.
I just configured the static route on the other side and the packets flowed. I thought I should configure it from one side.

Thanx alot,

Mhm
 
  


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
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Java: non-static variable this cannot be referenced from a static context chief_officer Programming 4 05-29-2006 01:37 PM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 12:01 PM
how to set a static ip address or do port forwarding? cd1680 Linux - Networking 13 03-27-2005 06:58 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

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

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