LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2005, 11:55 AM   #1
izghitu
Member
 
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 108

Rep: Reputation: 16
Please help with IP forwarding


Hello everyone

I have 2 PCs in a network
One has Windows XP on it with one ethernet controller
and one has Linux Fedora Core 4 on it with 2 ethernet controllers
on eth0 i have the internet connection
and eth1 is linked with the Windows PC
the IP forwarding is enabled on the Linux PC

please tell me what steps i must take to enable the internet connection on the Windows PC

Thank You
 
Old 11-09-2005, 12:19 PM   #2
Brubano
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Since you already have forwarding set up on the Linux box, set the Windows systems gateway to the IP of the Linux box. You can do this in the properties of the Network Connections on the interface of the Windows box, or you can use dos...

Click Start, Run and type in cmd and hit enter. When the command prompt comes up, type in...

route add 0.0.0.0 mask 0.0.0.0 [enter the IP of your Linux box's PC connection]

Bob
 
Old 11-09-2005, 12:30 PM   #3
izghitu
Member
 
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 108

Original Poster
Rep: Reputation: 16
my eth1 IP and netmask are 10.0.0.1 255.255.0.0
windows IP 10.0.0.2 255.255.0.0

i added the gateway 10.0.0.1 to my windows pc as you told me

and it does not works

do i need to do something on the linux PC? to tell linux to forward the internet into eth1?
 
Old 11-09-2005, 12:42 PM   #4
Brubano
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
You do need to have your Linux box set up to forward. Are you using a firewall on the Linux box? If you are using IP tables you need to make sure it's set up to do IP forwarding. You should also consider Masquerading
which is another name for Network Address Translation or NAT. Go here to learn more.... http://www.indyramp.com/masq/ipmasq-HOWTO-m.html
 
  


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
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 01:10 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 08:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 01:08 PM
IP Forwarding Dhax Linux - Networking 2 03-20-2004 11:13 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 11:37 AM


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