Networking Forums

Networking Forums > Computer Networking > Linux Networking > Routing on Red Hat Linux 9

Reply
Thread Tools Display Modes

Routing on Red Hat Linux 9

 
 
Aleksandr Zingorenko
Guest
Posts: n/a

 
      07-07-2003, 07:00 PM
I am trying to set up a LAN consisting of a machine running Red Hat Linux 9
acting as a firewall and router and a Windows 2000 machine that I would like
to use to access the Internet from behind the firewall. The Linux machine
accesses the Internet correctly through the eth0 interface. The Windows
machine, however, cannot access the Internet; it can successfully ping the
IP address of the network card in the Linux machine it is connected to
(eth1) and the IP address of the eth0 card, but pinging our gateway fails.
The Linux machine can successfully ping both the Windows machine and the
gateway. Could someone please tell me what causes this problem and possibly
how to fix it? Thank you.


 
Reply With Quote
 
 
 
 
Martin Cooper
Guest
Posts: n/a

 
      07-07-2003, 10:30 PM
"Aleksandr Zingorenko" <(E-Mail Removed)> wrote:

> I am trying to set up a LAN consisting of a machine running Red Hat Linux

9
> acting as a firewall and router and a Windows 2000 machine that I would

like
> to use to access the Internet from behind the firewall. The Linux machine
> accesses the Internet correctly through the eth0 interface. The Windows
> machine, however, cannot access the Internet; it can successfully ping the
> IP address of the network card in the Linux machine it is connected to
> (eth1) and the IP address of the eth0 card, but pinging our gateway fails.
> The Linux machine can successfully ping both the Windows machine and the
> gateway. Could someone please tell me what causes this problem and

possibly
> how to fix it? Thank you.
>


To an extent, this depends on your setup. If you are using static IP's,
then you probably need to run the command :-

echo 1 > /proc/sys/net/ip_forward

To enable IP forwarding, then setup appropriate routing for your network.
If you are using a private IP range, then you need to setup IP Masquerading,
in which case, search google for 'IP masquerading howto' for more
information on how to set that up.

--

Martin
 
Reply With Quote
 
W Cardwell
Guest
Posts: n/a

 
      07-08-2003, 01:17 PM
Do you have the IP address of the Linux eth1 specified as the gateway for
the Win2k box?

Some setup specifics would help, such as the output of 'ifconfig',
'route -n', and 'iptables -L -n' on the Linux box and 'ipconfig /all' from
the Win2k box.


"Aleksandr Zingorenko" <(E-Mail Removed)> wrote in message
news:beco94$pt7$(E-Mail Removed)...
> I am trying to set up a LAN consisting of a machine running Red Hat Linux

9
> acting as a firewall and router and a Windows 2000 machine that I would

like
> to use to access the Internet from behind the firewall. The Linux machine
> accesses the Internet correctly through the eth0 interface. The Windows
> machine, however, cannot access the Internet; it can successfully ping the
> IP address of the network card in the Linux machine it is connected to
> (eth1) and the IP address of the eth0 card, but pinging our gateway fails.
> The Linux machine can successfully ping both the Windows machine and the
> gateway. Could someone please tell me what causes this problem and

possibly
> how to fix it? Thank you.
>
>



 
Reply With Quote
 
Aleksandr Zingorenko
Guest
Posts: n/a

 
      07-09-2003, 12:56 PM
Thank you very much for your advice - I now have a working Linux router.
However, I found out that after setting up IP Masquerading, as shown in the
Red Hat Linux 9 Bible, the Kernel IP routing table was set up wrong - it had
2 identical routes to the Windows machine via interface eth2, which at this
point is unconnected, even though the Windows machine is connected to the
router via eth1 and could connect to the Internet after a manually added a
single appropriate route. Did I do something wrong beforehand, or did I
encounter a (mis)feature of Red Hat Linux that must be manually corrected if
necessary?

"Martin Cooper" <(E-Mail Removed)> wrote in message
news:gemini.3f09f478014ebf21%(E-Mail Removed). ..
> "Aleksandr Zingorenko" <(E-Mail Removed)> wrote:
>
> > I am trying to set up a LAN consisting of a machine running Red Hat

Linux
> 9
> > acting as a firewall and router and a Windows 2000 machine that I would

> like
> > to use to access the Internet from behind the firewall. The Linux

machine
> > accesses the Internet correctly through the eth0 interface. The Windows
> > machine, however, cannot access the Internet; it can successfully ping

the
> > IP address of the network card in the Linux machine it is connected to
> > (eth1) and the IP address of the eth0 card, but pinging our gateway

fails.
> > The Linux machine can successfully ping both the Windows machine and the
> > gateway. Could someone please tell me what causes this problem and

> possibly
> > how to fix it? Thank you.
> >

>
> To an extent, this depends on your setup. If you are using static IP's,
> then you probably need to run the command :-
>
> echo 1 > /proc/sys/net/ip_forward
>
> To enable IP forwarding, then setup appropriate routing for your network.
> If you are using a private IP range, then you need to setup IP

Masquerading,
> in which case, search google for 'IP masquerading howto' for more
> information on how to set that up.
>
> --
>
> Martin



 
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
Linux Routing billdangerous@gmail.com Linux Networking 5 09-11-2008 01:53 PM
Linux Routing Noah Roberts Linux Networking 6 01-16-2005 01:36 AM
If I replace my existing Linksys box with Linux Router, how can I know what kind of Routing to be enabled on my Linux Box? santa19992000@yahoo.com Linux Networking 3 01-06-2005 01:18 PM
linux routing help Jemy Linux Networking 2 08-27-2004 10:34 AM
linux routing Jemy Linux Networking 2 08-24-2004 03:21 AM



1 2 3 4 5 6 7 8 9 10 11