LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices

Reply
 
Search this Thread
Old 05-08-2013, 09:44 PM   #1
Huamin
Member
 
Registered: May 2011
Posts: 352

Rep: Reputation: Disabled
IP problem


Hi,
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.
 
Old 05-08-2013, 10:35 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,642

Rep: Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727Reputation: 727
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?
 
Old 05-08-2013, 10:41 PM   #3
Huamin
Member
 
Registered: May 2011
Posts: 352

Original Poster
Rep: Reputation: Disabled
Thanks a lot. I am using Red hat enterprise. How to make the Dynamic IP from my ISP available, in this server? The server is directly connected to outside, with the IP assigned by my ISP.

What commands to check, per your advice?

Last edited by Huamin; 05-08-2013 at 10:57 PM.
 
Old 05-09-2013, 01:10 AM   #4
Huamin
Member
 
Registered: May 2011
Posts: 352

Original Poster
Rep: Reputation: Disabled
Any help?
 
Old 05-09-2013, 07:08 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,115

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
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.
 
Old 05-09-2013, 09:22 PM   #6
Huamin
Member
 
Registered: May 2011
Posts: 352

Original Poster
Rep: Reputation: Disabled
I did ever do some change to the server as you can see eth0 is "192.168.168.20". How to correct this and ensure it is fine to connect to outside?
 
Old 05-10-2013, 03:30 AM   #7
Huamin
Member
 
Registered: May 2011
Posts: 352

Original Poster
Rep: Reputation: Disabled
Any help please?

Many Thanks & Best Regards,
HuaMin
 
Old 05-10-2013, 07:50 AM   #8
iqbal51
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: 0
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.
 
Old 05-10-2013, 07:57 AM   #9
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
WTF? That's the instructions for MSWin; OP has a Linux system.
 
Old 05-10-2013, 08:06 AM   #10
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,917

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
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)

Last edited by schneidz; 05-10-2013 at 08:14 AM.
 
Old 05-10-2013, 09:11 PM   #11
Huamin
Member
 
Registered: May 2011
Posts: 352

Original Poster
Rep: Reputation: Disabled
Yes, it is connected directly to a cable.

I am using Red hat enterprise and I don't see network manager icon in the desktop.

Here are what I've got in the server.

http://dl.dropbox.com/u/40211031/t348.png
http://dl.dropbox.com/u/40211031/t349.png

Do you have any ideas why I can't connect to the Internet?

Many Thanks & Best Regards,
HuaMin

Last edited by Huamin; 05-11-2013 at 05:11 AM.
 
Old 05-11-2013, 07:40 AM   #12
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,917

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
why are uploading pictures of commands instead of copy-and-pasting ?

not sure what interface vibr0 is (vpn bridge) ?

i dont know enough about your network connection/isp but this mite help:
Code:
sudo ifconfig eth0 up
sudo dhclient eth0
also, what gui are you using ?

Last edited by schneidz; 05-11-2013 at 07:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Do I have a path problem, an Apache2 problem or a Javascript problem or any other pro rblampain Linux - Networking 0 12-29-2010 03:50 AM
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 01:35 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration