Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The laptop wirelessly connects to my router, while the desktop is connected to the laptop with an ethernet wire.

The desktop successfully can use the internet if I set the connection to be shared on the laptop.

The problem is, I need the laptop to forward the desktop's packets across the link unmodified, so the desktop is on the same network as the router.

The desktop needs its IP assigned by the router, so that I can access it from another computer as "192.168.1.8".

share|improve this question
add comment

1 Answer 1

You'll need to add something like this to your /etc/networking/interfaces file:

auto br0                   #Creates the bridge
iface br0 inet dhcp        #Tells bridge to do dhcp
bridge_ports wlanX ethY    #Ties bridge between two ports

You'll need to find the correct X and Y by using ifconfig and iwconfig.

source

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.