LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-12-2001, 05:29 PM   #1
Disarray0019
LQ Newbie
 
Registered: Jul 2001
Location: Denver
Distribution: Suse 7.1, RH 6.2
Posts: 8

Rep: Reputation: 0
Sharing an internet connection


I am trying to access the internet on a windows box through my RH 7.1 box. My RH box is has 2 NIC's, one connecting to a cisco router (it does NAT), and the other connecting to my windows box. Eth0 is configured as follows IP=10.0.0.3 NET=255.255.255.0 GATEWAY=10.0.0.1, this NIC connects to my router. Eth1 is configured as follows IP=10.0.1.1 NET=255.255.255.0 and it connects to my windows box. My windows NIC is set up as follows IP=10.0.1.2 NET=255.255.255.0 GATEWAY=10.0.1.1. I can ping both NIC's from my windows box, but I can't ping the gateway of eth0 (10.0.0.1). Can someone please help me out or push me in the right direction. Thanks for any help...
 
Old 10-13-2001, 11:57 AM   #2
warath
Member
 
Registered: Oct 2001
Location: Ontario, Canada
Distribution: Redhat 9
Posts: 43

Rep: Reputation: 15
Have you setup the correct iptables or ipchains?
If you use iptables, make sure to disable ipchains from starting up. RH7.1 seems to load both out of the box, which i found not to be good.
Also, make sure your default gateway on the linux box is 10.0.0.1 (your router).
also, run
$# route -n
on the linux box to make sure all the correct routes are setup.
 
Old 10-17-2001, 12:26 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
amoung the other things like ipchains or tables you also need to set up forwarding

[root@echo ipv4]# cat /proc/sys/net/ipv4/ip_forward
1
-------------------------------------------------------------
if this gives you a 0 then do this command

echo 1 > /proc/sys/net/ipv4/ip_forward
-------------------------------------------------------------
and the network file

[root@echo ipv4]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=echo
GATEWAY=150.10.128.5
GATEWAYDEV=eth0
 
  


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
sharing my internet connection berrance Linux - Networking 1 02-25-2005 11:33 AM
SHaring internet connection bart59 Linux - Networking 1 01-27-2005 07:24 AM
Internet Connection Sharing geekbyday Linux - Networking 9 11-19-2004 10:59 PM
Internet connection sharing mark_booze Linux - Newbie 22 01-02-2004 12:37 AM
Internet Connection Sharing Chijtska Linux - Networking 7 09-02-2002 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:41 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