Internet Sharing Fedora 14 and Win XP
Hello Everyone ,
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. Code:
IP : 192.168.0.2 Subnet Mask : 255.255.255.0 Default Gateway : 192.168.0.1 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 :(. Regards P.S : I m using Windows XP Home Edition |
|
1 Attachment(s)
Hi,
Stop making things difficult...there's an easy way around this :)... Look at the attached scetch. Set things up like this and you're set. You need a switch in the works. Give each box a static IP and set the IP of the modem as default gateway, for the Linux box Quote:
I'll keep this thread on the scope :D Thor |
Not every body has a switch though.
Furthermore, you can use the linux box as firewall for the Windows box. Kind regards |
Quote:
:) |
Quote:
|
Quote:
I don't have a modem. its a direct wired connection , I mean a rg45 feeds directly to my machine and I connect to a local gateway for my connection. |
Do you use the correct nic for internal and external network?
Kind regards |
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 :(
|
Do you have a firewall running?
Try to flush the firewall before adding the rules Code:
iptables -F Perhaps this can help http://www.howtoforge.com/nat_iptables Kind regards |
this works for me:
http://www.linuxquestions.org/questi...6/#post3804866 |
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 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 |
|
Thanks a lot !
|
You're welcome.
Kind regards |
All times are GMT -5. The time now is 06:19 AM. |