LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configuring LAN connection in Ubuntu (NBR) (http://www.linuxquestions.org/questions/linux-newbie-8/configuring-lan-connection-in-ubuntu-nbr-726884/)

eeebuntu 05-18-2009 05:32 PM

Configuring LAN connection in Ubuntu (NBR)
 
I am using the Asus Eee PC (904HA) with Ubuntu 8.10 and Windows XP. I reside in India and have a MTNL broadband connection. I was able to manually set the DNS in XP but have not been able to do so in Ubuntu. I've tried editing the Auto eth0 connection (through Network Connections). Under the IPv4 Settings tab, the Automatic (DHCP) method does not allow me to alter the DNS Servers. I am not aware of my DHCP Client ID. In Windows, the IP is detected automatically. My netmask is 255.255.255.0 and the default gateway and DHCP server is 192.168.1.1.

I have been struggling to make this work since a long time. Any help would be much appreciated.

tuxtroll 05-18-2009 10:56 PM

this problem is strange but you can make this work by *NOT* using DHCP. configure a static ip on ubuntu 192.168.1.xxx and configure DNS and default gateway as provided by ISP

mwkemo 05-18-2009 11:21 PM

Hey,

you can try to manually add the lines in the configuration files. For DHCP to work on interface you need to open /etc/network/interfaces file and if your interface is eth0 then it should look like this:

Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

DNS records are in /etc/resolv.conf file. If you know IP of your DNS server you can manualy add it to this file. For example:

Code:

nameserver 192.168.1.1
nameserver 192.168.1.2

I have two DNS servers at my home, that's why there are two IP addresses listed. Just change ip address to your DNS server.

After all changes are done you need to restart the network with:

Code:

sudo /etc/init.d/networking restart
Hope it helps

eeebuntu 05-18-2009 11:21 PM

How do I do what you recommend?
I tried using the Manual option and entering the IP, Default Gateway and DNS. This did not work.

eeebuntu 05-18-2009 11:33 PM

mwkemo,

Thank you very much for responding. I tried doing what you suggested in the network edit window. I'm not comfortable with the terminal.

Still not working.

Any other ideas?

mwkemo 05-18-2009 11:48 PM

Hmmm, dont know if you can edit this files in GUI mode. This files are root protected and as far as I know the Ubuntu GUI dosn't allow you to change this files. You can try to open GUI text editor from terminal with sudo infront.

Dont know the name of GUI text editor. Find out the name of GUI editor and try to open it with terminal like this:

sudo nameoftexteditor

after then its just like working with notepad. Open files mentioned above and edit this files. Save files. After all changes are done all you need to do is this in your terminal window:

sudo /etc/init.d/networking restart

hit Enter. If it ask for password, give him your user password and hit Enter again. You can skip this and just reboot your Asus back to Ubuntu:-)

If it dosn't work you can try to add static IP adreses and gateways as tuxtroll noted above.

Oh yeah, write ifconfig in terminal and c/p the output.

That's it.


All times are GMT -5. The time now is 11:25 AM.