F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices System Management and Maintenance Command Reference-6PW100

98
[Sysname] info-center loghost vpn-instance vpn1 1.1.1.2
# Output log information to the log host 1::1.
<Sysname> system-view
[Sysname] info-center loghost ipv6 1::1
info-center loghost source
Use info-center loghost source to specify the source IP address for output log information.
Use undo info-center loghost source to restore the default.
Syntax
info-center loghost source interface-type interface-number
undo info-center loghost source
Default
The source IP address of output log information is the primary IP address of the matching route's egress
interface.
Views
System view
Default command level
2: System level
Parameters
interface-type interface-number: Specifies the egress interface for log information by the interface type
and interface number.
Usage guidelines
The system uses the primary IP address of the specified egress interface as the source IP address of log
information no matter which physical interface is used to output the log information. If you want to
display the source IP address in the log information, you can configure it by using this command.
The info-center loghost source command takes effect only when the information center has been enabled
with the info-center enable command.
The IP address of the specified egress interface must have been configured. Otherwise, although the
info-center loghost source command can be configured successfully, the log host cannot receive any log
information.
Examples
When no source IP address is specified for log information, log in to the FTP server by using the username
ftp. The following log information is displayed on the log host:
<189>May 31 05:37:52 2003 Sysname %%10FTPD/5/FTPD_LOGIN(l): User ftp (192.168.1.23) has
logged in successfully.
# Specify the IP address of interface loopback 0 as the source IP address of log information.
<Sysname> system-view
[Sysname] interface loopback 0
[Sysname-LoopBack0] ip address 2.2.2.2 32
[Sysname-LoopBack0] quit
[Sysname] info-center loghost source loopback 0