< Home

nat port-block syslog host

Function

The nat port-block syslog host command configures the syslog server for the port range.

The undo nat port-block syslog host command clears the previous configuration.

Format

nat port-block syslog host host-address [ host-port ] source source-name source-address source-port

undo nat port-block syslog host host-address [ host-port ] source source-name source-address source-port

Parameters

Parameter Description Value
host-address Specifies the IP address of the syslog server. -
host-port Specifies the port of the syslog server. The value is an integer ranging from 1 to 65535. The default value is 514.
source-name Specifies the name of the device that sends syslogs to the syslog server. The value is a string of 1 to 31 characters.
source-address Specifies the address of the device that sends syslogs to the syslog server. -
source-port Specifies the port of the device that sends syslogs to the syslog server. The value is an integer ranging from 1 to 65535.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

A maximum of 16 syslog servers can be configured.

In the environment of dual-system hot backup, this command is not copied to the slave device. You need to configure this command on the active device and the standby device as well.

Example

# Configure the syslog server.

<sysname> system-view
[sysname] nat port-block syslog host 6.6.6.6 source test 1.1.1.1 5000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >