Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-25-2012, 03:39 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2011
Distribution: Kubuntu Precise, Debian Lenny
Posts: 14
Rep: 
|
How do I forward connections to a computer on a bridged network connection?
I have two computers connected together via Ethernet, and I've set up Computer 1 to share its WiFi Internet connection to Computer 2 using this guide. Everything works well, except that Computer 2 is being issued IP address 10.42.0.70 by Computer 1 rather than a 192.168.1.x address by my wireless router, so Computer 2 and the other computers on my network (besides Computer 1) can't access each other. Is there a way I can set up Computer 1 so that connections made to a certain port on it will be forwarded to Computer 2?
Many thanks in advance.
|
|
|
|
07-26-2012, 11:25 AM
|
#2
|
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 314
Rep:
|
That is definitely not a guide for network bridges. It just tells you how to set up your network card to use auto (dhcp) settings, using a specific GUI tool of a specific Desktop Environment. You need a package called bridge-utils, and use brctl to set up a bridge in Linux.
|
|
|
1 members found this post helpful.
|
07-26-2012, 12:06 PM
|
#3
|
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,270
Rep:
|
This tutorial on the Ubuntu forums is actually how someone bridged their WiFi and Wired networks, this is more likely to get you to your goal. The tutorial you used turns the machine into a router, not a bridge.
|
|
|
1 members found this post helpful.
|
07-28-2012, 01:08 PM
|
#4
|
|
LQ Newbie
Registered: Dec 2011
Distribution: Kubuntu Precise, Debian Lenny
Posts: 14
Original Poster
Rep: 
|
Okay, I found this article in the Debian wiki describing how to set up a network bridge via brctl. Just so I'm fully clear before I try this, it will allow my router to see both computers and issue them each a unique IP address, correct?
|
|
|
|
07-28-2012, 11:10 PM
|
#5
|
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,270
Rep:
|
A bridge allows all members to see the traffic. The only issue I see as possible is your wireless refusing to transmit traffic that originates from a different MAC addresses. I have had this happen and ended up having to use a proxy server on the machine I tried to use as a bridge. But that was also with an old chipset.
|
|
|
1 members found this post helpful.
|
07-29-2012, 11:16 AM
|
#6
|
|
LQ Newbie
Registered: Dec 2011
Distribution: Kubuntu Precise, Debian Lenny
Posts: 14
Original Poster
Rep: 
|
It looks like the writers of brctl anticipated that problem, because running
Code:
# brctl addif br0 eth0 wlan0
yields the message "can't add wlan0 to bridge br0: Operation not supported." Searching around on forum posts indicates that the MAC address authentication issue is the reason for this.
I think I'm just going to get a wlan card for Computer 2. That way I won't have to have both computers on to access the network from it.
Thanks anyway for the assistance.
Last edited by Kvbx4; 07-29-2012 at 11:17 AM.
Reason: wording
|
|
|
|
07-29-2012, 12:52 PM
|
#7
|
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 314
Rep:
|
That was the problem I had when I tried that too. I ended up buing a 15 meter cable 
|
|
|
|
07-29-2012, 11:14 PM
|
#8
|
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,270
Rep:
|
It can be done though because I have done it, and the article you linked to uses ebtables to get around the MAC address issue. I don't know why it won't bridge them.
|
|
|
|
07-29-2012, 11:21 PM
|
#9
|
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,270
Rep:
|
After reading a couple posts you need to change the operating mode of your wireless card. Your wireless will not obtain an IP address, ethernet interface should. Look at hostapd http://linuxwireless.org/en/users/Documentation/hostapd this would turn the wireless card into an AP essentially and allow you to bridge it. That is provided the chip set supports the proper operating mode https://help.ubuntu.com/community/WifiDocs/MasterMode
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:41 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|