Results 1 to 2 of 2

Thread: Share Internet, Laptop Wifi, Desktop Wired Linux/Netbsd

  1. #1

    Share Internet, Laptop Wifi, Desktop Wired Linux/Netbsd

    Hello Im running linux on my laptop, and netbsd on my desktop. My laptop connects to the internet wirelessly. I would like my desktop to be able to share that connection through its ethernet adapter that is connected to a switch, and the switch is connected to my laptop's ethernet adapter. Is this impossible ? Ive been having an incredibly difficult time figuring out what to do. I am of course a networking idiot, no matter how many classes I take and pass I still can't wrap my head around it at all.

  2. #2
    Administrator Moderator
    starfish's Avatar
    Join Date
    Apr 2004
    This link will show you how to setup a simple Linux router using IP forwarding.

    The problem you'll probably face is that your Internet router NATs your network (256 IP addresses from to for your laptop to get to the Net.

    You'll have to put your wireless card and ethernet NICs on 2 separate networks. The problem is that router won't NAT anything on its home NIC that it feels isn't on this network.

    The trick is to create two 128 IP address networks that just fit inside the network.

    Use a mask of on your wireless NIC that is between (the usual address of the router) and (the broadcast address).

    Use a mask of for the ethernet NICs, the IP addresses need to be between and Say for example you use the address for the laptop, make sure that this iP address becomes the PC's default gateway.

    Set up ip forwarding and you should be OK. DON'T change the mask on the router. It must still think it's on a network when in fact there are two half sized networks behind there. As subnet masks are not transmitted with the IP traffic, it won't figure out trick.

    This link will show you more about subnet masking.

    Hope this helps.

Similar Threads

  1. Broadcom WiFi on Suse 10.1 Enterprise desktop
    By sinkhole777 in forum Suse
    Replies: 7
    Last Post: 05-06-2007, 02:31 PM
  2. Sitrep on WiFi and linux
    By Schotty in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 06-09-2004, 05:28 PM
  3. Using a laptop display on a desktop
    By trickster in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 11-13-2003, 07:43 PM
  4. windows can't see linux share
    By doggiebone in forum Linux - Hardware, Networking & Security
    Replies: 9
    Last Post: 06-13-2002, 07:59 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts