LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-03-2002, 08:01 PM   #1
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
internet sharing


I have computer 1 with 2 nics.
nic 1 is connected to the cable modem.
nic 2 is connected to the hub. nic 2 has an ip of 192.168.0.1. computer 1 can browse the INTERNET.

Computer 2 has one nic connected to the hub. it has an ip of 192.168.0.2.

Here is where I am lost. I have set the gateway of computer 2 to 192.168.0.1. Computer 2 can ping its own nic. computer 2 can ping the default gateway 192.168.0.1. Computer 1 can ping the computer 2's nic (192.168.0.2).

In short they can ping each other but computer 2 cannot access the INTERNET through comnputer 1. How would i fix this? I don't know what else to post so let me know and it will get up here.

Gonus
 
Old 11-03-2002, 08:40 PM   #2
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
You'll need to use IPMasquerading for your 2nd computer.

Check out:

http://www.tldp.org/HOWTO/IP-Masquer...WTO/index.html
 
Old 11-03-2002, 10:35 PM   #3
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
Ok. I make the script. make the script an executable. make the script run on boot. Then since I have allrdy set up the gateway etc I wont need to do anything else? The script will handle it? If this is an incorrect assumption pls let me know a bit new to networking in linux.

Gonus
 
  


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
Internet Sharing crazykiller Linux - Networking 12 10-29-2005 05:06 AM
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 01:30 PM
internet sharing vher Linux - Networking 2 01-18-2003 03:30 AM
internet sharing jetfreggel Linux - Newbie 11 05-23-2002 11:30 PM

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

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