Wireless-to-wired LAN

Asked by Jach

Hi, my dilemma is as follows. I have a laptop with wireless that's connected to a public access point, and I have another laptop without wireless that I want to connect to the internet through the first laptop. It seems like I should be able to just run an ethernet cable from one to the other and do something with dhcpcd, but a little googling doesn't reveal anything I see as useful to the problem... I just need to know how I can accomplish this, or if it's not possible why?

Thanks in advance for any help. (Not appreciated are suggestions telling me to get a wireless card.)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Jach
Solved:
Last query:
Last reply:
Revision history for this message
Rob Frerejean (hffrerejean) said :
#1

Buy a cross cable from your local computer dealer. Connect the 2 laptops with that cable.

Then you can set up a network and share the internet connection on the Wifi laptop.

Revision history for this message
Jach (kevinmccloud) said :
#2

Thank you, that did the trick. (Though "set up a network" was deceptively complicated for a while.)

To anyone else who might find this useful, follow the guide here: https://help.ubuntu.com/community/Internet/ConnectionSharing

One of the important things I consistently missed was the "route" command on the client computer. I set up a dhcp server as well, here's the .conf file:

server-identifier 192.168.0.1 ;
subnet 192.168.0.0 netmask 255.255.0.0 {
   range 192.168.0.2 192.168.0.254;
   option domain-name "netname";
   option domain-name-servers addyourown;
   option routers 192.168.1.1 ;
   default-lease-time 86400 ; max-lease-time 86400;
   option broadcast-address 192.168.0.255 ;
   option ip-forwarding on ;
}

Revision history for this message
Jach (kevinmccloud) said :
#3

Whoops, just make the routers section be "192.168.0.1" and then no route command is necessary on the client.