我们用的不是新的交换机 所以要先删除里面配置文件
  del config.text   (删除配置文件)
  reload (重启交换机)
  config   (进入接口模式)
 hostname ruijie(ruijie是改的交换机的名字 )
 int f0/1
sw acc vlan 101
int f0/2
sw acc vlan 102
 ...
 ....                       ( 划分vlan)
vlan 101
 name 8101
vlan 102
name 8102
....
....                 (给vlan命名)
exit
snmp host 192.168 .X.X traps  XXX
snmp enable traps
snmp community XXX ro
snmp community ruijie rw
                                             (添加snmp)
int range f0/1-36
spanning-tree bpduguard enable
spanning-tree portfast
                                            (开启简单的生成树)
sntp server 202.112.X.X
sntp server enable
                                          (添加sntp)
ip default-getway 172.17.X.X
username admin password XXXXX
enable secret XXXXX
                                       (配置交换机的密码)
int gi0/49
port-group 1
int gi0/50
port-group 1
int agg 1
sw mode trunk    ( 开启trunk 口)
int agg 1
ip dhcp snooping trust (开启dhcp)
exit
ip arp inspection vlan range 101-136
int agg1
ip arp inspection trust
ip arp inspection
                                      ( 配置arp)
exit
line vty 0 4
login  local  passwprd XXXX
exit (配置telnet 远程登录)
aaa new-model
aaa group server radius default
 server 192.168.5.2
aaa accounting update periodic 10
aaa accounting update
aaa accounting network default start-stop group radius
aaa authentication dot1x default group radius
radius-server host 192.168.5.2
radius-server key ruijie
dot1x accounting default
dot1x authentication default
dot1x probe-timer alive 100
dot1x client-probe enable  (配置aaa认证)
exit
wr(保存配置)