Syslog配置——NE路由器,日志定向转发。

Syslog配置:

  1.   开启信息管理功能。
    
  2.   命名信息通道名。
    
  3.   配置信息输出的通道和信息的模块、级别。
    
  4.   配置向syslog服务器发送信息的源接口信息。
    
  5.   配置信息输出到指定的syslog服务器。
    
  6.   配置syslog服务器。
    

查看命令:
display info-center

  1. 确保路由可达

2.开启信息管理功能

system-view
[~Device] info-center enable

  1. 命名通道名

为日志信息输出到syslog服务器的通道命名。

[*Device] info-center channel 6 name loghost1

  1.   配置信息输出的通道和信息模块、级别
    

配置HWTACACS模块和IM模块的级别为notification或者高于notification的日志信息由loghost通道输出到syslog服务器。

[*Device] info-center source hwtacacs channel loghost log level notification
[*Device] info-center source im channel loghost log level notification

配置PP4模块和AAA模块的级别为warning或者高于warning的日志信息由loghost1通道输出到syslog服务器。

[*Device] info-center source pp4 channel loghost1 log level warning
[*Device] info-center source aaa channel loghost1 log level warning

  1. 配置向syslog服务器发送信息的源接口信息
    [*Device] info-center loghost source gigabitethernet1/0/0

  2. 配置信息输出到指定的syslog服务器

指定服务器作为syslog服务器

[*Device] info-center loghost 192.168.1.1 channel loghost facility local2
[*Device] commit

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值