Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.