Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to perform dhcp request?

Status
Not open for further replies.

StickyBit

Technical User
Jan 4, 2002
264
CA
Folks,

Can I use the ifconfig utility to perform a dhcp request in Linux, like in Solaris e.g.

ifconfig hme0 dhcp.

The above command will work providing the hme0 interface is under dhcp control by creating the file /etc/dhcp.hme0

I would like to install Linux (Redhat 7.3) and connect to my cable modem.

Thanks,

StickyBit.
 
The default DHCP client in Red Hat is 'pump'. To obtain or renew a lease, try...

pump -i eth0

Most other distro's use 'dhcpcd'. To obtain or renew a lease...

dhcpcd -d -B eth0

To release a lease, try...

pump -r eth0
-or-
dhcpcd -k eth0

If your going to use 'pump', double check those switches, because I don't have 'pump' installed here. I checked the dhcpcd switches for you and they work fine.

ChrisP If someone resoles an issue for you, or was helpful, please click the link on the bottom left hand corner of their post to give them a "star" letting them know you helped them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top