Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old December 5th, 2007   #1
allnightarockin
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 5
Wireless Laptop as Ethernet Bridge

I have a wifi a card in my laptop. I would like to take the signal i get from my wireless access point and connect my PS2 or my other laptop up to the internet/network through the ethernet cord on my laptop
So it would look like this
Modem>Router>Ubuntu WiFi> Ethernet/Cat5 Device

Any help would be appreciated..
I suppose i could bridge the connection between my wifi and ethernet cord but im not 100% sure how to do that..
i am semi-new to Ubuntu but i know the basics and a little bit more, so any hints you could give me would be amazing =]]

Thank you, and hope to hear back soon.
-Robert
allnightarockin is offline   Reply With Quote
Old December 5th, 2007   #2
Friek
5 Cups of Ubuntu
 
Join Date: Jun 2007
Location: Drachten, The Netherlands
My beans are hidden!
Kubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Friek
Re: Wireless Laptop as Ethernet Bridge

That shouldn't be too hard. I've done it once too.
You need to install bridge-utils. Then you'll have to do something like:
Code:
brctl addif br0
ifconfig br0 up
Delete the IP from your wlan interface and add it to your bridge interface, for example:
Code:
ip addr del 192.168.11.14/24 dev wlan0
ip addr add 192.168.11.24/24 dev br0
route add default gw 192.168.11.1
Now you've lost your network connectivity, and you have to configure the bridge:
Code:
brctl addif br0 wlan0
brctl addif br0 eth0
That should restore the connectivity _and_ add your non-wireless nic to the bridge. With this configuration it should be working. I haven't tested it, but it should go fine.

Good luck
(ofcourse you need to replace the interface names and ip's if their named/numbered differently)
Friek is offline   Reply With Quote
Old December 5th, 2007   #3
allnightarockin
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 5
Re: Wireless Laptop as Ethernet Bridge

Thank you for replying so quick Friek..

I had a bunch of stuff here but it doesnt apply anymore so i am just gonna edit it out =]

Please read next post though, im still having issues.
__________________
Help: Wireless Laptop as Ethernet Bridge
Thanks if you can help me =]]

Last edited by allnightarockin; December 6th, 2007 at 01:08 AM.. Reason: Outdated Post.
allnightarockin is offline   Reply With Quote
Old December 6th, 2007   #4
allnightarockin
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 5
Re: Wireless Laptop as Ethernet Bridge

I decided to try and figure it out myself..didnt workout so well
br1= My bridge
192.168.1.147 = My Local IP


How i thought to make a bridge in BRCTL [Bridge-Utils]
you type
Code:
 sudo addbr br1
followed by
Code:
 ifconfig br1 up
followed by
Code:
ip addr del 192.168.1.127/24 dev eth1
ip addr add 192.168.1.24/24 dev br1
route add default gw 192.168.1.1
then
Code:
brctl addif br1 eth1
brctl addif brq eth0
Does this look correct?? it didnt seem to work for me, br1 became unrecognizable and i couldnt connect to anything

i fixed it by typing ifconfig br1 down.
then deleting the bridge in BRCTL


Do you know what could be going on??
Screen Shot with ip info:


My routing configuration after my last attempt (when i deleted it all)
Terminal:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
link-local      *               255.255.0.0     U     1000   0        0 eth1
default         DD-WRT          0.0.0.0         UG    0      0        0 eth1
Please let me know if you need more information. This would be so useful for me..
im just not 100% sure how to set it up
__________________
Help: Wireless Laptop as Ethernet Bridge
Thanks if you can help me =]]

Last edited by allnightarockin; December 6th, 2007 at 01:10 AM.. Reason: Added/Fixed Typo's
allnightarockin is offline   Reply With Quote
Old December 6th, 2007   #5
Friek
5 Cups of Ubuntu
 
Join Date: Jun 2007
Location: Drachten, The Netherlands
My beans are hidden!
Kubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Friek
Re: Wireless Laptop as Ethernet Bridge

Hmm, the way I did it work alright. However, I now read that some wireless nics don't do the job. Read this site for some explanation.
Friek is offline   Reply With Quote
Old July 17th, 2008   #6
antineutrinos
First Cup of Ubuntu
 
Join Date: Oct 2005
Location: Montpellier, France
Beans: 4
Ubuntu 8.04 Hardy Heron
Re: Wireless Laptop as Ethernet Bridge

Quote:
Originally Posted by Friek View Post
Hmm, the way I did it work alright. However, I now read that some wireless nics don't do the job. Read this site for some explanation.
Friek, many thanks for pointing this link out !
I tried to do all this bridging thing yesterday, did what you told (but before I found this thread). Off course it didn't work, but I didn't understand why... now I have a real, true final answer (rare in Linux world sometimes).

thanks also to allnightarockin for the perfect title

Cheers
antineutrinos is offline   Reply With Quote
Old December 10th, 2007   #7
allnightarockin
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 5
Re: Wireless Laptop as Ethernet Bridge

Good Link, thank you!
Will read more into it tonight
=]
__________________
Help: Wireless Laptop as Ethernet Bridge
Thanks if you can help me =]]
allnightarockin is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:07 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry