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 an internet connection through a cable modem. The IP address on the cable modem is not static and is perhaps obtained through a DHCP mode.

I wish to share this internet connection through the Wifi port available on my computer. Interestingly, the ad-hoc network setting does not work for my case on Ubuntu.

Therefore, I have set up my /etc/network/interfaces as follows:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 10.10.0.1
netmask 255.255.255.0

I am not clear with the process of routing, as I do not know the DHCP address until it is assigned i.e. only after I connect I will know the IP address of the system, and that IP address would be the one which the DHCP clients of my computer would use to route their internet connectivity.

Any clues on this?

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.