Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 "".

share|improve this question

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.


share|improve this answer

Your Answer


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.