How can I prevent the Auto-Config function from periodically clearing DHCP-related configurations on the device


The router functions as the egress router of an Internet bar and uses the typical configuration. However, web pages are displayed at a low rate and users often go offline when playing online games. How do I solve this problem?

1. Run the tcp adjust-mss 1024 command on the inbound and outbound interfaces of the router.
2. Run the firewall-nat session { tcp | udp } aging-time time-value command to properly increase the timeout intervals of the TCP connection and UDP connection.
You can perform the preceding operations to significantly improve the Internet access performance.

Other related questions:
How do I solve the DHCP configuration loss problem after device restart

After the device restarts, there is a low probability that the DHCP configuration is lost.

Auto-Config is enabled by default. About two and a half minutes after the device restarts, the Auto-Config module checks whether the configuration file exists and determine whether the Auto-Config process is executed. If the save command is used at this time, files conflict. As a result, the Auto-Config module determines that the configuration file does not exist, and incorrectly executes the Auto-Config process. In this case, information about option fields or intermediate file required for executing the Auto-Config process is not configured on the DHCP server. Consequently, the Auto-Config process is suspended, and the DHCP configuration (including the configuration during configuration recovery and the Auto-Config process) is deleted.

After the device restarts, run the undo autoconfig enable command in the system view to disable Auto-Config.

How to enable or disable the Auto-Config function on an AR
When you log in to a new device (without the startup configuration file) through the console interface, the following information is displayed: "Auto-Config is working. Before configuring the device, stop Auto-Config. If you perform configurations when Auto-Config is running, the DHCP, routing, DNS, and VTY configurations will be lost. Do you want to stop Auto-Config?[y/n]:" To keep Auto-Config enabled, enter n. To disable Auto-Config, enter y.

Why is the DHCP configuration lost on an AR after a while
If Auto-Config is enabled, the AR will periodically clear all DHCP configurations, causing DHCP configuration loss. To solve the problem, perform the following steps: 1. Run the undo autoconfig enable command on the AR to disable Auto-Config. 2. Wait for 4 or 5 minutes and run the display autoconfig-status command to check the Auto-Config status. If the value of Running is NO, the Auto-Config function has been disabled. 3. Perform the configuration and run the save command.

Why the auto-config function does not take effect
V100R005 It takes an unconfigured switch 5 minutes to download a configuration file from the FTP or TFTP server after it starts. You can specify the configuration file for a switch by configuring either of the following: Option 67 Intermediate file If the configuration file is specified by Option 67, the configuration file will take effect a few minutes later. The time depends on the size of the configuration file. If the configuration file is specified in the intermediate file, the configuration file will take effect two hours later. Therefore, if you check the configuration immediately after the switch starts, no configuration is displayed. V100R006-V200R002 In V100R006 and later versions, the auto-config function is enhanced. You can set the delaytime parameter in DHCP Option 146 to specify the delay after which the configuration file takes effect. The delay ranges from 0 to 86400 seconds. For example, if the delay is set to 7200 seconds, the configuration file takes effect 7200 seconds after it is downloaded. Run the display autoconfig-status command to view the current status of the auto-config process and how long will the configuration file take effect. display autoconfig-status Autoconfig is enabled. The current status of autoconfig is finish The status of DHCP phase: Operation result : -- The status of getting system files phase: The mode of getting files: -- Operation result : -- Error reason : -- Vrp File Name : -- Operation result : -- Error reason : -- Pat File Name : -- Operation result : -- Error reason : -- Web File Name : -- Operation result : -- Error reason : -- The status of getting configuration phase: Cfg File Name : -- Operation result : -- Error reason : -- The status of activating configuration phase: Remained time(s) : -- Operation result : -- During the delay, you can run the autoconfig activating-config delay command to change the delaytime value. The autoconfig activating-config delay 0 command makes the configuration file effective immediately. By default, the configuration file takes effect immediately after it is downloaded.

What is the function of inherit-config
You can run the stack member member-id renumber new-member-id [ inherit-config ] command to change the stack member ID.
- If the inherit-config parameter is specified, the switch inherits the original stack configuration after it restarts, including the stack priority, stack domain ID, connection mode, and physical member port configuration. The common service port configuration, such as the port split configuration, will be lost, but the split configuration of physical member ports will be inherited.
- If the inherit-config parameter is not specified, the current stack configuration and common service port configuration are lost after the switch restarts. The configuration related to the new stack member ID in the configuration file takes effect.
- If the configuration file contains offline configuration for the new stack member ID, do not specify inherit-config in the command.

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