A user that requires a fixed IP address can be configured as a static user.
The IPv4 address allocated to a Layer 2 static user must belong to a configured address pool. If the address pool is a local address pool, you must run the excluded-ip-address command to prevent a specified range of IP addresses from being dynamically allocated to other users.
If an IPv6 address or IPv6 delegation prefix needs to be allocated from a local address pool to a Layer 2 static user, you must configure a local address pool first and run the excluded-ipv6-address command to prevent a specified range of IPv6 addresses or IPv6 delegation prefixes from being allocated. If the allocation is required from a remote address pool, the remote address pool does not need to be configured on the local device.
Perform the following steps on the router.
The system view is displayed.
To create a static user and allow the user to go online through a specified interface, run the static-user [ description ] { start-ip-address [ end-ip-address ] [ gateway ip-address ] | start-ipv6-address [ end-ipv6-address ] [ delegation-prefix start-ipv6-prefix [ end-ipv6-prefix ] prefix-length ] ipv6-gateway ipv6-gateway-address} * [ vpn-instance instance-name ] [ domain-name domain-name | interface { interface-name | interface-type interface-number } [ vlan vlan-id [ qinq qinq-vlan ] ] | mac-address mac-address | detect | export | keep-online ] * command.
If detect is specified, the NetEngine 8000 F proactively triggers a static user to go online upon detection of the user. If detect is not specified:
When creating a static user, you can specify the IP address (and the VPN instance to which the IP address belongs), interface through which the user is connected to the NetEngine 8000 F, domain to which the user belongs, and MAC address.
The interval at which the router detects whether static users are online is configured.
The IP address segment and authentication domain are configured for Layer 3 static users.
The device can only have a limited number of IP address segments configured. If IPv4 addresses of user access packets do not belong to the IP address segments configured, the packets are discarded, and users cannot go online. Running the layer3-subscriber ip-address any domain-name domain-name command is recommended in scenarios where there are a large number of IP address segments on the network so that users whose IP addresses do not belong to the IP address segments configured can go online through the configured domain.
Dynamic VPN instance switching is enabled for Layer 3 static users.
This function applies only to IPoEv4 scenarios.
The configuration is committed.