LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 05-22-2007, 12:23 AM   #1
sridhar_dct3
Member
 
Registered: May 2007
Location: india,chennai
Distribution: debian,ubuntu linux
Posts: 30

Rep: Reputation: 15
connecting LAN to a internet


Dear all,

I want to connect a server to a internet . For example
I have machines A,B,C in LAN .
I wanted to make A as gateway and it should see the outside world.

Inserted two ethernet card in machine A and configured everything.
I am able to ping the google.com from A but I was not able to ping google.com from machine B neither machine C.

I specified the gateway server for B and C as A .

Machine A:
eth0 configured in 192 series.
eth1 configured in 60 series.(outside world).

Machine B&C
eth0 configured in 192 series and able to ping machine A.
gateway is machine A.

now anyone please help me how can I ping google.com from machine B or C.
 
Old 05-22-2007, 01:49 AM   #2
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
http://linux-ip.net/html/ch-nat.html

There are scripts that will do it for you.
 
Old 05-22-2007, 01:59 AM   #3
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
Have you entered anything in iptables to transfer everything from eth0 to eth1? Basically saying input from the 192 series needs to go to the 60 series.
This site might help you out. I am not sure how familiar you are with linux, but maybe take a look:
http://www.tldp.org/HOWTO/IP-Masquer...-examples.html

Hope this helps,
DragonM15
 
Old 05-22-2007, 07:48 AM   #4
kiran_cyberpro
LQ Newbie
 
Registered: May 2007
Distribution: Fedora
Posts: 11

Rep: Reputation: 3
You have to share the machine B, C to your existing internet connection i guess, so that u can use them also for surfing, etc. U can use machine A as a gateway, and make it run like a router as the above mentioned replies. Then enable NAT in machine A so that u can share internet to any number of machines of your LAN.

rgds, kiran_cyberpro
 
Old 05-23-2007, 11:14 PM   #5
sridhar_dct3
Member
 
Registered: May 2007
Location: india,chennai
Distribution: debian,ubuntu linux
Posts: 30

Original Poster
Rep: Reputation: 15
Dear all ,

Thanks for your replies . IP - masquerade helped me to solve the problem.
thanx.

Regards
M.Sridhar
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting a computer to the Internet via LAN deki Linux - Networking 1 01-11-2006 12:15 AM
connecting Linux LAN to internet asahlot Linux - Networking 6 10-14-2005 01:23 PM
Connecting to the internet through my school's LAN Brakki Linux - Networking 1 03-31-2004 02:20 PM
Problem with LAN connecting to internet. duffboygrim Linux - Networking 6 02-29-2004 04:50 PM
Connecting to internet through LAN HELP PLZ TheTruthHurts Linux - Networking 7 10-01-2003 09:32 AM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration