LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10:55 AM   #1
izghitu
Member
 
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 109

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, 11:19 AM   #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, 11:30 AM   #3
izghitu
Member
 
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 109

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, 11:42 AM   #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



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 12:10 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
IP Forwarding Dhax Linux - Networking 2 03-20-2004 10:13 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:19 PM.

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