lookinf for linux equivalents for xp "ipconfig" commands ...
Linux - NetworkingThis 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.
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.
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 ...
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.
`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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.