Networking Forums

Networking Forums > Computer Networking > Linux Networking > Every time my Linux PC gets new Ip address, I can't access remotely, how can I access?/

Reply
Thread Tools Display Modes

Every time my Linux PC gets new Ip address, I can't access remotely, how can I access?/

 
 
GS
Guest
Posts: n/a

 
      10-13-2005, 12:08 AM
Everytime when I boot (sometimes kids reboots) it gets new IP address,
I did port mapping in the Router (any ssh requests to this Ip addr),
when it changed Ip address, I can't access rempotely, any solution.

Also I added its names as "dhcppc3" in /etc/hosts files (ip address
machine-name), also when I do "hostname" it shows different name, how
can I name this machine as "tiger" so always I want the machine name as
tiger (if I do "ping tiger" with LAN shoud work), how can I do that?.
Thanks.

 
Reply With Quote
 
 
 
 
AZ Nomad
Guest
Posts: n/a

 
      10-13-2005, 04:09 AM
On 12 Oct 2005 17:08:57 -0700, GS <(E-Mail Removed)> wrote:


>Everytime when I boot (sometimes kids reboots) it gets new IP address,
>I did port mapping in the Router (any ssh requests to this Ip addr),
>when it changed Ip address, I can't access rempotely, any solution.


>Also I added its names as "dhcppc3" in /etc/hosts files (ip address
>machine-name), also when I do "hostname" it shows different name, how
>can I name this machine as "tiger" so always I want the machine name as
>tiger (if I do "ping tiger" with LAN shoud work), how can I do that?.
>Thanks.


DDNS


 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      10-13-2005, 06:23 AM
GS wrote:
> Everytime when I boot (sometimes kids reboots) it gets new IP address,
> I did port mapping in the Router (any ssh requests to this Ip addr),
> when it changed Ip address, I can't access rempotely, any solution.
>
> Also I added its names as "dhcppc3" in /etc/hosts files (ip address
> machine-name), also when I do "hostname" it shows different name, how
> can I name this machine as "tiger" so always I want the machine name as
> tiger (if I do "ping tiger" with LAN shoud work), how can I do that?.
> Thanks.
>


The solution is called Dynamic DNS. Google for it.

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
Felipe TP
Guest
Posts: n/a

 
      10-13-2005, 05:42 PM
You Can use a client for dynamic DNS called DynDNS (www.dyndns.com), or
NO-IP (no-ip.com). I believe that both clients have a linux version...
enjoy

 
Reply With Quote
 
Snowbat
Guest
Posts: n/a

 
      10-14-2005, 04:01 PM
GS wrote:

> Everytime when I boot (sometimes kids reboots) it gets new IP address,
> I did port mapping in the Router (any ssh requests to this Ip addr),
> when it changed Ip address, I can't access rempotely, any solution.


Configure your Linux box to use a static IP address within the router's LAN
subnet but outside its DHCP pool. Change your portmap to point to the
static IP address. For example, the default Linksys WRT54G DHCP pool is
192.168.1.100 to 192.168.1.149 so you are free to use 192.168.1.2 to
192.168.1.99 (and 150 to 254) for fixed IP addresses.


> Also I added its names as "dhcppc3" in /etc/hosts files (ip address
> machine-name), also when I do "hostname" it shows different name,


In Mandriva 2005LE, hostname is set in the file /etc/sysconfig/network

> how
> can I name this machine as "tiger" so always I want the machine name as
> tiger (if I do "ping tiger" with LAN shoud work), how can I do that?.


Populate the hosts file on each computer to map "tiger" to a specific IP
address (you'll need a static IP address as above) or install and configrue
nmbd to answer netbios requests for tiger on the network.
http://linuxreviews.org/man/nmbd/
 
Reply With Quote
 
Floyd L. Davidson
Guest
Posts: n/a

 
      10-14-2005, 06:41 PM
Snowbat <(E-Mail Removed)> wrote:
>GS wrote:
>
>> Everytime when I boot (sometimes kids reboots) it gets new IP address,
>> I did port mapping in the Router (any ssh requests to this Ip addr),
>> when it changed Ip address, I can't access rempotely, any solution.

>
>Configure your Linux box to use a static IP address within the router's LAN
>subnet but outside its DHCP pool. Change your portmap to point to the
>static IP address. For example, the default Linksys WRT54G DHCP pool is
>192.168.1.100 to 192.168.1.149 so you are free to use 192.168.1.2 to
>192.168.1.99 (and 150 to 254) for fixed IP addresses.


With a Linksys WRT54G, that will be a problem! I'm not sure
what the Linksys is doing to accomplish this, but it will *not*
route to addresses outside the range that its DHCP server will
assign.

This can make for some real problems with static IP's. However,
on a small LAN it is very unlikely that the upper limit of the
pool will ever be reached... hence assigning the last few IPs
from the pool range is probably safe. It might be best to
configure the pool to have a larger range though, say 100
addresses.

If third party firmware (dd-wrt is highly recommended) is
installed in the Linksys, there are a large number of other
options available, such as assigning static IP addresses via the
DHCP server, which can be accomplished because there is command
line access to the WRT54G.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
Snowbat
Guest
Posts: n/a

 
      10-16-2005, 02:30 AM
Floyd L. Davidson wrote:

> Snowbat <(E-Mail Removed)> wrote:
>>For example, the default Linksys WRT54G DHCP pool is
>>192.168.1.100 to 192.168.1.149 so you are free to use 192.168.1.2 to
>>192.168.1.99 (and 150 to 254) for fixed IP addresses.

>
> With a Linksys WRT54G, that will be a problem! I'm not sure
> what the Linksys is doing to accomplish this, but it will not
> route to addresses outside the range that its DHCP server will
> assign.


This was certainly not a problem for my WRT54G running Linksys firmware
1.42.2 (until very recently the latest available for the ETSI model). My
WRT54G now runs Sveasoft Alchemy V1.0 and no problem there either.


 
Reply With Quote
 
Floyd L. Davidson
Guest
Posts: n/a

 
      10-16-2005, 03:53 AM
Snowbat <(E-Mail Removed)> wrote:
>Floyd L. Davidson wrote:
>
>> Snowbat <(E-Mail Removed)> wrote:
>>>For example, the default Linksys WRT54G DHCP pool is
>>>192.168.1.100 to 192.168.1.149 so you are free to use 192.168.1.2 to
>>>192.168.1.99 (and 150 to 254) for fixed IP addresses.

>>
>> With a Linksys WRT54G, that will be a problem! I'm not sure
>> what the Linksys is doing to accomplish this, but it will not
>> route to addresses outside the range that its DHCP server will
>> assign.

>
>This was certainly not a problem for my WRT54G running Linksys firmware
>1.42.2 (until very recently the latest available for the ETSI model). My


The way this typically manifests itself is that you try to
connect to the HTTP server of a brand new WRT54G using a host
that has no interface with an IP address in the range served up
by the WRT54G's DHCP server. The interface lights blink, and it
is obvious that each command causes a significant amount of
traffic, but no response...

Until an interface on that host has an IP address which is
within the appropriate range, and then all works just fine.

Obviously if you just happen to be using an IP address within
that range, or if you get an IP address with DHCP, you'll never
notice it does that.

I have not checked the newer releases from Linksys, so I can't
be positive that they didn't change that. I think mine were all
back about firmware version 1.37 or some such.

>WRT54G now runs Sveasoft Alchemy V1.0 and no problem there either.


I don't recall ever checking to see if it does the same thing or
not.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can No Longer Access Shares Remotely razor Windows Networking 4 11-01-2007 08:19 PM
Can not access server remotely vinokuax Windows Networking 5 09-30-2005 08:49 AM
Remotely Access MN-100 base station? Mark Broadband Hardware 3 02-06-2004 12:41 AM
access my win2k server remotely shawn Windows Networking 2 12-21-2003 09:33 AM
How to remotely access my computer 7M Windows Networking 1 10-07-2003 09:52 AM



1 2 3 4 5 6 7 8 9 10 11