LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2009, 04:24 AM   #1
smrutiranjan
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Rep: Reputation: 0
Smile How to make my public ip address as static


Hello

I want to install cp server which need one public ip address but in my system the public ip address is dynamic.I need the public ip address remain same.Whether any body help me out on this regard.

Here some useful information i give about my system which is helpful.

#ifconfig
----------
eth0 Link encap:Ethernet HWaddr 00:x:x:x:6D:C0
inet addr:192.168.x.x Bcast:192.168.x.x Mask:255.255.255.0
inet6 addr: x::x:x:x:x/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2099 errors:0 dropped:0 overruns:0 frame:0
TX packets:1933 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1395163 (1.3 MiB) TX bytes:368312 (359.6 KiB)
Interrupt:185 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6629 errors:0 dropped:0 overruns:0 frame:0
TX packets:6629 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6845503 (6.5 MiB) TX bytes:6845503 (6.5 MiB)



#route
----------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.x.x * 255.255.255.0 U 0 0 0 eth0
169.254.x.x * 255.255.0.0 U 0 0 0 eth0
default 192.168.x.x 0.0.0.0 UG 0 0 0 eth0


Thanks in advance....

Last edited by smrutiranjan; 07-27-2009 at 04:26 AM.
 
Old 07-27-2009, 04:43 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You could use dyndns
http://www.dyndns.com/services/dns/dyndns/
 
Old 07-27-2009, 06:45 AM   #3
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Or you could ask your ISP to allocate one to you.
 
Old 07-27-2009, 07:07 AM   #4
smrutiranjan
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Unhappy

Thanks for your reply..

I did the following settings but after that i am not able to open any site(e.g google.com) in my browser.

# wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

122.166.x.x

# ifconfig eth0 122.166.x.x

#route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
122.0.0.0 * 255.0.0.0 U 0 0 0 eth0


I am new to this please guide me so that i can make 122.166.x.x as static ip for my system.

waiting for your reply..

Thanks..
 
Old 07-27-2009, 07:16 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can't allocate this IP to your machine.
If you have a router, that IP is given to te WAN site of the router.
You can use the private IP from your server, and setup NAT at he router, so all traffic to your public IP is forwarded to the server.
Dyndns will create a domainname, which will point to your public IP, even if the IP changes, it will stll point to your router.
You connect using the domainname, not the IP
 
Old 07-27-2009, 08:05 AM   #6
smrutiranjan
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Unhappy

Thanks repo for your reply..


Would you please tell me how to setup the NAT at the router


waiting for your reply..
Thanks!
 
Old 07-27-2009, 09:35 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Depends of the router you use.
Take a look at the manual, or go to
http://portforward.com/
 
Old 07-28-2009, 06:13 AM   #8
smrutiranjan
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Unhappy

Thanks for your reply..

I am accessing the CP server from the private ip address(127.0.0.1)
while i am using the ping commands for remote and internal ip it works

e.g

[root@cp ~]# ping www.yahoo.com

PING www-real.wa1.b.yahoo.com (69.147.76.15) 56(84) bytes of data.
64 bytes from f1.www.vip.re1.yahoo.com (69.147.76.15): icmp_seq=1 ttl=52 time=279 ms
64 bytes from f1.www.vip.re1.yahoo.com (69.147.76.15): icmp_seq=2 ttl=52 time=278 ms
64 bytes from f1.www.vip.re1.yahoo.com (69.147.76.15): icmp_seq=3 ttl=52 time=278 ms

--- www-real.wa1.b.yahoo.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 278.758/279.042/279.394/0.664 ms

[root@cp ~]# ping 192.168.1.2

PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=128 time=89.5 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=128 time=2.73 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=128 time=1.83 ms

--- 192.168.1.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 1.837/31.361/89.510/41.119 ms

but while i am checking the license it gives error as follows

INVALID LICENSE !!!
Unable to connect to remote server to check Single Server Edition license.

would someone help me out for what reason this error is came.Whether there is any network problem i have.


any help would be appreciated.
Thanks...
 
Old 07-28-2009, 06:17 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
What happens if you connect to the external IP, from a remote computer?
122.166.x.x
 
Old 07-28-2009, 06:35 AM   #10
smrutiranjan
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Unhappy

Thanks repo for your reply..

As you suggest now i am accessing my server from the private ip i.e 127.0.0.1

#ping 122.169.x.x
PING 122.169.x.x (122.169.x.x) 56(84) bytes of data.

--- 122.169.x.x ping statistics ---
20 packets transmitted, 0 received, 100% packet loss, time 18996ms

while i am try to connect to the 122.169.x.x it is not connect to that.



any help would be appreciated.

Thanks..
 
Old 07-28-2009, 06:51 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
but while i am checking the license it gives error as follows

INVALID LICENSE !!!
Unable to connect to remote server to check Single Server Edition license.
The server can't connect to the outside.

Do you have a manual or faq for the cp server ?
 
Old 07-28-2009, 07:33 AM   #12
smrutiranjan
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Thanks repo


I giving you the link in the below from where i read the document and installed the cp server in my linux system.

http://hsphere.parallels.com/docs/3....html/index.htm


please have a look on it and help me out.

Thanks..
 
Old 07-28-2009, 09:22 AM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Do you connect using port 8080 ?
Code:
telnet 127.0.0.1 8080
 
Old 07-28-2009, 10:51 PM   #14
smrutiranjan
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Thanks repo

Quote:
Originally Posted by repo View Post
Do you connect using port 8080 ?
Code:
telnet 127.0.0.1 8080
URL i am using to connect to my cp server is http://127.0.0.1:8080/

CP server uses ssh protocol (port 22) to communicate between server.


[root@cp ~]# ssh license.psoft.net 22
ssh: connect to host license.psoft.net port 22: Connection timed out


any suggestion would be appreciated.

Thanks..

Last edited by smrutiranjan; 07-29-2009 at 01:14 AM.
 
Old 07-29-2009, 04:18 AM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
[root@cp ~]# ssh license.psoft.net 22
ssh: connect to host license.psoft.net port 22: Connection timed out
Seems to me the remote server has problems.
Are you sure the address is correct?
 
  


Reply



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
How to access web site from Internert using static public IP satishmali1983 Linux - Networking 3 06-15-2009 01:51 AM
I cant make my ip address public (ubuntu server 9.10) and mysqld.sock is empty Jamie Kugelmann Linux - Server 11 05-26-2009 06:40 AM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Set IP address to static from DHCP assigned address jborn Linux - Networking 4 02-02-2007 08:38 PM
[SOLVED] Converting static IP-address to dynamic IP-address Blue_Ice Linux - Networking 3 07-20-2006 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration