Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 NIC's and NAT

Reply
Thread Tools Display Modes

2 NIC's and NAT

 
 
boxers999
Guest
Posts: n/a

 
      03-14-2006, 05:46 PM
Hi All,

I have a RH9 box with 2 NIC's. One is my outside (eth0) 217.x.x.x and
the other is the inside (eth1)192.168.0.253.

The inside is wired to a switch and the outside goes to a BT router
with static ip. The switch on the inside will have 1 pc connected with
the ip 192.168.0.90 and the gateway set as 192.168.0.253.

On the linux box I can access the internet through eh0 without any
problem. I can ping the laptop on 192.168.0.90 no problem. The laptop
can ping 217.x.x.x and 192.168.0.253 no problem.

I have set ip_forward to 1

What else do I need to do to get 192.168.0.90 on the internet thorough
the redhat box ?

Thanks for the help.

 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      03-14-2006, 06:16 PM
boxers999 wrote:
> Hi All,
>
> I have a RH9 box with 2 NIC's. One is my outside (eth0) 217.x.x.x and
> the other is the inside (eth1)192.168.0.253.
>
> The inside is wired to a switch and the outside goes to a BT router
> with static ip. The switch on the inside will have 1 pc connected with
> the ip 192.168.0.90 and the gateway set as 192.168.0.253.
>
> On the linux box I can access the internet through eh0 without any
> problem. I can ping the laptop on 192.168.0.90 no problem. The laptop
> can ping 217.x.x.x and 192.168.0.253 no problem.
>
> I have set ip_forward to 1
>
> What else do I need to do to get 192.168.0.90 on the internet thorough
> the redhat box ?
>
> Thanks for the help.
>


You need the NAT.

Have a look at Rusty's Remarkably Unreliable Guides at
<http://people.netfilter.org/rusty/unreliable-guides/>.

The 2.4 guide works pretty well with 2.6, too.

HTH

--

Tauno Voipio
tauno voipio (at) iki fi
 
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




1 2 3 4 5 6 7 8 9 10 11