LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   help with unbutu 10.4 networking ?? (https://www.linuxquestions.org/questions/linux-networking-3/help-with-unbutu-10-4-networking-945703/)

mouk 05-18-2012 07:14 AM

help with unbutu 10.4 networking ??
 
hi guys

i am newbie to Linux

i have unbutu 10.4 server running on pc and connected to my router

it works fine for 6 days and it gets disconnected and when i login into my router i can see it says lease expired and i have to Force DHCP client (dhclient) to renew ip address
manually

my question is

How can I configure Linux dhclient command to continuously requests an IP lease until one is granted by DHCP Server / Router?




thanks guys

nicolasdiogo 05-18-2012 07:17 AM

is is not clear which Deskop you are using - assuming gnome2 based on Ubuntu 10.4

you will have to define your connection on Network-Manager (icon on one of your corners)
click on it and choose your connection - wired, and set it to auto (dhcp)

hope it helps

nikmit 05-18-2012 07:22 AM

look at /etc/network/interfaces and make sure the interface is defined as having a dynamic address:

vi /etc/network/interfaces

You should see a line like 'iface eth0 inet dhcp'. If it instead says 'iface eth0 inet static' you can still run dhclient but the system will not do it automatically.

mouk 05-18-2012 07:32 AM

Quote:

Originally Posted by nikmit (Post 4681722)
look at /etc/network/interfaces and make sure the interface is defined as having a dynamic address:

vi /etc/network/interfaces

You should see a line like 'iface eth0 inet dhcp'. If it instead says 'iface eth0 inet static' you can still run dhclient but the system will not do it automatically.


thanks for your reply and your help

i have checked it and i remembered now that i have changed from 'iface eth0 inet dhcp' to 'iface eth0 inet static'

do you think if i change it back to 'iface eth0 inet dhcp' . the system will do it automatically.

nikmit 05-18-2012 07:35 AM

yes - after a reboot or restart of networking

mouk 05-18-2012 07:51 AM

Quote:

Originally Posted by nikmit (Post 4681735)
yes - after a reboot or restart of networking

thanks mate for your help

i did it and i will see what is going to happen


cheers


All times are GMT -5. The time now is 12:21 PM.