码迷,mamicode.com
首页 > 其他好文 > 详细

通哥运维笔记之批量刷思科交换机配置模板

时间:2016-05-08 20:10:18      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:思科   交换机   批量配置   

hostname PUBLIC-WAN    

logging buffered 65536

service timestamps debug datetime localtime

service timestamps log datetime localtime

service password-encryption

no ip domain-lookup

vtp mode transparent

enable secret public

errdisable recovery cause pagp-flap

errdisable recovery cause link-flap

errdisable recovery cause loopback

errdisable recovery cause bpduguard

errdisable recovery interval 30

port-channel load-balance src-dst-ip



vlan 8


interface Vlan1

 shutdown


interface vlan 8

 ip address 8.8.8.8 255.255.255.0


interface range gigabitethernet 0/1 - 20 

 switchport mode access

 switchport access vlan 8

 spanning-tree portfast

 spanning-tree bpduguard enable



interface GigabitEthernet0/23

 des To_CT

 switchport mode trunk

 channel-group 1 mode active

!

interface GigabitEthernet0/24

 des To_CT

 switchport mode trunk

 channel-group 1 mode active


interface Port-channel1 

  des To_CT                     

 switchport mode trunk


ip default-gateway 8.8.8.8         


no ip http server

no ip http secure-server




access-list 2 permit 8.8.8.8





snmp-server community public RO    

ntp server 8.8.8.8           

clock timezone GTM 8 0             

line con 0

line vty 0 15

access-class 2 in

 password public                  

 login


exit

exit

write


本文出自 “通哥的运维笔记” 博客,谢绝转载!

通哥运维笔记之批量刷思科交换机配置模板

标签:思科   交换机   批量配置   

原文地址:http://tonyxue.blog.51cto.com/4663710/1771167

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