LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-28-2006, 07:07 AM   #1
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
lookinf for linux equivalents for xp "ipconfig" commands ...


recently helping solving a dhcp problem(i think so) in friend's xp , hes using cable modem connection ...

in xp i issued these commands consecutively ::

ipconfig /all
ipconfig /release
ipconfig /renew

somehow this solved the problem(not sure whether it will stays) but i'm curious about linux equivalents for the above consecutive commands ... or are there linux way to achieve the same solution in a consecutively manner similar to the above ?? ... what should i do ...


//not urgent just curious ...


.
 
Old 04-28-2006, 07:10 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
It is almost all in ifconfig. Have a look at man ifconfig for the details on everything it can do. In some distros, the ifup and ifdown scripts add some features to the plain vanilla ifconfig.
 
Old 04-28-2006, 07:37 AM   #3
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658

Original Poster
Blog Entries: 8

Rep: Reputation: 31
after googling ...

yes ... ifconfig will do the job alright ...
but do i still need to do a "dhcpcd -k" as root ??

i dont have dhcp so i cant test it ...


.
 
Old 04-28-2006, 08:44 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
`ipconfig /release` releases the dhcp lease, and `ipconfig /renew` asks a new one. So those commands only make sense in a DHCP environment. The Linux equivalent is `dhcpd` or `dhclient`, not `ifconfig` in this case.
 
Old 04-28-2006, 08:49 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
That depends on your distro. For those distros that use ifup, you may not have to (although you would have to run ifup as root). However, if you don't have a dhcp server, ifup isn't going to work either.

What I don't understand is why you don't think you have a dhcp server available. If you ran ipconfig /renew on an XP box, that is going to be the rough equivalent of running dhcpcd ethX on a linux box. Now dhcpcd isn't the only dhcp client that is used. For example, dhclient is commonly used.

Going back to your first post, the rough equivalent to your sequence would be:

ifconfig (that will just show information, not do anything)
ifconfig ethX down
ifconfig ethX up
dhcpcd ethX -k
 
  


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
commands "init" and "modprobe" not working Diagmato Fedora 2 07-22-2005 11:44 PM
what is "ipconfig /renew" in linux ? fipeso Linux - Newbie 3 04-23-2005 03:26 AM
"sar" and "iostat" equivalents on Debian? aditya_shah Debian 8 08-01-2004 11:53 PM
looking for "table of equivalents, replacements, analogs of windows programs." bruce in bangko Linux - Newbie 3 12-30-2003 05:57 AM
"ipconfig" of windows in linux rheza Linux - Newbie 4 04-05-2003 11:23 AM

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

All times are GMT -5. The time now is 07:42 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