LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   release ip (https://www.linuxquestions.org/questions/linux-networking-3/release-ip-348741/)

windowsdownAGAIN 08-01-2005 12:44 AM

release ip
 
How do you release the ip number on Linux?

In windows you start/run/cmd
ipconfig /release

Surely it isn't ifconfig /release from the terminal?

And if you could guide me to a very simple guide on how to install packages such as errr tar.gzw or rpm I would be most appreciative. Not that there is much need to install a antivirus program on Linux?

Where's the free programs at? Kids want games, I want the rest and all to secure this OS as windows constantly is attacked and taken down no matter how secure microsoft claims nor the claims of firewall/antivirus companies regarding their constantly updated and faulty windows programs.

Matir 08-01-2005 12:53 AM

Free programs? Well that depends on your distribution.... Debian-based has apt, Gentoo has portage, etc.

Also, check out freshmeat.net and sourceforge.org for HUGE repositories of (mostly) free software.

As for DHCP releasing of ips, if you use 'dhcpcd' (many modern distributions do), then you can release the IP by running 'dhcpcd -k' which both shuts down dhcpcd and sends DHCP_RELEASE to the DHCP server.

windowsdownAGAIN 08-01-2005 12:58 AM

Apparenty I should have mentioned Fedora, core 4.

So do I start the terminal and just put
dhcpcd -k
and hit enter?

What displays the current ip # etc. In windows such would be ipconfig or ipconfig /all. depending on which version of windows.

Thank you for replying.

windowsdownAGAIN 08-01-2005 01:02 AM

Perhaps I'll have to start a new thread in the proper forum but I understand Linux is able to view and write firmware for hardware. Any FAQ's on this topic?

windowsdownAGAIN 08-01-2005 01:05 AM

dhcpcd -k
command not found :(

windowsdownAGAIN 08-01-2005 01:34 AM

dhclient -r
nor
/sbin/service network stop
does it either :(

Matir 08-01-2005 09:15 AM

Which dhcp client does fedora use? Type 'ps -ef | grep dh' and post the output, please. I don't know about the firmware bit, your best bet is indeed to ask in the hardware forum.

p_s_shah 08-01-2005 12:07 PM

hi ....
To realease your ip address just down your interface card using
$ifconfig eth0 down<ENTER>
To start network again
$ifconfig eth0 up<ENTER>


for installation from soruce follow the link...
http://www.gnulinuxclub.org/index.ph...=146&Itemid=31

Matir 08-01-2005 12:20 PM

Quote:

Originally posted by p_s_shah
hi ....
To realease your ip address just down your interface card using
$ifconfig eth0 down<ENTER>
To start network again
$ifconfig eth0 up<ENTER>


for installation from soruce follow the link...
http://www.gnulinuxclub.org/index.ph...=146&Itemid=31

This will not send the proper DHCP_RELEASE to the DHCP server, which will not free up the IP for use by another machine, as required by RFC 1541.

borromini 08-21-2005 07:22 AM

Quote:

Originally posted by windowsdownAGAIN
dhclient -r
nor
/sbin/service network stop
does it either :(

You need to execute the command as root... # dhcpcd -k

sumballd 01-05-2009 10:22 PM

Thanks for your information


All times are GMT -5. The time now is 06:21 PM.