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