Re: Test for IP address change?
From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 01/07/05
- Next message: Simon Mercier: "Re: W32Time setting using GPO on W2k Server"
- Previous message: Cowboy (Gregory A. Beamer) - MVP: "RE: URGENT: Why the impersonation work in one case and not the other?"
- In reply to: Hoof Hearted: "Test for IP address change?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 8 Jan 2005 00:43:30 +1100
"Hoof Hearted" <HoofHearted@discussions.microsoft.com> wrote in message
news:43732228-2FA8-42B6-A182-551DE6A6D30E@microsoft.com...
> My server is connected to the internet via a dlink adsl modem. The modem
> connects to the internet and then assigns the static ip address to the
> network card on my server using it's own DHCP. This all works fine until
> there is a glitch on the adsl line. The modem then assigns a 192.168
address
> to the network card and the internet becomes unavailable.
> If I repair the network connection it regains the static ip address from
the
> modem.
>
> I would like to have a scheduled task which checks the IP address, and if
it
> has changed to a 192.168 address, then force a repair of the network
> connection. Is there a way of doing this?
>
> Confinguring the network card directly with the static IP address doesn't
> work.
>
>
It seems strange that you cannot assign a static IP address to your
server.
Anyway, here is a batch file that will check your server IP address:
@echo off
ipconfig | find /i "IP Address" | find "192.168" || goto :eof
c:\tools\RepairNetworkConnection.exe
- Next message: Simon Mercier: "Re: W32Time setting using GPO on W2k Server"
- Previous message: Cowboy (Gregory A. Beamer) - MVP: "RE: URGENT: Why the impersonation work in one case and not the other?"
- In reply to: Hoof Hearted: "Test for IP address change?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|