Chinaunix首页 | 论坛 | 博客
  • 博客访问: 18090697
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: 系统运维

2008-05-20 11:10:25

以下配置描述了如何将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
  
阅读(356) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~