3

I would like an old desktop box to use my laptop as a router to access the internet. Here is my setup:

network diagram

I have one ethernet port in the side of my laptop which I want to use to get internet access to my desktop computer. The laptop is connected to the LAN via a wireless link. Both systems run Linux. The desktop autoconfigures itself using DHCP. The laptop is a Kubuntu system. I do not have any crossover cables, though wireshark on the laptop sees the DHCP requests from the desktop just fine, so I doubt that I need one.

What do I have to do to make this work?

Gareth
  • 19,080
marcusw
  • 1,768

2 Answers2

1

I did some more experimenting today, it turns out the knetworkmanager includes its own dhcp server (who would have thought?). Anyway, the way to set it up is to:

  1. Click on the knetworkmanager icon in the system tray and select Manage Connections.
  2. Go to the "Wired" tab and click New...
  3. Set "Restrict to interface" to eth0.
  4. Under the IP Address tab, set "Configure" to Shared.
  5. Check "Connect Automatically".
  6. Click OK for all the open dialogues.
  7. A restart of knetworkmanager or the computer to be connected via ethernet may be required.

This will get things up and running, though the ethernet computer will be on a different subnet than the devices on the same subnet as the laptop.

marcusw
  • 1,768
0

You need to create a bridge between your laptop wired network and wireless network. That will let the wired network 'see' the WAP's DHCP server. Take a look at the bridge_utils package. I believe you will need to use bridge_ports to set up the bridge between the two devices.

Fred
  • 1,230