?
Solved

How to release IP not using "dhclient -r"

Posted on 2003-02-23
6
Medium Priority
?
816 Views
Last Modified: 2008-02-01
Hi folks!

I have a cable connection that demands me to release the IP before switching to another OS (from Win to Linux and vice-versa). When I was using RedHat 8 I simply used "dhclient -r eth0" and it was done, but now I'm trying the ASPLinux distro, what is quite nice and fast, but it doesn't come with the dhclient package.

I intended to try installing the package from my RH CDs, but rpm complained of dependencies and I would need to mess TOO MUCH with the default installation to add it, so I'm wondering how could I release the IP from my machine without using dhclient.

The "great" support from my ISP told me to use ifconfig, but it only shuts down the adapter and doesn't release the IP.

Thanks in advance!

PS.: Don't try those funny answers like "why don't you just DON'T SWITCH OSes.." :)))))
0
Comment
Question by:ez_talk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 9

Accepted Solution

by:
majorwoo earned 400 total points
ID: 8003712
#1) Why dont you just switch... Oh yeah.

#2) Your ISP talked to you with linux? They knew what ifconfig was? Bow down and worship them ;-)

#3) Well what DHCP client does ASP use? pump?  It would seem they use dhcpd with dhclient

http://rpmfind.net/linux/RPM/ASP/i386/ASPLinux.html

(rpm's can have different dependencies, try the one from there)

Even the base ASP(http://rpmfind.net/linux/RPM/ASP/System_Environment_Base.html) linux system seems to use this, try looking around for it:

see if it is not in your path, under redhat its

/sbin/dhclient

but try looking for it on ASP
locate dhclient
find / -name dhclient


0
 

Author Comment

by:ez_talk
ID: 8004569
I tried dhclient right from /sbin but it was not there, so I used "find" and got nothing, and to be sure I searched the CDs for dhclient package and there was none there.

I have not tried pump...gonna check soon, as long as I finish my "Windows-needed" stuff for today.

Thank you for the tips on RPM repositories. Going to check them now.
0
 

Author Comment

by:ez_talk
ID: 8004605
Oh! I also tried dhcpcd, which was installed, and when I used "dhcpcd -k" it replied dhcpcd was not running, but I was using the internet normally.

RedHat uses a separate package for dhclient, just like Conectiva, and that is what I was trying to install prior to notice how painful it would be, since ASP doesn't provide it.
0
The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

 
LVL 9

Expert Comment

by:majorwoo
ID: 8005137
hmm that's really odd as all the docs i read seemed to indicate ASP used dhcpd
0
 

Author Comment

by:ez_talk
ID: 8013264
My system seemed to be kidding me. Twice I booted it up after installation  for regular use and strangely it was taking too long to start eth0 up, and the whole thing with dhcpcd saying it was not running and all.

But last time it found eth0 in a flash, I logged in, and when I typed "pump -r" ready to find the right answer, it replied me with an error message, so I risked "dhcpcd -k" again and voilá! The SOAB was there and I could kill it!!!!!

Guess it was some jealous curse from my Windows installation.......

Thanks, majorwoo, for all the tips anyway! :)
0
 
LVL 9

Expert Comment

by:majorwoo
ID: 8013298
heh ;-) gotta love that stuff.
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question