RRAS not giving DHCP addresses via PPTP VPN

Hi all,

I've got a SBS 2003 server that's started giving me problems recently.  I can connect via PPTP VPN but always get a self-assigned address (169.x.x.x) until I restart RRAS from within the RRAS console.  This started happening 1-2 weeks ago.

A few quick googles didn't yield much but did help me realise that something strange is going on - two processes are running on port 67 (DHCP) on the server (see below).

After I restart RRAS, the SVCHOST PID changes but still is running on port 67 concurrently with DHCP.  Despite two processes listening on port 67, RRAS now gives PPTP clients a valid IP (10.x.x.x)

Any ideas on the cause and fix?

netstat output:
Active Connections
  Proto  Local Address          Foreign Address        State           PID
  UDP            *:*                                    1612
  UDP            *:*                                    7272
Tasklist output:
Image Name                     PID Services                                    
========================= ======== ============================================
svchost.exe                   1612 AeLookupSvc, BITS, Browser, CryptSvc,       
                                   dmserver, EventSystem, helpsvc,             
                                   lanmanserver, lanmanworkstation, Messenger, 
                                   Netman, Nla, RasMan, RemoteAccess,          
                                   Schedule, seclogon, SENS, ShellHWDetection, 
                                   winmgmt, wuauserv

Open in new window

Who is Participating?
Netman66Connect With a Mentor Commented:
You should use the RRAS service to put in a dependency on DHCP service.

In Services.msc is where you can modify the RRAS service dependencies.  You may need to look at the DHCP server service to find the service name to add as the dependency.

Are you running WDS on this server also?

You may want to check DHCP leases next time you encounter this problem - see if the scope is exhausted or there are 10 RRAS leases already.

Normally, RRAS reserves 10 IPs at a time from DHCP for use with the clients that RAS in, when that pool gets near it's capacity, then RRAS will request another block of 10 IPs.  I think you may have a pool exhaustion happening.

Vires_PtyLtdAuthor Commented:
After a month, the problem finally came back so I could look at things while they were messed up.

It only seems to happen after the server restarts.

A few other symptoms:
*  In DHCP, there are no RAS reservations - whether things are working or not.  This is the first SBS server I've seen with a DHCP Relay Agent configuration. (In RRAS, under IP routing there is General, Static Routing, and DHCP routing entries).

* In RRAS, the Internal interface is Up but has a 169.*.*.* self-assigned address.  After restarting RRAS, it correctly has a 10.0.*.* address.

It looks as though RRAS tries to reserve addresses and can't, then falls back to a 169.*.*.* IP.  Others have suggested changing the boot order of the services (to make sure DHCP starts up first - how do I do this?), checking if a rogue DHCP server is interfering (none as far as I can see), and if the DHCP server is trusted (it is Active Dir authorised).

Any suggestions?
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Vires_PtyLtdAuthor Commented:
Thanks for the help - there doesn't appear to be a way to add dependencies via services.msc but I found the microsoft documentation on adding dependencies via the registry which worked.
Vires_PtyLtdAuthor Commented:
I was able to add a dependency by following the microsoft instructions available here:



Backup and open the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service name>
Add a key of type REG_MULTI_SZ named DependOnService (if it doesn't exist already)
Add the service dependcies, ONE per line

Note: To wait for the DHCP server, add "DHCPServer" not "DHCP" (this is the client)

Changes seem to be instantly reflected in services.msc
Perfect!  Nice work.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.