侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

使用syslog记录Cisco设备日志

2022-07-11 星期一 / 0 评论 / 0 点赞 / 67 阅读 / 753 字

使用syslog记录Cisco设备日志以下配置描述了如何将Cisco设备的日志发往syslog服务器device#conf tdevice(config)#logging ondevice(confi

.

使用syslog记录Cisco设备日志


以下配置描述了如何将Cisco设备的日志发往syslog服务器

device#conf t

device(config)#logging on

device(config)#logging a.b.c.d //日志服务器的IP地址

device(config)# logging facility local1

//facility标识, RFC3164 规定的本地设备标识为 local0 - local7

device(config)#logging trap errors //日志记录级别,可用"?"查看详细内容

device(config)#logging source-interface e0 //日志发出用的源IP地址

device(config)#service timestamps log datetime localtime

//日志记录的时间戳设置,可根据需要具体配置

检验

device#sh logging


.

广告 广告

评论区