How do I assign DNS to L2TP dial-up users

You can use either of the following methods:
-Use the DNS server address specified in the address pool.
1.Create an address pool and specify the DNS server address in the address pool. system-view
[sysname] ip pool l2tp_pool
[sysname-pool-l2tp_pool] section 0 1.1.1.1 1.1.1.10
[sysname-pool-l2tp_pool] dns-list 2.2.2.1 //Change the DNS server address to the actual address.
[sysname-pool-l2tp_pool] quit
2.Create a service scheme and reference the address pool.[sysname] aaa
[sysname-aaa] service-scheme srvscheme1
[sysname-aaa-service-srvscheme1] ip-pool l2tp_pool //Change the DNS server address to the actual address.
3.Reference the service scheme in the authentication domain. system-view
[sysname] aaa
[sysname-aaa] domain domain1 //Change the authentication domain to the one used when you configure L2TP.
[sysname-aaa-domain1] service-scheme srvscheme1

-Use the DNS server address specified in the service scheme.
1.Create a service scheme. system-view
[sysname] aaa
[sysname-aaa] service-scheme srvscheme1
[sysname-aaa-service_srvscheme1] dns 2.2.2.1 //Change the DNS server address to the actual address.
2.Reference the service scheme in the authentication domain. system-view
[sysname] aaa
[sysname-aaa] domain domain1 //Change the authentication domain to the one used when you configure L2TP.
[sysname-aaa-domain-domain1] service-scheme srvscheme1 //Reference the service scheme in the authentication domain.

If DNS server addresses are specified in both the address pool and service scheme, the DNS server address specified in the address pool is preferentially used.

Scroll to top