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


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


AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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).
http server-source

http server-source


The http server-source command specifies a source IP address for an HTTP server.

The undo http server-source command deletes the source IP address of an HTTP server.

By default, the source IP address of an HTTP server is not specified.


http server-source { -a source-ip-address | -i interface-type interface-number }

undo http server-source


Parameter Description Value
-a source-ip-address

Specifies the source IP address for the HTTP server. The loopback IP address is recommended.

-i interface-type interface-number

Specifies the loopback interface of the HTTP server as the source interface.

If no loopback interface is configured or no IP address is configured for the source interface, the command fails to be executed.



System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If no source IP address is specified, the HTTP server uses the source IP address specified by routes to send and receive packets. The source IP address must be configured for an interface with stable performance, such as the loopback interface. Using the loopback interface as the source IP address simplifies the ACL rule and security policy configuration. This shields the IP address differences and interface status impact, filters incoming and outgoing packets, and implements security authentication.


  • After the source IP address is specified for the HTTP server, you must use the specified IP address to log in to the HTTP server.
  • If the HTTP service has been enabled, the HTTP service restarts after the http server-source command is executed.


# Set the source IP address of the HTTP server to LoopBack0.

<Huawei> system-view
[Huawei] http server-source -i loopback 0
Warning: To make the server source configuration take effect, the HTTP server will be restarted. Continue? (y/n)[n]:y
Info: Succeeded in setting the source IP or interface of the HTTP server
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 90656

Downloads: 124

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