 |
|
 |
|
Next: USB
|
| Author |
Message |
External

Since: Feb 16, 2005 Posts: 1
|
(Msg. 1) Posted: Wed Feb 16, 2005 10:49 am
Post subject: Newbie DHCP question Archived from groups: comp>sys>ibm>pc>hardware>networking (more info?)
|
|
|
I'm not sure I fully understand the principle behind DHCP. This is my
scenario/configuration.
I've got a small home network using a Linksys router (WRT54G) and have
my main computer connected directly into the router. Until recently, I
had the router default settings for DHCP (I had changed everything
else) but was trying the port forwarding option for some gaming. In
doing so, I was under the impression (after reading information on port
forwarding) that I had to change my setup to a static IP, so I did.
After fooling around a bit, trying different settings, and talking with
a tech at my local university, I realized that I didn't have to have a
static IP, but rather extend the "refresh time" (is that the correct
terminology?) for my DHCP. I did this and everything ran smoothly.
Curiosity (evil thing) being what it is, I decided to check my IP
address using ipconfig /all and discovered that while it did show I had
DHCP set up (complete with lease expiration times) it was still the
same original IP from the day prior. So, to verify, I shortened the
lease time in my router's settings to one minute. I wanted to see two
things: first, if it was actually changing my IP; and second, if the
change would affect my connection. So after shortening the time, I ran
WMP and streamed my local NPR, all the while checking with ipconfig
/all if anything was changing.
Two things I noticed were that neither the IP address was changing -
the lease expirations did change every minute - nor was I experiencing
any significant interruptions in the streaming radio. Perhaps gaming
would be different, though, and I might test that later.
Sorry this is so long-winded; perhaps my questions are even mute,
because I don't seem to have a full grasp of how DHCP works. Am I NOT
supposed to get a "new" IP with every lease expiration? Will there be
a significant interruption in my connection?
Thanks for your time and feedback,
Andrew >> Stay informed about: Newbie DHCP question |
|
| Back to top |
|
 |  |
External

Since: Feb 16, 2005 Posts: 3
|
(Msg. 2) Posted: Wed Feb 16, 2005 2:26 pm
Post subject: Re: Newbie DHCP question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
daytripper wrote:
[edit]
> If you are constructing "interesting" application port forwards, it's
almost
> always easiest to do so with static addresses for the target node(s).
> Systems that are not port forward targets can continue using dhcp
without
> issue...
[edit]
So if there are only 2 (two) systems on the network, and we're both on
for extended periods of time, then in practice, port forwarding with
DHCP shouldn't be an issue. And if it becomes one, because of a
changed IP address (for example my wife logs on before I do) then I
just need to change the IP address the port is forwarding to, correct?
Thanks!
Andrew<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Newbie DHCP question |
|
| Back to top |
|
 |  |
External

Since: Nov 18, 2003 Posts: 582
|
(Msg. 3) Posted: Wed Feb 16, 2005 4:53 pm
Post subject: Re: Newbie DHCP question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 16 Feb 2005 10:49:19 -0800, pianukim.TakeThisOut@hotmail.com wrote:
>I'm not sure I fully understand the principle behind DHCP. This is my
>scenario/configuration.
[snipped]
So you set the lease expiration down to 10 seconds.
At 5 seconds the nic will attempt to dhcp renew the *existing lease*.
If it succeeds, no change to the assigned ip address occurs - and your
expiration goes back up to 10 seconds.
Repeat as necessary...
If you are constructing "interesting" application port forwards, it's almost
always easiest to do so with static addresses for the target node(s).
Systems that are not port forward targets can continue using dhcp without
issue...
Cheers
/daytripper<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Newbie DHCP question |
|
| Back to top |
|
 |  |
External

Since: Nov 10, 2003 Posts: 485
|
(Msg. 4) Posted: Thu Feb 17, 2005 12:35 am
Post subject: Re: Newbie DHCP question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
pianukim DeleteThis @hotmail.com wrote:
> daytripper wrote:
> [edit]
>
>>If you are constructing "interesting" application port forwards, it's
>
> almost
>
>>always easiest to do so with static addresses for the target node(s).
>
>
>>Systems that are not port forward targets can continue using dhcp
>
> without
>
>>issue...
>
> [edit]
>
> So if there are only 2 (two) systems on the network, and we're both on
> for extended periods of time, then in practice, port forwarding with
> DHCP shouldn't be an issue. And if it becomes one, because of a
> changed IP address (for example my wife logs on before I do) then I
> just need to change the IP address the port is forwarding to, correct?
>
> Thanks!
> Andrew
>
Right. But with only 2 systems, there's probably no reason to use DHCP
in the first place. Static IPs should be easily manageable.
--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form che... DeleteThis @prodigy.net.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Newbie DHCP question |
|
| Back to top |
|
 |  |
External

Since: Nov 02, 2004 Posts: 283
|
(Msg. 5) Posted: Sat Feb 19, 2005 1:19 am
Post subject: Re: Newbie DHCP question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
pianukim DeleteThis @hotmail.com wrote:
> Two things I noticed were that neither the IP address was changing -
> the lease expirations did change every minute - nor was I experiencing
> any significant interruptions in the streaming radio. Perhaps gaming
> would be different, though, and I might test that later.
>
> Sorry this is so long-winded; perhaps my questions are even mute,
> because I don't seem to have a full grasp of how DHCP works. Am I NOT
> supposed to get a "new" IP with every lease expiration? Will there be
> a significant interruption in my connection?
The "Dynamic" in DHCP (Dynamic Host Configuration Protocol) is not as
dynamic as you think. This dynamic doesn't necessarily mean "ever
changing", it just means "able to adapt".
Once it's booted a PC with a certain set of values, it will remember the
PC's MAC address and store it in its own ARP cache. So next time the PC
gets booted, all it needs to do is refer back to its ARP cache and
reassign the same IP and other information to it again.
It's conceivable that you can get another computer, boot it up on the
network before your own computer and you will find that it takes over
what used to be your computer's IP address before. Then when you boot up
your own computer, you'll find that it doesn't just wait there waiting
for the other computer to give back its IP address. Instead the DHCP
will just assign it a new IP address.
Yousuf Khan<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Newbie DHCP question |
|
| Back to top |
|
 |  |
External

Since: Mar 13, 2005 Posts: 15
|
(Msg. 6) Posted: Sun Mar 13, 2005 3:35 am
Post subject: Re: Newbie DHCP question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
most routers will only give new IP addresses if you turn your system off and
waite for the lease to expire then turn on your system. The router should
give a new IP then.
Robert...
<pianukim.DeleteThis@hotmail.com> wrote in message
news:1108579758.994695.244570@f14g2000cwb.googlegroups.com...
> I'm not sure I fully understand the principle behind DHCP. This is my
> scenario/configuration.
>
> I've got a small home network using a Linksys router (WRT54G) and have
> my main computer connected directly into the router. Until recently, I
> had the router default settings for DHCP (I had changed everything
> else) but was trying the port forwarding option for some gaming. In
> doing so, I was under the impression (after reading information on port
> forwarding) that I had to change my setup to a static IP, so I did.
>
> After fooling around a bit, trying different settings, and talking with
> a tech at my local university, I realized that I didn't have to have a
> static IP, but rather extend the "refresh time" (is that the correct
> terminology?) for my DHCP. I did this and everything ran smoothly.
>
> Curiosity (evil thing) being what it is, I decided to check my IP
> address using ipconfig /all and discovered that while it did show I had
> DHCP set up (complete with lease expiration times) it was still the
> same original IP from the day prior. So, to verify, I shortened the
> lease time in my router's settings to one minute. I wanted to see two
> things: first, if it was actually changing my IP; and second, if the
> change would affect my connection. So after shortening the time, I ran
> WMP and streamed my local NPR, all the while checking with ipconfig
> /all if anything was changing.
>
> Two things I noticed were that neither the IP address was changing -
> the lease expirations did change every minute - nor was I experiencing
> any significant interruptions in the streaming radio. Perhaps gaming
> would be different, though, and I might test that later.
>
> Sorry this is so long-winded; perhaps my questions are even mute,
> because I don't seem to have a full grasp of how DHCP works. Am I NOT
> supposed to get a "new" IP with every lease expiration? Will there be
> a significant interruption in my connection?
>
> Thanks for your time and feedback,
> Andrew
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Newbie DHCP question |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|