Question : DHCP and 255.0.0.0 subnet mask

Hi we run a couple of server 2008 servers geographically separated on a managed wan
The IP configuration we use is 10.xx.yy.zz where x denotes location and y denotes equipment type.

We use static addressing with a subnet mask of 255.0.0.0 which gives good access across the network, however obviously there is a problem when it comes to DHCP for either VPN devices or wireless devices as DHCP will only provide 255.255.255 etc, any ideas on a way to overcome this problem would be greatly appreciated.

Answer : DHCP and 255.0.0.0 subnet mask


Hi

The solution can be found here : http://technet.microsoft.com/en-gb/library/bb878117.aspx

and in particular by Using a CMD file on the VPN client

A command file (.CMD), also known as a batch file, is created and run on the VPN client computer after the VPN connection is made. The command file contains a series of route commands that add the routes of the organization intranet to which the VPN client is connecting. The route commands use the IP address that is dynamically assigned during the connection to the VPN client computer (by the VPN server) as the gateway IP address. Therefore, you must design your command files to allow the dynamically assigned IP address as a parameter when running the command file.

For example, to add routes for the private address space, the Example.cmd file is created with the following contents:

route add 10.0.0.0 mask 255.0.0.0 %1

route add 172.16.0.0 mask 255.240.0.0 %1

route add 192.168.0.0 mask 255.255.0.0 %1

To correctly run this command, the VPN client user must first determine the IP address assigned to the VPN connection. You can do this by running ipconfig at a command line or by double-clicking the VPN connection in the Network Connections folder when the VPN connection is active. In the resulting Status dialog box, click the Details tab. The VPN client's assigned IP address is listed as Client IP address.

After the VPN client's assigned IP address is determined, the Example.cmd file is executed with the IP address as a parameter. For example, for the VPN client with the assigned IP address of 192.168.99.211, the command run at the command line is:

example 192.168.99.211

You can also use other methods, such as Visual Basic, to obtain the VPN client's assigned IP address programmatically and add the routes.

Note  To add routes, the VPN client user account must have local administrator privileges.


please test and post back

Random Solutions  
 
programming4us programming4us