LinuxQuestions.org
Visit Jeremy's Blog.
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 08-08-2003, 05:23 PM   #1
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Rep: Reputation: 15
internet connection sharing with two red hat computers.


i recently switched from being a mandrake newbie to a redhat newbie as mandrake gave me all kinds of hell...but the one thing it did do right was internet connection sharing and configuring my network. since i switched to redhat i have been unable to share my internet connection and even if i had my two computers networked correctly i probably wouldnt know as i am total newbie. i have searched the net for days and finally figured out that it *might* have something to do with dhcp but have no idea how to set up a server or a client. what i would like most of all is for someone to tell me exactly what i have to do to set it up manually.....or tell me if theres some kinda program that will do it all for me.

cheers
 
Old 08-08-2003, 05:52 PM   #2
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
sig link..

I dont know why the moderators dont sticky it
 
Old 08-09-2003, 04:41 PM   #3
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
ive tried ip tables

i tried ip tables and i know how 2 set them up now...but thats not the problem really. i set all that up on my pc and the other redhat pc still wont share the internet connection with my pc. i tried switchin my pc to windows and sharin the net connection that way but the other pc still wouldnt surf the net.
 
Old 08-11-2003, 10:08 AM   #4
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
setup your sharing computer, using my signature link..

Then set your other computers default gateway, your internet sharing pc internal ip address.

And setup proper dns servers...
 
Old 08-11-2003, 11:05 AM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
In RedHat, you need to activate IP forwarding.

Edit the file /etc/sysctl.conf and on the line net.ipv4.ip_forward = 0, change 0 to 1.
Code:
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
Internet Sharing for RedHat
http://www.linuxquestions.org/questi...351#post395351
 
Old 08-11-2003, 12:54 PM   #6
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
thanks but ive already activated ip forwarding and done all that and tbh i think i sorted it out on the router machine. what i really need help with is setting up the other computer to accept the internet connection sharing if u understand what i mean.,.....
 
Old 08-11-2003, 12:57 PM   #7
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
Quote:
Originally posted by hakcenter
setup your sharing computer, using my signature link..

Then set your other computers default gateway, your internet sharing pc internal ip address.

And setup proper dns servers...
 
Old 08-12-2003, 06:03 AM   #8
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
ok im not stupid i already did that and its not workin. i also downloaded a pretty gd firewall called firestarter that sets up NAT for me, and the other computer still wont share the connection. ive set the gateways and the dns server
 
Old 08-12-2003, 08:58 AM   #9
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
I am confused about the layout of your network.
or maybe I am just to sleepy


You have a RedHat system and a Mandrake system.
How is everything setup (physically) ?

You mentioned a "router machine"
Is it a router or are you referring to the RedHat computer ?
 
Old 08-12-2003, 09:02 AM   #10
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
ok let me start again.
My computer = the computer with an internet connection (the connection i want to share) this computer is on redhat
My sisters computer = the computer i want to connect to the internet through my computer, also on redhat

i set up my computer with ip tables, i also used a program that does NAT for me and i activated ip forwarding, i also set the gateway on my sisters computer to my ip address, but my sisters computer wont accept the internet connection
 
Old 08-12-2003, 09:50 AM   #11
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
From your sister's PC, can you ping your PC ?
If yes, can you ping the internet ?
 
Old 08-13-2003, 09:48 AM   #12
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
i wud tell you the answers 2 both those questions if i knew how 2 ping my pc :S
 
Old 08-13-2003, 10:02 AM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Open an x terminal and type:

ping 192.168.0.2

Essentially

ping <IP>
ping <computer-name>

Red Hat Network-Related Configuration

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 08-13-2003 at 10:05 AM.
 
Old 08-14-2003, 09:51 AM   #14
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
ok i just tried 2 ping my sisters computer from my computer, and it didnt work. so i tried to ping my computer from my sisters computer, and that didnt work either.....i think i dont have the network card or summit set up on my sisters computer properly. linux detects it a a dec clone or summit.....and thats all the information i have..are there any generic drivers or summit??
 
Old 08-14-2003, 10:26 AM   #15
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
We need to find out if RedHat Linux has detected your network cards.
The following syntax will tell you which network card is associated with which interface (eth).
Code:
dmesg | grep eth
If you find your network cards, you can now use the Network Configuration GUI to setup your eth devices.
Type: redhat-config-network-gui
In the Hardware tab, your Network Cards should be listed.
 
  


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
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
Internet sharing XP -> red hat 7.3 elche Linux - Wireless Networking 2 12-17-2003 11:55 AM
Internet connection sharing with Red Hat 9 CatSC Linux - Networking 0 11-06-2003 07:52 AM
Red Hat/XP Connection sharing NickB Linux - Networking 2 08-06-2003 08:24 AM
Connection Sharing on red hat 9 pinkmasta Linux - Networking 3 07-30-2003 06:36 AM

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

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