Networking Forums

Networking Forums > Computer Networking > Linux Networking > IP Fowarding in Red Hat

Reply
Thread Tools Display Modes

IP Fowarding in Red Hat

 
 
Baruah
Guest
Posts: n/a

 
      07-30-2003, 08:45 AM
Hi all,
I'm having some problem in IP FORWARDING in Red Hat.
My network is as follows:

winXP -----------------------eth1---------------eth0-------------SUN
SERVER
172.16.10.2 172.16.10.1 172.16.2.10
172.16.2.1
255.255.255.0 255.255.255.0 255.255.255.0
255.255.255.0
GW:172.16.10.1 GW:172.16.2.1


eth1 and eth0 are the 2 LAN cards of my Linux machine which I would
like to use as a gateway for the 172.16.10.x network. I have enabled
IP forwarding in that machine by putting:
1. echo "1" > /etc/sys/net/ipv4/ip_forward in
/etc/rc.d/rc.local. I have verified it by using
sysctl -a | grep ip.for which shows
net.ipv4.ip_forward=1

2. my /etc/sysconfig/network file is
NETWORKING=yes
GATEWAY=172.16.2.1
FORWARD_IPV4="yes'
GATEWAYDEV="eth0"

The problem is that the LINUX box is not forwarding packets going out
of the WIN-XP machine to the SUN SERVER.

If I do a tracert from the WIN-XP it shows that the packet reaches
upto 172.16.10.1 i.e. the eth1 of the linux machine but don't go
beyond that. I can even ping to the other interface
card(eth0:::172.16.2.10) of the LINUX box from WIN-XP.

The whole purpose of this design is to use some software in the SUN
SERVER from the WIN-XP Clients.

I wonder what may be the reason ? Can anyone please show me a way ?

thanks in advance

regards
bhaskar.
 
Reply With Quote
 
 
 
 
Timo Voipio
Guest
Posts: n/a

 
      07-30-2003, 03:25 PM
Baruah wrote:

> winXP -----------------------eth1---------------eth0-------------SUN
> SERVER
> 172.16.10.2 172.16.10.1 172.16.2.10
> 172.16.2.1
> 255.255.255.0 255.255.255.0 255.255.255.0
> 255.255.255.0
> GW:172.16.10.1 GW:172.16.2.1


Eurgh. Linewrap and non-proportional font broke the figure, but I'll try to
figure out...

So, does the GW: 172.16.2.1 mean that in the Sun server you have set the
default gateway to 172.16.2.1? If so, change it to 172.16.2.10 (if it is the
Linux box's address?)

> The problem is that the LINUX box is not forwarding packets going out
> of the WIN-XP machine to the SUN SERVER.


What does 'route -n' say (in the Linux box)?

> If I do a tracert from the WIN-XP it shows that the packet reaches
> upto 172.16.10.1 i.e. the eth1 of the linux machine but don't go
> beyond that. I can even ping to the other interface
> card(eth0:::172.16.2.10) of the LINUX box from WIN-XP.


Hmm. So Sun isn't returning the packets. What does Sun's route table look like?

> The whole purpose of this design is to use some software in the SUN
> SERVER from the WIN-XP Clients.


> I wonder what may be the reason ? Can anyone please show me a way ?


You don't happen to have any firewalls in place?

-Timo

--
Timo Voipio | Helsinki, Finland | ICBM at: 60 11.800 N 024 52.760 E
GeekCode ver 3: GU>CC d s-: a--- C++ UL(+)$>+++$ P+>+++ L++(+) E- W++ N++
o? K? w O M- V- PS PE Y+ PGP+ t 5++ X R tv- b++(++++) DI+ D G e- h! r !y
Remove +newsharvested to e-mail me | Poista +newsharvested jos meilaat

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
port fowarding for DNS Vwaju Linux Networking 8 10-14-2008 11:11 PM
DNS just stopped working - not fowarding! Cyphos Windows Networking 1 01-23-2006 03:08 PM
Port Fowarding T.C. Broadband Hardware 6 12-01-2004 04:29 AM
seting up port fowarding Avi Broadband Hardware 4 09-29-2004 04:05 AM
port fowarding for winmx corey Broadband Hardware 1 02-14-2004 01:33 PM



1 2 3 4 5 6 7 8 9 10 11