Visit Our UNIX and Linux User Community


DHCP Release/Renew


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers DHCP Release/Renew
# 1  
Old 08-16-2001
DHCP Release/Renew

Are there any UNIX commands that will release and renew a DHCP lease? If not, is there a third party utility that would do this?
# 2  
Old 08-16-2001
Depends on which dhcp client you are using -- check the man page for your particular client software. If there is no "renewal" feature built in, you will just have to stop and restart it.
# 3  
Old 08-16-2001
U can use ifconfig command
# 4  
Old 08-16-2001
That's true.... use something like dhclient eth0 to acquire an IP address and then you use something like ifconfig eth0 down to release the IP address.

Insert your actual interface for eth0 Smilie
# 5  
Old 08-16-2001
On solaris u can use
ifconfig hme0 dhcp release to release the ip address and the same can be verified using ifconfig -a and the ip address should be 0.0.0.0 and to get the ip address use
ifconfig hme0 dhcp start.

Substitute the apropriate interface name if it is not hme0
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #493
Difficulty: Medium
When a program executes, each command executes one after the other, top-to-bottom. This is known as inconsequential control flow.
True or False?

8 More Discussions You Might Find Interesting

1. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

2. IP Networking

Can't get DHCP IP

Dear Experts, I have a TI DM8148 EVM board REV C, the EZSDK5.05 SW package, and DVRRDK1.09 SW package. EZSDK5.05, DVRRDK1.09 both use Linux2.6.37, however, there are some modifications between these two kernels. When I use uImage of DVRRDK1.09 to boot up EVM board, this board can be given a... (0 Replies)
Discussion started by: oobin168
0 Replies

3. IP Networking

DHCP client's IP release query

Hi All, I have two doubts here in DHCP Solaris environment.. could anyone please clarify me? 1. If a new client comes up and it needs an IP to be assigned by a DHCP server, how can it communicate with the DHCP server in the first case without any IP? The SUN doc says something about "BOOTP"... (4 Replies)
Discussion started by: satish51392111
4 Replies

4. UNIX for Dummies Questions & Answers

Linux DHCP Release on boot

Hi All- I have an assigned static IP address on my Linux box and was wondering if there is a way to change that to a DHCP without actually logging in? Possibly a hot key I can press prioir to login? I am running Centos Thanks! (0 Replies)
Discussion started by: jvpike
0 Replies

5. Solaris

How can i renew veritas license ...?

Hello experts .... How can i renew my veritas license? Without using "vxlicinst" command? It is not renewing with that command? Is there any manual way to install a license key... Thanks in advance...... (3 Replies)
Discussion started by: younus_syed
3 Replies

6. Linux

Release and Renew in Linux

Hi, Request you to please let me know if any command is there in linux to release the ip of the ethernet card and renew the ip address of it again. Similar to ipconfig /release and ipconfig /renew in windows. Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

7. Solaris

Two questions on renew the expired password

Recently, the root pass expired on a Solaris box. And then, i can't log into the system anymore.....Below are two issues i met: 1. I tried to login the system via telnet and ssh. Only the ssh prompt me to set a new password. The system only told me that the pass is expired and turn it off during... (1 Reply)
Discussion started by: sleepy_11
1 Replies

8. UNIX for Dummies Questions & Answers

Dhcp

When using DHCP how can I can my hostname. I vi all the hosts file and if still didn't work. So now my hostname is unknown and I want to change it. So if anyone out there can help me. Thank You (6 Replies)
Discussion started by: aojmoj
6 Replies

Featured Tech Videos