• Main Menu
  • DHCP and Remote Access


    DHCP and Remote Access Overview

    When a remote computer connects to a remote access server (RRAS), it is automatically provided with an IP address when the Point-to-Point Protocol (PPP) connection is established.

    You can configure the RRAS server to allocate IP addresses to remote clients from:

    • A static range of IP addresses: This method is usually implemented when there are no internal DHCP servers.
    • An existing DHCP Server: This is achieved by relaying clients to the DHCP server for IP address allocation.

    If you have an internal DHCP server, you should configure the remote access server to allocate IP addresses via this server. If your DHCP server is not within broadcast range of the RRAS server, you must perform the one of the following configuration as well:

    • Configure the DHCP Relay Agent on the remote access server.
    • Configure the DHCP Relay Agent on the same subnet as the remote access server.

    The DHCP Relay Agent enables DHCP clients to obtain IP addresses from a DHCP server on a remote subnet. The router will drop DHCP broadcast messages if it is not configured to forward them, and no DHCP Relay Agent exists. To enable clients to obtain IP addresses from a DHCP server on a remote subnet, you have to configure the DHCP Relay Agent on the subnet that contains the remote client, so that it can relay DHCP broadcast messages to your DHCP server.DHCP and remote access

    If the remote access server is configured to obtain IP addresses from a DHCP server, to distribute these IP addresses to clients, the following process occurs:

    1. When the remote access server starts for the first time, it obtains a block of IP addresses from the DHCP server.
    2. The first IP address is used for the remote access server.
    3. The remainder of the IP addresses, the remote access server distributes to all TCP/IP based remote access clients during the PPP connection establishment process.
    4. When the remote access server needs over 10 IP addresses, it obtains additional blocks of 10 addresses.
    5. If the DHCP server was unavailable when the remote access server started, the remote access server assigns its own IP address through Automatic Private IP Addressing (APIPA).

    Configuring the RRAS server to use the DHCP server option

    To configure your RRAS server to use the DHCP server to obtain IP addresses to distribute to remote TCP/IP clients, you need to perform the following steps:

    • Configure the DHCP Relay Agent on the remote access server, or on the same subnet.
    • Configure the RRAS server to allocate IP addresses via the Dynamic Host Configuration Protocol (DHCP) option.

    To install and configure the DHCP Relay Agent,

    1. Click Start, All Programs, Administrative Tools and then click Routing and Remote Access to open the Routing And Remote Access console.
    2. Expand the IP Routing node in the console tree, right-click the General node, and then select New Routing Protocol from the shortcut menu.
    3. When the New Routing Protocol dialog box opens, select DHCP Relay Agent.
    4. Click OK.
    5. Expand the IP Routing node in the console tree.
    6. Right-click the DHCP Relay Agent node and then select New Interface from the shortcut menu.
    7. Select the interface and click OK.
    8. In the DHCP Relay Properties dialog box, ensure that the Relay DHCP Packets checkbox is selected on the General tab.
    9. Click OK.
    10. Right-click the DHCP Relay Agent node, and select Properties from the shortcut menu.
    11. Enter the DHCP server’s IP address. Click Add.
    12. Click OK.

    To configure the RRAS server to distribute IP addresses via the Dynamic Host Configuration Protocol (DHCP) option,Open the Routing And Remote Access console.

    1. Right-click the RRAS server node and then select Properties from th shortcut menu.
    2. Click the IP tab.
    3. In the IP Address Assignment area of the IP tab, click the Dynamic Host Configuration Protocol (DHCP) option.
    4. Click OK.

    The different DHCP and RRAS Configurations

    The method in which a remote client obtains IP addressing information is determined by the different configuration options which can be specified. The actual method which a remote client will use is determined by these IP configuration settings.

    The different DHCP and RRAS configurations that can be specified are:

    • The IP address is assigned from the static address pool on the RRAS server: This method is enabled when you select the Static Address Pool option on the IP tab of the RRAS server properties dialog box.

      To configure this method:

      1. Open the Routing And Remote Access console.
      2. Right-click the RRAS server node and then select Properties from the shortcut menu.
      3. Click the IP tab.
      4. In the Static Address Pool option.
      5. Click Add.
      6. Set the start IP address and end IP address to define the address range for the static address pool.
      7. Click OK.

      Because a remote client can only obtain IP addresses from the RRAS server, it has to access the DHCP server to obtain any other TCP/IP configuration information, such as a DNS server IP address, or WINS server IP address. For this to occur, you have to configure a DHCP Relay Agent for the RRAS server.

    • The IP address is assigned from the DHCP server via a DHCP Relay Agent: For this method, the Dynamic Host Configuration Protocol (DHCP) option is configured on the IP tab of the RRAS server properties dialog box. Here, the DHCP Relay Agent is configured on the RRAS server. The DHCP server distributes IP addresses and all other TCP/IP configuration information.
    • The IP address is assigned to the security object of the user (Active Directory): For this method, the IP address for the remote client is configured in the properties page of the particular user’s security object. When the client connects to the RRAS server, the IP address configured in the properties page is used. The settings configured in the Remote Access Policy are simply ignored.

    How to create a new user object in Active Directory:

    1. Click Start, Administrative Tools, and click the Active Directory Users And Computers console.
    2. In the console tree, select the OU wherein you want to create the new user object.
    3. From the Action menu, click New, and then click User.
    4. In the New Object – User dialog box, enter information for the fields listed below:
      • First name, Initials, Last name, Full name (automatically populated), User logon name, User logon name (pre-Windows 2000).
    5. Click Next.
    6. Enter a password in the Password field, and verify the password in the Confirm password field.
    7. If you leave the User must change password at next logon checkbox enabled, the user has to specify a new password at next logon. Click Next.
    8. Verify the settings that you entered on the Summary page.
    9. Click Finish to create the new user object.

    How to configure an IP address for a user object in Active Directory:

    1. Click Start, Administrative Tools, and click the Active Directory Users And Computers console.
    2. Right-click the domain, and select Find from the shortcut menu. The Find option is used to locate objects in Active Directory. You can specify that the search should be performed on the Active Directory directory, or on a particular OU, and you can specify various other search criteria and options.
    3. Enter the username that you want to statically assign an IP address for. Click Find Now to locate the particular user object.
    4. Double-click the username in the search results window to open the properties page of the user object.
    5. Click the Dial-in tab.
    6. Enable the Assign A Static IP checkbox.
    7. Enter an IP address in the available box.
    8. Click OK.

    Got Something To Say:

    Your email address will not be published. Required fields are marked *

    Microsoft DHCP
    174 queries in 0.461 seconds.