Wednesday, April 9, 2008

Renewing DHCP on Linux is easy

Today tips and tricks

This tips is applies (tested) on Linux SUSE 9.0, Suse Linux Enterprise Desktop (SLED) 10.1 Service pack 1.




In this tips I will show you how easy is to turning off network interface (NIC card) so that you can get new IP address. But this tip is work for DHCP only.

  1. Open a Linux terminal console and logon as root, or from user account you can type su –l and supply root password
  2. to show your existing IP address type ifconfig
  3. type dhcpcd –k to send appropriate signals to dhcpd, if you got an error message “**** dhcpcd: not running” you need turn of the IP address using the syntax ifup and ifdown following eth0, if the problem persist you need to change your Ethernet connection type to traditional
  4. bring up the IP address up by typing ifup eth0
  5. type ifconfig again to make sure your new IP address

Is this tips work for you? Any idea or improvement? Just leave a comments

No comments:

Post a Comment