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.
info-center loghost source { interface-type interface-number | ip-address }
undo info-center loghost source
| 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. |
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.