LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-13-2013, 03:33 AM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
Guidance on sharing internet, in a particular "router+machines" setup


Hi all.

Today, I came across the following usage scenario ::

1)
One router, serving internet, through wifi and wires.


2)
First machine, running Fedora-17, that was connected to internet, through its wifi interface.

This first machine, has both wireless and wired interface-cards.


3)
Another (second) machine was bought in, running Windows-7.

This second machine, has only wired interface.



Now, what I wanted is if somehow the internet could be made available on the second machine, by inter-connecting the first and second machine through a normal ethernet cable. However, I could not make it run

(As a bad workaround, I connected the second machine to the router via the ethernet cable, and got the internet working).


However, I am very interested in knowing how to accomplish what I originally intended. Looking at http://docs.fedoraproject.org/en-US/...rk-bridge.html, it seems that bridging is the way to go, but this link seems to be valid only for VMs.


I will be grateful if any of you could point me to the right direction, of where to start? Just some "keywords" will be enough to get me started


Looking forward to some knowledge-enhancement gems


Thanks and Regards,
Ajay

Last edited by ajaygarg; 06-13-2013 at 03:35 AM.
 
Old 06-13-2013, 03:54 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
I do not believe you can add wireless interface to bridge, so why arn't you looking at the NAT configuration? it is documented much better than bridge
 
Old 06-13-2013, 04:05 AM   #3
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
it's not for fedora, but the distribution i use has a great simple guide for this kind of thing. you will need to enable ip forwarding on the fedora machine and use iptables to masquerade traffic going from fedora to the main router, also on the Win7 machine you will need to make sure it has a different IP subnet than the one given out by the main router. also set the Win7 default gateway to be the fedora machine.

here is a guide from my distros wiki
https://wiki.archlinux.org/index.php/Internet_Share
 
Old 06-13-2013, 04:25 AM   #4
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Thanks Ygrex and psycroptic for the replies.
That did it
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LM13, How to setup bridge? USB wlan1 -->wireless eth1 / ad-hoc "hotspot"? / "ICS" ? Scott1265 Linux - Wireless Networking 1 05-08-2013 11:15 AM
How can I "keep" yum'ed RPMs so I can setup a new FC10 pc WITHOUT internet access? rylan76 Fedora 15 01-09-2009 02:54 PM
Sharing internet connection (DSL router) betweeen two machines vharishankar Linux - Networking 7 12-15-2005 05:20 AM
Internet sharing issue "URGENT" sudheendra.ss Linux - Networking 5 04-03-2005 10:54 PM
RedHat 8 and "Could not look up internet address for dhcppcl" with router lfierro Linux - Newbie 0 12-08-2004 08:30 AM

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

All times are GMT -5. The time now is 07:25 AM.

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