LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-07-2007, 05:01 AM   #1
rajat
LQ Newbie
 
Registered: Jan 2007
Posts: 20

Rep: Reputation: 0
Packet Forwarding from eth0 to eth1 isn't working


Hi Folks,

I have a FC6 machine, kernel 2.6.18. I'm trying to forward packets from my eth0 interface to eth1 interface. It is not working. I have disabled the firewall as well.

Eth0 is on the network : 192.168.11.0 , netmask - 255.255.255.0
Eth1 is on the network : 172.16.0.0, netmask - 255.255.255.0

I have done the following settings in my machine:

1. Turned ON the packet forwarding by setting net.ipv4.ip_forward to 1 in the /etc/sysctl.conf file.

2. Added static routes to the file static-routes in /etc/sysconfig. The contents of this file are as under:
any: host 172.16.0.202 dev eth0
any: host 172.16.0.203 dev eth0
any: host 172.16.0.204 dev eth0
any: host 172.16.0.205 dev eth0
any: host 172.16.0.206 dev eth0
any: host 172.16.0.207 dev eth0
any: host 172.16.0.208 dev eth0
any: host 172.16.0.209 dev eth0
any: host 172.16.0.210 dev eth0
any: host 172.16.0.211 dev eth0
any: host 172.16.0.212 dev eth0
any: host 172.16.0.213 dev eth0
any: host 172.16.0.214 dev eth0
any: host 172.16.0.215 dev eth0
any: host 172.16.0.216 dev eth0
any: host 172.16.0.217 dev eth0

The same configuration works on my other FC2 machine, kernel 2.6.5

Please suggest what's wrong with the FC6 machine. Is there any more setting to be done in the FC6 box?

Thanks and regards,
Rajat
 
Old 05-07-2007, 05:24 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
When I routed my desktop through my laptop in order to have access to my wireless router, I didn't add host routes like you are doing. However, I found out that I needed to modprobe ip_conntrack before it would work.
 
  


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
forwarding a specific port from eth0 to eth1 zovres Linux - Networking 2 05-02-2006 11:01 PM
port forwarding from eth0 to eth1 ? overproof Linux - Networking 7 05-16-2005 03:48 AM
iptables: forwarding SSH connection: eth0 to eth1 hamish Linux - Networking 12 01-14-2005 04:07 PM
IP forwarding from eth0 to eth1 musicman_ace Linux - Networking 5 08-01-2004 05:39 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM


All times are GMT -5. The time now is 01:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration