Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I see eth0 is currently "192.168.168.20" that is the static IP I configured previously. How can I ensure the Linux machine is with the dynamic IP assigned by my ISP, as I am getting a problem to go to the Internet in this Linux machine.
The ip you posted is used locally by other machines on the LAN (if any) and your router. Which distribution of Linux are you using and what is the specific problem you are having? Can you ping your router? What type of connection do you have?
Usually the IP assigned by the ISP is given to their router, not your system. The only time that happens is if your machine is directly connected to the ISP cable.
ISP ----> router/modem ----> system.
The IP number that is given to your system is usually a dynamic local IP (such as 192.168.0.x or 192.168.1.x, it could be any 192.168.x.x).
Normally, the router is given a public IP, but some ISPs have started issuing even them a nonroutable IP as the available public IP numbers are now exhausted. And that requires them to be either a 10. network or to use (for instance) 192.168.0.xx, so the modem has to use 192.168.1.xx for internal use. This is a "double" NAT translation, and is a real pain-in-the-rear.
If you ARE directly connected to the ISP wiring, then using dhclient should get you the IP number you want. The only other way is to get the IP number from them (a static IP number), which usually costs more.
IP address is not so important for a web browser. I think static IP is best then dynamic IP. If you want to change your IP address contact your IP provider.
Or follow this command:
1. Go to Start > Run and type into blank box “cmd” without quotations.
2. Type “ipconfig/release” (without the quotes).
3. Type “ipconfig/renew” (without the quotes).
Now restart your computer.
do you have anything like a wireless router or are you connected direclty to a cable/dsl transceiver ?
assuming you are using gnome desktop and that your router has dhcp enabled you would rite-clik on the network manager icon on the top of the screen and select:
edit connections -> system eth0 -> ipv4 settings -> automatic (dhcp)