Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Internet Connection Sharing Linux

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-01-2005   #1 (permalink)
Linux Newbie
 
Join Date: Nov 2004
Posts: 167
Internet Connection Sharing Linux

hello all,

Pls, Ive tried to get my Linux PC to act as a Internet gateway for my other two computers(Windows).

I have 2-network cards, etc, and both are detected when I do "ifconfig" etc. I followed the tutorial i found at:
http://www.tldp.org/HOWTO/Home-Netwo...OWTO.html#toc5
but i still cant get my other network card to route.....i mean for it to assign the 192.168.0.......ips to my other computers

pls help

thanks
toks
Tokunbo is offline  



Reply With Quote
Old 07-01-2005   #2 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Why not give them 192.168.0.x addresses statically?
anomie is offline   Reply With Quote
Old 07-01-2005   #3 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
I found this HOWTO to be the quickest path to what you are trying to do. The HOWTO that you mentioned should help you to get your computers pinging each other, then the one here should get the masquerading to work.
__________________
/IMHO
//got nothin'
///this use to look better
drakebasher is offline   Reply With Quote
Old 07-01-2005   #4 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
I wasted a lot of time before I figured out that 2 cards in one machine must be on 2 separate "networks", and that is set by the IP and the netmask. I agree with anomie that it will be easiest to get it set up with static IPs. No promises, but maybe:

ifconfig eth0 192.168.0.1 netmask 255.255.255.248
ifconfig eth1 192.168.0.9 netmask 255.255.255.248

The Windows machine connected to 192.168.0.1 can be set to 192.168.0.2 (or 3...7). The one connected to 192.168.0.9 can be set to 192.168.0.10 (or 11...15). Make sure that the Windows machines have default gateway set for the address they are connected to: either 192.168.0.1 or 192.168.0.9.

Each Windows machine should be able to ping the address they are connected to, and then you are ready to look at the Masquerading-Simple-HOWTO.
__________________
/IMHO
//got nothin'
///this use to look better
drakebasher is offline   Reply With Quote
Old 07-03-2005   #5 (permalink)
Just Joined!
 
Join Date: Jul 2005
Location: Colorado
Posts: 4
Send a message via Yahoo to uberlinux
One super-easy way would be to install firestarter, the first time you run it, there is a walkthrough setup that will config all that stuff for you.
uberlinux is offline   Reply With Quote
Old 07-03-2005   #6 (permalink)
Linux Newbie
 
Join Date: Feb 2005
Location: Texas
Posts: 168
A wireless router is a very simple solution.

I have verizon DSL. My linux computer is the only one hardwired to router. I have as many as three additional computers running wireless at one time. Performance was very good. Verizon included the Westel wireless router with the service.

Just a thought.
__________________
Registered Linux User #391940
jlgreer1 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:39 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1