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.
I need to know how to do something similar to a ping or ipconfig.
I'm running red hat enterprise.
My net was workign via dhcp i changed it to static, which i know was right because i set it to the same as it was, then it didn't work. Set back to dhcp, and still doesn't work.
i know this is a basic question but if anyone can help that would be great...
ping is the command to use for pinging, but ifconfig is the command instead of ipconfig. There are options for each that you can check in the man pages.
Once you've run the commands can you post the output you get from ifconfig and from pinging your DHCP server?
Can you tell us
a. how you configured the static IP and
b. how you configured it back to dhcp?
The most likely cause I can think of for this issue, is that if you manually edited the ifcfg-eth0 file, you did something wrong. This is not uncommon, because the system is picky about that config file.
If you believe this to be the problem, I'd suggest trying to get a hold of a virgin ifcfg-eth0 file that you know works with DHCP. (I'm sure MANY of the users here can post one.)
If that doesn't fix it, or if you're pretty sure thats not the problem all together, please post more information for us to check out. A good start would be that file I've mentioned above. Assuming the same filesystem between your OS and mine (fedora 2) the file will be located in "/etc/sysconfig/network-scripts"
a. how you configured the static IP and
I went into applications, system settings, network, then clicked static, entered the correct data..
b. how you configured it back to dhcp?
just click on dhcp in the same window.
However, when i went to the network-script folder there was no ifcfg-eth0 file. Rather strange.
Ahh fixed the problem, somehow it deleted the file.
Went new, set statically, it saved a new cfg file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.