Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I have an Ubuntu Server 12.04 connected to internet via adsl router with cable eth0.

The Ubuntu Server has the static ip

The adsl router (as DNS) has the ip which I set as gateway in /etc/network/interfaces.

I want another Ubuntu (laptop), with ip with wlan0 to connect to internet through the Ubuntu Server and not through the adsl router (which is easy).

How can I do this?

share|improve this question
up vote 1 down vote accepted

If I understand correctly, you want to use the server as a router. This is kinda complex, but not impossible. depends on how dedicated you are. in order for this to work, your server will need a second network card. bridge eth0 to eth1:

you will need then a WAP (wireless access point),

configure your wap with setting from your router, and use eth1 to plug it in. you now have a wap plugged into eth1, which is bridged to eth0.

there is much more that will be involved with configuring, but this is the basic model.

good luck!

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.