How to assign IP`s from different pools for users which connect to the same l2tp-group

29

When the L2TP-Group is configured, the remote parameter is not specified. As a result, during user access, different users are assigned IP addresses based on the address pool associated with the authentication domain. For details, see:How to assign IP`s from different pools fo users which connect to the same l2tp-group

Other related questions:
What is the difference between Easy IP and address pool
The differences between NAT and easy IP are as follows: - When Easy IP is used, the interface IP address is used as the mapped public IP address. - When the address pool is used, the public address pool needs to be configured. The public address that maps the private address is selected from the public address pool. When a user accesses the public network through NAT, use either of the following modes based on the IP plan of the public network: - When the IP address of the outbound interface and other applications are configured on the NAT device, if there are idle public IP addresses, use the address pool mode. - When the IP address of the outbound interface and other applications are configured on the NAT device, if there are no idle public IP addresses, use the Easy IP mode.

Why different clients obtain the same IP address
When an S series switch functions as a DHCP server, a DHCP client accesses the network again in the following process: The DHCP client broadcasts a DHCP Request packet carrying the IP address allocated in the first time, that is, the Option 50 field in the packet. After receiving the DHCP Request packet, the DHCP server checks whether the lease record exists based on the MAC address in the packet. If so, the DHCP server replies with a DHCP ACK packet to notify the DHCP client that the requested IP address can be used. If not, the DHCP server waits for a new DHCP Discover message from the client.

How to assign fixed IP addresses to terminals through the interface address pool on the AR
Reserve fixed IP addresses that will be assigned to terminals and manually assign them to terminals.

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.

How do I disconnect L2TP users on an AR
Use the following methods to disconnect L2TP users:
- Disconnect all users of the L2TP tunnel.
 1. Run the display l2tp tunnel [ tunnel-item <tunnel-id> | tunnel-name <tunnel-name> ] command in any view to check the ID of the tunnel to be terminated or remote tunnel name.
 2. Run the reset l2tp tunnel { peer-name <remote-name> | <local-id tunnel-id> } command in the user view to terminate the tunnel connection based on the local tunnel ID or remote tunnel name.
- Disconnect an L2TP user.
 1. Run the display l2tp session [ destination-ip <d-ip-address> | session-item <session-id> | source-ip <s-ip-address> ] command in any view to check the ID of the local session to be terminated based on the remote IP address.
 2. Run the reset l2tp session session-id <session-id> command in teh user view to terminate the session based on the local session ID.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top