
49
NOTE:
•
The
info-center loghost
command takes effect only after the information center is enabled with the
info-center enable
command.
•
Make sure that you input a correct IP address while using the
info-center loghost
command to configure
the IP address for a log host. The system will prompt an invalid address if you input the loopback address
127.0.0.1.
•
A maximum number of four different hosts can be designated as the log host.
Examples
# Output log information to a log host with the IP address being 1.1.1.1.
<Sysname> system-view
[Sysname] info-center loghost 1.1.1.1
# Output log information to a log host with the IP address being 1.1.1.2, and the VPN instance name is
vpn1.
<Sysname> system-view
[Sysname] info-center loghost vpn-instance vpn1 1.1.1.2
# Output log information to a log host with the IPv6 address being 1::1.
<Sysname> system-view
[Sysname] info-center loghost ipv6 1::1
info-center loghost source
Syntax
info-center loghost source
interface-type interface-number
undo info-center loghost source
View
System view
Default level
2: System level
Parameters
interface-type interface-number
: Specifies the egress interface for log information by the interface type
and interface number.
Description
Use the
info-center loghost source
command to specify the source IP address for log information.
Use the
undo info-center loghost source
command to restore the default.
By default, the interface for sending log information is determined by the matched route, and the primary
IP address of this interface is the source IP address of the log information.