Networking Forums

Networking Forums > Computer Networking > Linux Networking > ip change detection

Reply
Thread Tools Display Modes

ip change detection

 
 
Runamok
Guest
Posts: n/a

 
      05-03-2004, 08:54 PM
it's possible to detect an ip change at application level?
If I move the network cable from a network to another one, the dhcp client
do not renew automatically the ip number (in Windows it happens). There's a
way to configure the dhcp client to concern about network changes, in that
way, in a wireless scenario, we could change ip automatically, and if
there's a way to notify this change to applications that uses UDP packets
(see Voip) the application can make the right moves....

thanks in advance,
Alx


 
Reply With Quote
 
 
 
 
Alex Harsch
Guest
Posts: n/a

 
      05-04-2004, 06:19 AM
Runamok wrote:

> it's possible to detect an ip change at application level?
> If I move the network cable from a network to another one, the dhcp client
> do not renew automatically the ip number (in Windows it happens).->Windows

does a lot of things, but, as it appears to me, this is not an performance
increase we experience, using a windows machine.
Well, as a workaround, you could do pings on the subnet your working in. As
soon as you cannot reach an other machine, tell the dhcpd to renew its
address.
> There's
> a way to configure the dhcp client to concern about network changes, in
> that way, in a wireless scenario, we could change ip automatically, and if
> there's a way to notify this change to applications that uses UDP packets
> (see Voip) the application can make the right moves....
>
> thanks in advance,
> Alx

Alex
 
Reply With Quote
 
Runamok
Guest
Posts: n/a

 
      05-04-2004, 10:26 AM

"Alex Harsch" <(E-Mail Removed)> ha scritto nel messaggio
news:c77cmd$2uhu$(E-Mail Removed)...
> Runamok wrote:
>
> > it's possible to detect an ip change at application level?
> > If I move the network cable from a network to another one, the dhcp

client
> > do not renew automatically the ip number (in Windows it happens).

>Windows
> does a lot of things, but, as it appears to me, this is not an performance
> increase we experience, using a windows machine.
> Well, as a workaround, you could do pings on the subnet your working in.

As
> soon as you cannot reach an other machine, tell the dhcpd to renew its
> address.


We can also listen at router advertisements but, again, how can I detect
that ICMP packet at application level?

Alx


 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      05-04-2004, 01:42 PM
"Runamok" <(E-Mail Removed)> wrote in message news:<c76bbp$ba7$(E-Mail Removed)>...
> it's possible to detect an ip change at application level?
> If I move the network cable from a network to another one, the dhcp client
> do not renew automatically the ip number (in Windows it happens). There's a
> way to configure the dhcp client to concern about network changes, in that
> way, in a wireless scenario, we could change ip automatically, and if
> there's a way to notify this change to applications that uses UDP packets
> (see Voip) the application can make the right moves....
>
> thanks in advance,
> Alx


Not sure what happens with your app, but re: dhcp renewals ...

The dhcp client only acquires a lease when the interface is brought
up. Changing the patch cord out is not enough -- you would have to
reboot the machine or ifconfig down followed by ifconfig up.

But wait ... that may (very likely) will cause the dhcp client to
attempt to renew the _old_ setup. This is getting to be a pain ...

To automatically get link state changes to trigger a new/"proper" dhcp
request (like Windows) you can try this:
http://www.stud.uni-hamburg.de/users...jects/ifplugd/
Check your distro, as some (like Mandrake) include it by default --
sounds like yours does not (like Redhat).

I think this is what you're looking for.

hth,
prg
email above disabled
 
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
ADSL Detection do.not.waste.your.time.emailing.me@this.address.it.is.invalid Broadband 5 07-05-2005 10:08 PM
Hot spot detection Brian Wireless Internet 10 03-21-2005 02:57 AM
No Modem Detection DBarselow Windows Networking 1 06-09-2004 01:50 AM
Sniffer Detection Chris Linux Networking 7 03-03-2004 11:08 PM
Active detection of APs . Wireless Internet 0 01-25-2004 12:55 AM



1 2 3 4 5 6 7 8 9 10 11