Command Reference Syslog Commands
The following example specifies loopback 0 as the source address of the syslog messages:
Ruijie(config)# logging source interface loopback 0
Sends logs to the Syslog server.
8.27 logging source ip | ipv6
Use this command to configure the source IP address of logs in global configuration mode. Use the no
form of this command to restore the default setting.
logging source {ip ip-address | ipv6 ipv6-address}
no logging source { ip | ipv6 }
Specifies the source IPV4 address sending the logs to IPV4
log server.
Specifies the source IPV6 address sending the logs to IPV6
log server.
No source address is configured by default.
Global configuration mode
By default, the source address of the log messages sent to the syslog server is the address of the
sending interface. For easy tracing and management, this command can be used to fix the source
address of all log messages as an address, so that the administrator can identify which device is
sending the message through the unique addresses. If this IP address is not configured on the
device, the source address of the log messages is the address of the sending interface.
The following example specifies 192.168.1.1 as the source address of the syslog messages:
Ruijie(config)# logging source ip 192.168.1.1
Sends the logs to the Syslog server.