LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2007, 11:43 PM   #1
Ioneth
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Rep: Reputation: 0
IP Release/Renew


How do you do this in Linux? I'm a newbie
 
Old 12-11-2007, 01:27 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You should put the distro you use in your profile. Some distros do things differently. You may have a "/sbin/ifrenew-dhcp" program. If so "sudo /sbin/ifrenew-dhcp" will get a new lease from a dhcp server.

There is also the if-up <interface>" and "if-down <interface>" scripts.
On SuSE linux you can use rcnetwork:
Code:
Usage: /sbin/rcnetwork <action> [<config>] [<interface>] [-o <options>]
  actions: start|stop|status|reload|force-reload|try-restart
           restart|stop-all-dhcp-clients|restart-all-dhcp-clients
  options: [on]boot,hotplug,manual,check,debug,fake,nm,netcontrol
           type=<typelist>,skip=<skiplist>
  typelist: space seperated list of interface types
  skiplist: space seperated list of interfaces to skip for 'start'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Release And Renew dna9 Linux - Networking 1 03-09-2005 04:24 PM
IP Release and Renew? keysorsoze Linux - Newbie 4 01-23-2005 10:52 AM
ip release/renew ddu_ Linux - Newbie 5 12-14-2004 10:35 PM
Release/renew an ip morfy50 Linux - Networking 1 09-19-2002 12:02 PM
dhcp release and renew Ratclaws Linux - Networking 1 10-12-2001 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration