LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2012, 07:14 AM   #1
mouk
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
Question 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
 
Old 05-18-2012, 07:17 AM   #2
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 130

Rep: Reputation: 20
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
 
Old 05-18-2012, 07:22 AM   #3
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
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.
 
Old 05-18-2012, 07:32 AM   #4
mouk
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nikmit View Post
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.
 
Old 05-18-2012, 07:35 AM   #5
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
yes - after a reboot or restart of networking

Last edited by nikmit; 05-18-2012 at 07:36 AM.
 
Old 05-18-2012, 07:51 AM   #6
mouk
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nikmit View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Busybox not letting me install Unbutu fraz422 Linux - Newbie 1 02-13-2009 07:22 PM
Unbutu 7 - Squid Proxy - Quesrion grumblenoise Linux - Networking 22 03-04-2008 08:22 AM
Webserver Unbutu queries Dee-ehn Linux - Software 1 10-01-2006 08:44 PM
Unable to get Unbutu EVOLUTION started Harold38 Linux - Newbie 7 07-14-2006 11:40 AM
unbutu too much jasenbax Linux - Software 9 10-15-2005 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration