Supported Platforms
Related Documentation
Configuring MX Series Router Cloud CPE DHCP Services
This topic describes how to configure DHCP cCPE services.
Before you begin, make sure you have completed the steps for the cCPE common configuration. See Configuring the Common Configuration for MX Series Router Cloud CPE Services.
To configure the DHCP cCPE services, complete the following tasks:
- Configuring the DHCP Server on the MX Series Router for the cCPE Context
- Configuring Subscriber Address Pools for MX Series Router Cloud CPE DHCP Services
Configuring the DHCP Server on the MX Series Router for the cCPE Context
Configure DHCP local server options on the PE router. The DHCP local server receives DHCP request and reply packets from DHCP clients and then responds with an IP address and other optional configuration information to the client. To configure the local DHCP server for the cCPE context:
- Configure the DHCP server in each routing instance that
corresponds to a subscriber VPN site. [edit]user@host# edit routing-instances acme system services dhcp-local-server group default-group interface irb.subscriber-vlan-unit-id
- (Optional) When you configure a DHCP server in a VRF,
if you want the server to handle DHCP requests sent by DHCP relay
agents located at remote sites of the same VPN, you need to add tunnel
interfaces to the DHCP server. Specifically, you need to add the following
configuration to the DHCP server:user@host set routing-instances acme system services dhcp-local-server group default-group interface lsi.0 upto lsi.16385
Configuring Subscriber Address Pools for MX Series Router Cloud CPE DHCP Services
Configure the address pools within the subscriber’s VRF routing instance. The address pools that you configure for the VPN site need to be part of the subscriber’s private subnets, configured for the IRB interface.
To configure the address pools:
- Configure the address pools within the subscriber’s
routing instance. [edit]user@host# edit routing-instances subscriber-id access address-assignment pool acme-pool family inet
- Configure the subnet information for the IPv4 address-assignment
pool.[edit routing-instances acme access address-assignment pool acme-pool family inet]user@host# set network prefix/prefix-length
- Configure a named range of IPv4 addresses, used within
the address-assignment pool.
- Define the lower limit of the address range.[edit routing-instances acme access address-assignment pool acme-pool family inet]user@host# set range r1 low lower-limit
- Define the upper limit of the address range.[edit routing-instances acme access address-assignment pool acme-pool family inet]user@host# set range r1 high upper-limit
- Repeat the process for each subscriber and address range.
- Define the lower limit of the address range.
- Configure address pools that can be used by different
client applications. In the following example, we configure the DNS,
WINS, and router servers, however, there are many other DHCP attributes
that you can configure depending on your network requirements.
- Specify a DNS server to which clients can send DNS queries. [edit routing-instances acme access address-assignment pool acme-pool family inet]user@host# edit dhcp-attributes[edit routing-instances acme access address-assignment pool acme-pool family inet dhcp-attributes]user@host# set name-server dns-server-ip-address
- Specify one or more NetBIOS name servers that the client
uses to resolve NetBIOS names. [edit routing-instances acme access address-assignment pool acme-pool family inet dhcp-attributes]user@host# set wins-server wins-server-ip-address
- Specify one or more routers located on the client’s
subnet. [edit routing-instances acme access address-assignment pool acme-pool family inet dhcp-attributes]user@host# set router router-ip-address
- Specify a DNS server to which clients can send DNS queries.
- Review the configuration.[edit routing-instances acme access address-assignment pool acme-pool family inet]user@host# show
pool acme-pool { family inet { network 10.10.1.1/32; range r1 { low 10.10.0.1; high 10.10.10.10; } dhcp-attributes { name-server { 10.10.1.2; } wins-server { 10.10.1.3; } router { 10.10.1.4; } } } }