码迷,mamicode.com
首页 > 系统相关 > 详细

Basic Cisco Configs

时间:2019-05-14 11:27:41      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:devices   outer   main   oca   ror   md5   trap   mod   logging   

AAA配置

conf t
!
aaa new-model
!
aaa group server tacacs+ LOGINTAC
server 172.16.30.220
Server 172.16.40.1
!
tacacs-server host 172.16.30.220 key n3w3gg
tacacs-server host 172.16.40.1 key n3w3gg
!
ip tacacs source-interface gi 0/1
!
aaa authentication login default group LOGINTAC local
aaa authentication enable default enable group LOGINTAC
aaa authorization config-commands
aaa authorization exec default group LOGINTAC if-authenticated
aaa authorization commands 1 default if-authenticated
aaa authorization commands 15 default if-authenticated
aaa accounting commands 1 default start-stop group LOGINTAC
aaa accounting commands 15 default start-stop group LOGINTAC
!
!
end
wr

 

Clock  配置

CLIENT:


clock timezone PST -8
clock summer-time PDT recurring 2 Sun Mar 2:00 1 Sun Nov 2:00
ntp authentication-key 1 md5 n3w3gg
ntp server 10.1.37.21 key 1


NTP SERVER:

!
ntp clock-period 17177077
ntp source GigabitEthernet4.1
ntp master 4
ntp update-calendar
ntp server 10.1.37.10
ntp server 10.1.37.52

 

默认配置

en
config t
!
hostname **********
!
service timestamps log datetime localtime show-timezone
service timestamps debug datetime localtime show-timezone
service password-encryption
no ip domain-lookup
!
enable secret **********
!
user admin privilege 15 secret **********
!
line con 0
exec-timeout 200 0
logging synchronous
!
line vty 0 4
exec-timeout 200 0
logging synchronous
!
end
wr

 

默认交换机配置

VTP MODE CLIENT
VTP DOMAIN WH7
VTP password

Spanning-tree portfast bpduguard default
!
Errdisable recovery cause bpduguard
Errdisable recovery interval 240

 

Snmp-syslog-netflow

Use for syslog filter (logging facility local0 - Switches)
(logging facility local1 - Routers)


logging trap errors
logging facility local1
logging 10.1.37.22
snmp-server community $reed RO
snmp-server host 10.1.37.22 $reed

ip flow-export source GigabitEthernet0/1
ip flow-export version 5
ip flow-export destination 10.1.37.21 9996

( ip flow-export destination 71.94.141.193 9996 = only on external devices )
( logging 71.94.141.194 = For external devices)

interface Serial1/0
ip route-cache flow

Basic Cisco Configs

标签:devices   outer   main   oca   ror   md5   trap   mod   logging   

原文地址:https://www.cnblogs.com/shixiaomin/p/10861022.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!