On 2006-06-13,
(E-Mail Removed) <(E-Mail Removed)> wrote:
> Hi, I have sort of a newbie question. I noticed this morning, that when
> I don't run my cable modem through my router (WRT54G), but right into
> my computer I usually get a new IP address that I've never seen before.
> Howeer, when I use my router, I end up with the same one I've been
> getting with the router for a long time now. This isn't really a
> problem I'm just curious as to why
Your cable provider gives you an internet ip address.
As they have limited resources, and to simplify configuration,
they (your provider) have a pool of IPs and just give out any free
address when you connect.
A router can put multiple computers online over one line.
IP addresses have to be distinctive, but you only get _one_ from your
provider.
So the trick is, your router has two interfaces, internal and external,
and "routes" the IP packages for your PCs.
The routers external interface gets the single ip address from your
provider, you just don't get to see it on your PC.
At the internal interface, it acts as DHCP server, and when your
computer asks for an ip, it gives out one from an internal network
block, e.g. 192.168.1.1 - 192.168.1.255.
Usually, routers remind which internal IP you had last and
reassign it to you on request, so you usually get the same internal
ip address.
--
Marco Dieckhoff
GPG Key 0x1A6C95BA --
http://www.frankonia-brunonia.de/keys