info-center loghost source

Function

The info-center loghost source command configures the source interface of the device through which information is output to a syslog server.

The undo info-center loghost source command cancels the settings about deletes the source interface of the device through which information is output to a syslog server.

The source interface of the information sent by a device is the interface on which the information is sent by default.

Debugging information display is disabled on the command line terminal by default.

Format

info-center loghost source { interface-name | interface-type interface-number }

undo info-center loghost source

Parameters

Parameter Description Value
interface-name

Specifies the name of an interface.

-

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
log write

Usage Guidelines

Usage Scenario

You can set a specific source interface on each device, so that a syslog server can check the source interface address of an information packet sent by a device to determine the source device of the packet. This helps the syslog server properly retrieve the received information.

Prerequisites

An IP address has been assigned to the source interface to be set.

Precautions

After the info-center loghost source command is run, the VPN where the source interface resides is automatically bound to the interface.

Example

# Configure the IP address of the interface loopback0 as the source interface address in information packets.
<HUAWEI> system-view
[~HUAWEI] interface loopback 0
[*HUAWEI-loopback0] ip address 1.1.1.1 255.255.255.0
[*HUAWEI-loopback0] quit
[*HUAWEI] info-center loghost source loopback 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >