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.

I have a desktop system running Ubuntu 10.10. It has no wireless card just a wired Ethernet card.

I have a Thinkpad T42 laptop running Ubuntu 10.10 in the same room as the desktop. It uses its wireless connection to connect to a wireless access point in another room. The wireless access point provides internet access to the laptop.

Is there anyway to create a wired connection between the desktop and the laptop so that the desktop can connect out to the internet through the laptop?

share|improve this question

migrated from serverfault.com Sep 24 '11 at 23:34

This question came from our site for professional system and network administrators.

    
Yes there is. It is called "TCP/IP routing" and all that is needed for it already exists on both machines. –  mailq Sep 24 '11 at 19:48
    
possible duplicate of serverfault.com/questions/146495/… –  mailq Sep 24 '11 at 19:49
    
Do I just connect them together? Do I have to set static IPs or can the desktop get allocated an IP from the access point? –  craigm Sep 24 '11 at 19:50
    
Read the link. And books about routing. There is no GUI to do this. It's not Windows. –  mailq Sep 24 '11 at 19:55
    
This reminds me of the bad old days of usenet. –  craigm Sep 24 '11 at 20:12

2 Answers 2

I did this not that long ago for my brother when I set up Ubuntu 11.04 on his desktop and used an Ethernet cable between his machine and my Ubuntu 11.04 laptop, so his desktop could use my laptop's wireless. It was all GUI too, and required no extra packages or anything.

Unfortunately, I can't find the original source of my solution, but this post for how to do it in Ubuntu 9.10 should work just as well, it seems familiar. Basically, you just need to go to your network connections on your laptop, open Edit Connections..., click your wired Ethernet connection, and under IPv4 settings set the Method to "Shared to other computers". Then click Save and reboot your machine for it to take effect.

share|improve this answer
    
Also, just ran across this YouTube video showing how to do this. The guy's trying to share his connection to his Xbox in it, but it's pretty much the same task and same result. It really is pretty quick and simple to set up. –  WarriorIng64 Sep 24 '11 at 23:59

It would be a bit tricky but it could work. You would need to set the default gateway to your primary router, bridge your LAN to your WLAN, make sure DNS is a match on the desktop and laptop. Pretty sure I'm missing a few steps, but it gives you a general direction.

share|improve this answer

Your Answer

 
discard

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