No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE40E V800R010C10SPC500 Configuration Guide - User Access 01

This is NE40E V800R010C10SPC500 Configuration Guide - User Access
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Automatic User Login

Configuring Automatic User Login

Usage Scenario

In a Dynamic Host Configuration Protocol version 4 (DHCPv4) user access scenario, when the router is restarted or its board, subcard, or interface is faulty, DHCPv4 users are logged out and their information is lost. If a DHCPv4 client does not detect the fault, the DHCPv4 client does not resend a DHCP request packet to the router or redial up after the fault is rectified. As a result, the DHCPv4 user cannot go online again. To address this problem, configure automatic user login. Specifically, save user information automatically before any fault occurs and allow the users to go online automatically after the fault is rectified.

If the router is powered off and restarted, user information saved in the high-end memory will be lost. Before the router is powered off, write the user information saved in the high-end memory to the CF card. After the router is restarted, restore the user information saved in the CF card to the high-end memory.

NOTE:

The following DHCPv4 user information is saved: MAC address, IP address, VLAN/PVC, access interface, VPN instance name, domain name, lease, Option 82, Option 60, Option 61, and IP address of the DHCPv4 server. The DHCPv4 user information is used only when the DHCPv4 users go online automatically. To ensure security, do not save DHCPv4 user information in the CF card for a long time and clear it in time.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run access-user dhcp auto-save enable max-user-number max-user-number

    Automatic backup of DHCPv4 user information is enabled globally, and the maximum number of DHCPv4 users whose information can be backed up in all domains is specified.

    NOTE:

    The device backs up only information about the configured maximum number of DHCPv4 users in all domains. The excessive part of DHCPv4 user information is not backed up. Specify max-user-number as the total number of DHCPv4 users whose information needs to be backed up in all domains.

    The access-user dhcp auto-save command applies for a memory space based on the maximum number of DHCPv4 users. If the command cannot apply for the size of contiguous memory space, the command fails to be executed, and automatic backup of DHCPv4 user information is disabled.

  3. Run aaa

    The AAA view is displayed.

  4. Run domain domain-name

    The AAA domain view is displayed.

  5. Run access-user dhcp auto-save enable

    Automatic backup of DHCPv4 user information is enabled in the domain.

    Information about online DHCPv4 users in the domain is saved in the high-end memory, which is a storage medium. The larger the configured maximum number of the DHCPv4 users, the more memory space the user information takes up. For example, information about 64000 DHCPv4 users takes up 50 MB of memory.

    In a dual-system hot backup scenario, DHCPv4 user information is backed up using the dual-system hot backup mechanism, so the device does not save information about these DHCPv4 users in the high-end memory.

  6. Run quit

    Return to the AAA view.

  7. Run access-trigger lease-end-time original

    The router is configured to apply the original lease time for users that go online again after going offline abnormally.

  8. Run quit

    Return to the system view.

  9. Run access-user dhcp auto-recover enable

    Automatic DHCPv4 user login is enabled.

  10. (Optional) Run access-user dhcp auto-recover speed { slow | normal | fast }

    The rate at which DHCPv4 users automatically go online after the router recovers from a fault is configured.

    • If slow is configured, the maximum rate at which DHCPv4 users automatically go online after the router recovers from a fault is 100/s.

    • If normal is configured, the maximum rate at which DHCPv4 users automatically go online after the router recovers from a fault is 300/s.

    • If fast is configured, the maximum rate at which DHCPv4 users automatically go online after the router recovers from a fault is 500/s.

  11. To allow users to go online automatically after the device is powered off and restarted, perform the following operations additionally:

    1. Before the device is powered off, run access-user dhcp save-file file-path-name

      DHCPv4 user information saved in the high-end memory is written to the CF card, and the directory and file name are specified.

      If there is a large amount of DHCPv4 user information saved in the high-end memory, it takes a long time for the access-user dhcp save-file command to write the information to the CF card, which may affect services. Exercise caution when you run this command.

    2. After the device is restarted, run access-user dhcp recover-file file-path-name

      DHCPv4 user information saved in the CF card is restored to the high-end memory.

      The device reads DHCPv4 user information in the CF card and saves the information in the high-end memory. The new information does not override the orginal DHCPv4 user information saved in the high-end memory.

  12. Run commit

    The configuration is committed.

Checking the Configurations

Run the display access-user auto-save user-info { online | wait-recover | mac-address mac-address [ interface { interface-name | interface-type interface-number } [ pevlan pevlan cevlan cevlan ] ] } command to check DHCPv4 user information saved in the high-end memory.

[HUAWEI] display access-user auto-save user-info mac-address 0001-0101-0101
--------------------------------------------------------------------------------
   Index    MAC              IP address        Access interface     Vlan(PVC)
--------------------------------------------------------------------------------
   0        6ad4-04a7-11cc   192.168.210.218   GE5/1/0.3            200/100
   1        6ad4-05a7-11cd   192.168.210.217   GE5/1/0.3            200/100
   2        6ad4-06a7-11ce   192.168.210.216   GE5/1/0.3            200/100
   3        6ad4-07a7-11cf   192.168.210.215   GE5/1/0.3            200/100
   4        6ad4-08a7-11d0   192.168.210.214   GE5/1/0.3            200/100
   5        6ad4-09a7-11d1   192.168.210.213   GE5/1/0.3            200/100
   6        6ad4-0aa7-11d2   192.168.210.212   GE5/1/0.3            200/100
   7        6ad4-0ba7-11d3   192.168.210.211   GE5/1/0.3            200/100
   8        6ad4-0ca7-11d4   192.168.210.210   GE5/1/0.3            200/100
   9        6ad4-0da7-11d5   192.168.210.209   GE5/1/0.3            200/100
   10       6ad4-0ea7-11d6   192.168.210.208   GE5/1/0.3            200/100
   11       6ad4-0fa7-11d7   192.168.210.207   GE5/1/0.3            200/100
   12       6ad4-10a7-11d8   192.168.210.206   GE5/1/0.3            200/100
   13       6ad4-11a7-11d9   192.168.210.205   GE5/1/0.3            200/100

Run the display access-user auto-save statistics command to check statistics about DHCPv4 user information saved in the high-end memory.

[HUAWEI] display access-user auto-save statistics
   Max backup user number            : 64000                         
   Current valid item number         : 14                                        
   Current online user number        : 14                                        
   Current wait-recover user number  : 0                                         
   Version of user-backup-table      : V3.0    
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055031

Views: 17355

Downloads: 70

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next