< Home

info-center loghost source

Function

The info-center loghost source command configures the source interface for a device to send logs to a log host.

The undo info-center loghost source command restores the default source interface for a device to send logs to a log host.

Format

info-center loghost source { interface-type interface-number | ip-address }

undo info-center loghost source

Parameters

Parameter Description Value
interface-type Specifies the interface type. -
interface-number Specifies the interface number. -
ip-address Specifies a source IP address for sending logs to a log host. The value is in dotted decimal notation.

Views

System view

Default Level

3: Management level

Usage Guidelines

If different source interface information is configured on different devices, a log host can identify the device that sends logs based on the source interface address and differentiate the received log messages.

The source interface specified in the info-center loghost source command for a device to send logs to a log host is not necessarily the actual interface that sends the logs, but the IP address of the specified source interface is carried in logs.

An IP address has been configured on the source interface.

By default, the source interface for a device to send logs to a log host is the actual interface that sends the logs.

Example

# Configure the IP address of the interface Loopback0 as the source address of sending the packet.

<sysname> system-view
[sysname] interface loopback 0
[sysname-LoopBack0] ip address 10.1.1.1 255.255.255.0
[sysname-LoopBack0] quit
[sysname] info-center loghost source loopback 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >