非法入侵 发表于 2018-7-12 06:32:08

快速配置CISCO语音VLAN

  1.在三层上新建VLAN
  

  


[*]en
[*]vlan database      #进vlan配置
[*]vlan 125 name awaya125#创建vlan
[*]exit
[*]conf t
[*]int vlan125                           #进单个vlan配置
[*]ip add 192.168.125.1 255.255.255.0   #配置VLAN网关
[*]no shut
[*]show ip int b          #查看端口状态    ?
[*]wr
  

  

  
2.在二层交换机配置voicevlan
  


[*]en
[*]conf t
[*]lldp run                                        #起lldp服务
[*]int ra f0/1-48                               #进对应端口
[*]sw mode acc voice vlan 125    #划入语音VLAN
[*]no shut
[*]wr
  

  
-----------------------------------------
  
3.在二层交换机上配置端口绑定
  


[*]#conf t
[*]<config>#int range f0/1-24
[*]<config>#switchport port-security mac-address sticky
[*]<config>#switchport port-security max 2
[*]<config>#switchport port-security violation protect
[*]<config>#switchport port-security
[*]<config>#end#wr如果需要清空端口学习到的MAC信息,需要进入这个端口,no掉port-security的信息,然后再重新开启:
[*]<config>#int range f0/1-24
[*]<config>#no switchport port-security mac-address sticky
[*]<config>#no switchport port-security max 2
[*]<config>#no switchport port-security violation protect
[*]<config>#no switchport port-security
[*]<config>#switchport port-security mac-address sticky
[*]<config>#switchport port-security max 2
[*]<config>#switchport port-security violation protect
[*]<config>#switchport port-security
[*]<config>#shutdown
[*]<config>#no shutdown
[*]<config>#end#wr
页: [1]
查看完整版本: 快速配置CISCO语音VLAN