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.


CLI-based Configuration Guide - IP Service

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.

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).
(Optional) Configuring NAT Log Output

(Optional) Configuring NAT Log Output


NAT logs are generated when the router performs address translation. The logs record the original source IP addresses, source ports, destination IP addresses, destination ports, and translated source IP addresses and source ports, as well as user actions and time stamps. You can view NAT logs to learn about information about users have accessed a network using NAT.

The router can send NAT logs to a specified log host, as shown in Figure 5-16.

Figure 5-16  Sending NAT logs to a specified log host


  1. Run system-view

    The system view is displayed.

  2. Run firewall log session enable

    The firewall log function is enabled.

  3. Run firewall log session nat enable

    The NAT session log function is enabled.

  4. (Optional) Run nat log-format elog

    Sets the NAT log format to eLog. The logs are generated in the format specified by the eLog server.

  5. Run the following command to output logs to the information center log host or session log host:

    • Output logs to the information center log host

      1. Run info-center enable

        The information center is enabled.

      2. Run info-center loghost ip-address [ channel { channel-number | channel-name } | facility local-number | | { vpn-instance vpn-instance-name | public-net } ] *

        The channel through which logs are output to the log host is configured.

        The router supports a maximum of eight log hosts to implement backup among log hosts.

        For details on how to configure the router to send logs to a log host, see Example for Outputting Log Information to a Log Host in "Information Center Configuration" of the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series V300R003 Configuration Guide - Device Management.
    • Output logs to the session log host

      Run firewall log binary-log host host-ip-address host-port source source-ip-address source-port [ vpn-instance vpn-instance-name ]

      A session log host is configured.

      By default, no session log host is configured.

Updated: 2019-03-06

Document ID: EDOC1100069333

Views: 44278

Downloads: 204

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next