Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
hi
running redhat 7.3 kde
just had the internet reconnected as i hadn't paid the bill until today and i do not want to reboot my system but the internet company doesn't have any info on how to reset the ip on linux the best help they can give is to reboot which i do not want to do.. i know it will work fine if i do reboot but i want to know how to do it without rebooting every single time i have a problem can anyone help plz?
The method differs if you have a dynamic or a static IP. It also differs if you are dialup (ppp - modem connection) or dsl (eth0 -NIC connection). Can you fill us in plz?
sorry fsbooks i posted a reply but i guess it never made it through..
i have a cable modem hooked through a hub to my box and the windows one i am currently using and the other guy.. (your nick here) i will try that out and post another reply
Are you doing this as root? Is /sbin in your path? You can always try "/sbin/ifconif" to explicitly state the path. It is in the rpm net-tools: you can always do "rpm -q net-tools" to make sure you have it, but I suspect you do.
The configuration information is actually in a file called /etc/network-scripts/ifcfg-eth0. It is worth taking a look at even if your configuration is setup properly already through a GUI. I myself explicitly set my IP (local 192.168.0.0 space) there, although most people use the DHCP from their router/modem.
ya i switched to root and then tried ifdown eth0 and then ifup eth0 or something like that
it said it worked but then mozilla and lynx and everything still wouldn't work so i just ended up rebooting but i'd still like to know how to do it if anyone can still help
thanx to everyone who tried so far
The "ifdown eth0;ifup eth0" sequence should work if your NIC is configured as eth0 (which it usually is). Basically, the /etc/init.d/network script does on bootup is an "ifup eth0" (getting this from the existence of a file /etc/sysconfig/network-scripts/ifcfg-eth0). I suspect your routing was messed up as well. I would do the following next time (as root, of course) "/etc/init.d/network restart" . This would reset all network parameters and devices to bootup conditions. You can mess around with it if you like. For example, save the output of "/sbin/route" and "/sbin/ifconfig". Execute "/etc/init.d/network stop" and you will nolonger have internet. Compare the output "/sbin/route" and "/sbin/ifconfig". now to the previous output. The execute "/etc/init.d/network start" and see that the output of those commands are now what they were to begin with. Note: "/etc/init.d/network restart" is simply a stop/start in sequence. Have fun.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.