shanghaiyunji 发表于 2016-4-22 22:01
架构是两台7K当核心,下面挂5台5K(纯二层),在下面是N台2K,现在估计也不会在5K上买三层功能了,意义不大 ...
您好!
如果仅仅是希望N5K做纯2层转发,同时配置log server的话,请参考以下步骤:
To configure a syslog server on a UNIX or Linux system, follow these steps:
Step 1 Log debug messages with the local7 facility in the file /var/log/myfile.log by adding the following line to the /etc/syslog.conf file:
debug.local7 /var/log/myfile.log
Step 2 Create the log file by entering these commands at the shell prompt:
$ touch /var/log/myfile.log
$ chmod 666 /var/log/myfile.log
Step 3 Make sure the system message logging daemon reads the new changes by checking myfile.log after entering this command:
$ kill -HUP ~cat /etc/syslog.pid~
To configure syslog servers, perform this task:
Command
Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# logging server host [ severity-level [ facility ]]
Configures a syslog server at the specified host name or IPv4 or IPv6 address. You can limit logging of messages with a minimum severity level and for a specific facility. Severity levels, which range from 0 to 7, are listed in Table 1-1 . The default outgoing facility is local7.
switch(config)# no logging server host
Removes the logging server for the specified host.
Step 3
Repeat Step 2 for up to three syslog servers.
Step 4
switch(config)# show logging server
(Optional) Displays the syslog server configuration.
Step 5
switch(config)# copy running-config startup-config
(Optional) Copies the running configuration to the startup configuration.
The following example shows how to configure a syslog server:
switch# configure terminal
switch(config)# logging server 172.28.254.254 5 local3
switch(config)# show logging server
switch(config)# copy running-config startup-config
文档链接:
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/configuration/guide/cli/CLIConfigurationGuide/sm_syslog.html谢谢!
希望可以帮到你!