1、1方剑锋浙大快威 工程师138194595992内容安排内容安排1. Cisco交换设备介绍2. 常见应用场景和配置3. 常见故障诊断3基本配置(一) 更改主机名Switch(config)#hostname S2-C-HZXH-7609-1 设置时钟和 NTP时钟同步Switch(config)#clock timezone Beijing 8Switch(config)# ntp server 61.174.64.11 时间戳设置Switch(config)#service timestamps debug datetime msec localtimeSwitch(config)#ser
2、vice timestamps log datetime msec localtime4基本配置(二) AAA认证配置ip tacacs source-interface Loopback0tacacs-server host 202.96.96.86tacacs-server key hzdxaaa new-modelaaa authentication login default group tacacs+ line enableaaa authentication enable default group tacacs+ enableaaa accounting commands 15
3、default start-stop group tacacs+ telnet参数设置line vty 0 4access-class 9 inexec-timeout 3 0password wyzx20085基本配置(三) Log日志设置logging trap notifications logging source-interface Loopback0logging 202.96.96.34 SNMP设置Switch(config)#snmp-server community sjzx2004 RO 96VLAN配置 创建和删除 VLANSwitch(config)#vlan 120
4、0Switch(config-vlan)#name testSwitch(config)#no vlan 1200 创建 SVIinterface Vlan1200description testip address 60.190.36.177 255.255.255.252no ip redirectsno ip unreachablesno ip proxy-arp 定义 VTP模式和使用扩展 VLANSwitch(config)# vtp mode transparent Switch(config)# spanning-tree extend system-id7接口配置(一) Acc
5、ess接口interface FastEthernet6/3description L1212628switchport (45和 35系列交换机上不需要此命令 )switchport access vlan 3103switchport mode accessspeed 10duplex full trunk接口interface GigabitEthernet1/1description to 7609-3/2switchport (45和 35系列交换机上不需要此命令 )switchport trunk encapsulation dot1qswitchport trunk allowe
6、d vlan 700,810,821,842,849,859,868,974switchport trunk allowed vlan add 11201-1244,3101-3148switchport mode trunk8接口配置(二) 路由接口配置interface GigabitEthernet1/1description to 7609-3/2no switchport (65/76上不需要此命令 )ip address 60.190.36.177 255.255.255.252no ip redirectsno ip unreachablesno ip proxy-arp QIN
7、Q接口配置interface GigabitEthernet7/22description GuDang-OLT-C200-1-port 2mtu 1538switchport (35系列交换机上不需要此命令 )switchport access vlan 702switchport mode dot1q-tunnelno cdp enablespanning-tree bpdufilter enable9接口配置(三) 接口限速配置( 45系列交换机)policy-map 4Mclass class-defaultpolice 4 mbps 400 kbyte conform-action
8、transmit exceed-action drop interface FastEthernet6/11service-policy input 4Mservice-policy output 4M 接口限速配置( 35系列交换机)class-map match-all IPclassmatch ip dscp 0policy-map rate-4Mclass IPclasspolice 4200000 300000 exceed-action dropinterface FastEthernet6/11service-policy input rate-4M10EtherChannel Technology Load sharing and redundancy provided Incremental way to scale link bandwidth Switches, routers, and serversEtherChannel 100/1000 Ethernet 4100/1000 Ethernet 3100/1000 Ethernet 2100/1000 Ethernet 1A BEtherChannel 100/1000 Ethernet 5100/1000 Ethernet 6100/1000 Ethernet 7100/1000 Ethernet 8