LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-17-2005, 02:41 PM   #1
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
Who to configure eth0 to use dhco from command line


i used ifconfig to use static ip address L 192.168.2.222/24. it worked fine but i want to return the eth0 to be a dhcp client again. dhclient and ifconifg doesn't give you the option make an interface to use dhcp .... i know how to that from GUI , but i just want to know how to that from the shell..
 
Old 11-17-2005, 08:09 PM   #2
SirGertrude
Member
 
Registered: May 2004
Location: Missouri
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
try this:

Code:
pump -i eth0
or, this:

Code:
dhcpcd eth0
 
Old 11-18-2005, 09:34 AM   #3
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
Didn't work

it didn't work ..... i don't have the pump command at all ..... and dhcpd as far as i know , conrtols dhcp server behaviour not ip configuration. anyway i tried to do dhcpd eth0 , but it didn't work.
thanks
 
Old 11-18-2005, 06:36 PM   #4
SirGertrude
Member
 
Registered: May 2004
Location: Missouri
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
Quote:
anyway i tried to do dhcpd eth0 , but it didn't work.
It is actually dhcpcd, which is the client version. does it give a program error, or say "No such file or directory"?

One other idea:
Code:
udhcpc -i eth0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Configure DNS printer via CUPS command line adagbg Red Hat 0 03-09-2005 10:46 AM
Configure FC1 firewall in command line codyz062003 Linux - Security 1 12-12-2004 09:05 PM
Configure "X" for KDE- From the command line. DeltroX Mandriva 0 11-28-2004 05:34 PM
configure x from command line? tumnus Linux - Newbie 5 02-13-2003 05:32 PM
configure lucent win modem at command line rioguia Linux - Hardware 1 01-26-2003 07:39 AM

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

All times are GMT -5. The time now is 08:01 AM.

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