思科45**初始化基础配置(不含网络路由配置)
作者:互联网
设备命名
switch#conf t
switch(config)#hostname TEST
配置管理地址(以int VLAN10作为管理口,上联端口方向VLAN10)
switch(config)#vlan 10
switch(config)#int vlan 10
switch(config-if)#description For-Management
switch(config-if)#ip address 1.1.1.1 255.255.255.255
NTP和时区设置
switch(config)#clock timezone beijing 8
switch(config)#clock calendar-valid
NTP服务配置:
switch(config)#ntp source Vlan10
switch(config)#ntp server 5.5.5.5 source 出接口
配置SysLog-ng日志,及SysLog服务器
logging trap notifications
logging facility local5
logging source-interface Vlan10
logging 3.3.3.3
配置上联互联地址
interface G0/1
description uT:*****
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10
switchport mode trunk
配置Telnet Snmp ACL
ip access-list standard aclPermitTelnet
permit 1.1.1.0 0.0.0.255
ip access-list standard aclPermitSNMP
permit 1.1.1.0 0.0.0.255
SNMP代理设置
snmp-server community 名称 RO aclPermitSNMP
snmp-server trap-source vlan10
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps tty
snmp-server enable traps bgp
snmp-server enable traps config
snmp-server enable traps hsrp
snmp-server enable traps ipmulticast
snmp-server enable traps msdp
snmp-server enable traps pim neighbor-change rp-mapping-change invalid-pim-message
snmp-server enable traps rtr
snmp-server enable traps bridge newroot topologychange
snmp-server enable traps stpx inconsistency root-inconsistency loop-inconsistency
snmp-server enable traps syslog
snmp-server enable traps flash insertion removal
snmp-server enable traps fru-ctrl
snmp-server enable traps entity
snmp-server enable traps vtp
snmp-server enable traps vlancreate
snmp-server enable traps vlandelete
snmp-server enable traps envmon fan shutdown supply temperature status
snmp-server enable traps port-security
拓展(指定特定一个主机获取信息):
snmp-server host 6.6.6.6 version 2c 名称
配置Telnet远程
switch(config)#no ip http server
switch(config)#no ip http secure-server 关闭WEB管理
line vty 0 4
access-class aclPermitTelnet in
password ****
transport input telnet
transport output all
login
switch(config)#enable password **** 设置enable密码
switch(config)#username 登录名 secret 7 密码
标签:enable,traps,配置,45,server,source,switch,config,路由 来源: https://blog.51cto.com/u_12202003/2767478