Tuesday, October 30, 2012

Linux: CentOS 6.3 - Force DHCP client to renew ip address

Here are a few commands that I used to renew the ip address that has DHCP configured.

1. ifdown and ifup command to restart network card eth0 as follows :-

# ifdown eth0
# ifup eth0
2. Restarting the networking services command :-
# /etc/init.d/networking restart
3. Restart network service using service command :-
# service network restart
4. This command is for releasing the ip address :-
# sudo dhclient -r
This command is for getting a ip address :-
# sudo dhclient 

No comments:

Post a Comment