LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-02-2004, 01:31 PM   #1
menonrr
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Configuring redhat 9 to pass traffic betwen 2 private networks (gateway)


Hello,

I am a fairly new Lunux user.

I am trying to setup a test netork as follows:

172.16.4.0 ---> | eth0_inside (172.16.4.2)-- Redhat 9 Box -- eth1_toRouter (172.16.3.10)| ---> router (172.16.3.4)

eth0_inside IP is 172.16.4.2. The default gateway has the eth1_toRouter's IP 172.16.3.10.

eth1_toRouter IP is 172.16.3.10 and its default gateway is the
router's IP 172.16.3.4.

I edited the sysctl.conf file in /etc to put a value of '1' to
net.ipv4.ip_forward. I rebooted the machine.

Result:

I can ping both interfaces, the router, and the inside hosts
from the linux box.

The hosts can ping only up to eth1_toRouter (172.16.3.10). Not
beyond that.

Your help would be greatly appreciated.


Some output:

[root@localhost log]# cat /proc/sys/net/ipv4/ip_forward
1

[root@localhost log]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.16.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.16.3.4 0.0.0.0 UG 0 0 0 eth1

[root@localhost log]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:60:97F:8A:82
inet addr:172.16.4.2 Bcast:172.16.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:28775 (28.1 Kb) TX bytes:1488 (1.4 Kb)
Interrupt:11 Base address:0xdcc0

eth1 Link encap:Ethernet HWaddr 00:06:5B:B5:86:A9
inet addr:172.16.3.10 Bcast:172.16.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:505 errors:0 dropped:0 overruns:0 frame:0
TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:45158 (44.0 Kb) TX bytes:18754 (18.3 Kb)
Interrupt:11 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:15309 errors:0 dropped:0 overruns:0 frame:0
TX packets:15309 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1044830 (1020.3 Kb) TX bytes:1044830 (1020.3 Kb)
 
Old 09-14-2004, 10:04 AM   #2
linux_newbie_23
LQ Newbie
 
Registered: Sep 2004
Posts: 17

Rep: Reputation: 0
I can't tell from reading your post what the contents of
/etc/sysconfig/network are, on the RH9 box. The line which
starts GATEWAY= should have the address 172.16.3.4, the
address of your router (not the machine's eth1 number).
 
Old 09-14-2004, 07:38 PM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Result:

I can ping both interfaces, the router, and the inside hosts
from the linux box.


OK!

The hosts can ping only up to eth1_toRouter (172.16.3.10). Not
beyond that.


OK!

Your help would be greatly appreciated.

The routing tables from your linux box look correct based on your network description. But you have not shown the routing tables from the router at 172.16.3.4. Based on the above mentioned results, it sounds like the router at 172.16.3.4 does not know how to route packets (like ACKS) back to network 172.16.4.0/24. i.e. via 172.16.3.10
 
  


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
Possible? 1 public subnet/1 private; 1 host: traffic out the way it came in? JMCraig Linux - Networking 8 10-17-2005 08:12 PM
how to configure Private & Public Networks naresh Linux - Hardware 0 11-18-2004 12:49 AM
Wireless traffic stomps isdn traffic on gateway machine Radix999 Linux - Wireless Networking 0 11-14-2003 12:54 AM
Multiple private networks interconnection via internet cardner Linux - Networking 0 01-14-2002 02:15 PM
VPN - Virtual Private Networks? bnicolas Linux - Newbie 1 08-16-2001 04:24 PM

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

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