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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to share my internet connection using two NICs in my fedora 14 machine. My eth1 connects me to the internet and my eth0 connects me to my windows machine. Below is the snapshot of my ifconfig. I am being able to ping my windows machine from my linux and vise- versa but I am not sure as to what do I have to do to bridge the two network cards.
I would be very grateful if someone can guide me through the process. I suppose I'll have to use the route command. I tried changing the setting of my eth1 card to "Shared to Other Computer" but it didnt work .
Yes , my internal network on eth0 and external network on eth1. And in the example, the internal network was on eth1 and the external network was on eth0 , so just swapped all the eth0 with eth1 n visa-versa . But all in vain
Thank you everyone for your prompt replies especially repo your post did the trick for me. I flushed my iptables and ran the commands again and I was able to ping my internet gateway from my windows machine. The only additional thing I had to do which I am mentioning for future reference for someone in need is , I had to add my internet dns ip in my windows machine. Thanks a lot everyone . And repo I did what the post told me to do but I didn't understand some parts of it like in the command
Code:
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
What does MASQUERADE mean?
Will that be possible for to provide me a reference as to what these commands signify. Yes, I do understand that I am forwarding all the request from eth1 to eth0 and eth1 is responding to each request by natting my external IP to a local IP , but I am not very much clear with this. Can you please help me understand the commands for my learning purpose.
Thank You
Regards
Last edited by Genocide_Hoax; 09-09-2011 at 04:13 PM.
Reason: mistyping
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.