Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-03-2005, 11:12 PM
|
#1
|
Member
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120
Rep:
|
Slackware release/renew of IP address
Periodically I need to release and renew the IP address on my PC manually. How do you do that on Slackware 10.1?
|
|
|
07-04-2005, 12:16 AM
|
#2
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
$su
#dhcpcd
it might say that you need to remove a file, cause the ip could still be viable.. if so remove it..
#rm /etc/dhcpc/dhcpcd-eth0.pid
then run dhcpcd
#dhcpcd
you can also specify which adapter. say you have a laptop and the ethernet card is eth0 and the wireless eth1 you can just run..
#dhcpcd eth0 -for the network card...
or
#dhcpcd eth1 -for the wireless card.
|
|
|
07-04-2005, 12:21 AM
|
#3
|
Member
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584
Rep:
|
I'm not sure if this is Debian/Ubuntu specific, but I find this command works for me.
ifdown eth0 && ifup eth0
Hopefully one of our responses help
|
|
|
07-04-2005, 12:23 AM
|
#4
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
if you want you could make a script that removes the file then runs dhcpcd that way you dont have to type the rm /etc/.... and all that. just name the script something like dhcp_renew.. so
#pico /root/dhcp_renew
rm /etc/dhcpc/dhcpcd-eth0.pid
rm /etc/dhcpc/dhcpcd-eth1.pid
dhcpcd
then make it executable
#chmod 755 /root/dhcp_renew
you could also add something like
xterm -hold -e ifconfig
to the end of the script and it will display the ip after if finds one... but you mgiht have to set a sleep state like
sleep 10
xterm -h and all that stuff.
|
|
|
07-04-2005, 12:25 AM
|
#5
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
well you could brind the interfaces down and back up,, but you shouldnt need to. the actual commands are
#ifconfig eth0 down - of course eth0 or eth1 or wahtever
#ifconfig eth0 up - " " " " " " " "
but should be able to do it with dhcpcd that is what it is for.
|
|
|
07-04-2005, 12:30 AM
|
#6
|
Member
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584
Rep:
|
Quote:
well you could brind the interfaces down and back up,, but you shouldnt need to. the actual commands are
#ifconfig eth0 down - of course eth0 or eth1 or wahtever
#ifconfig eth0 up - " " " " " " " "
but should be able to do it with dhcpcd that is what it is for.
|
Hmmm, weird, ifup and ifdown work for me....
|
|
|
07-05-2005, 01:31 AM
|
#7
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
right probably distro specific or a third party tool. not in the install of slack.
|
|
|
09-28-2005, 03:48 AM
|
#8
|
LQ Newbie
Registered: Sep 2005
Posts: 9
Rep:
|
how about on a suse 9.3 ? whats the counterpart for this ?
|
|
|
09-28-2005, 09:30 AM
|
#9
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
suse uses yast... just use yast... dont try to do it by hand, or you will make it mad.. i tried that before.
|
|
|
All times are GMT -5. The time now is 08:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|