神州数码路由交换之动态实现配置mac地址与端口绑定
 
一、实验目的:
 
  了解什么是交换机的mac地址绑定功能
  掌握mac地址与端口绑定的动态方式
 
二、实验相关设备
    
   DCS 二层交换机1
 
三、配置步骤:
 
witch(Config)#int ethernet 0/0/1                   //进入端口
switch(Config-Ethernet0/0/1)#switchport port-security  
                                                     //打开端口绑定功能啊
switch(Config-Ethernet0/0/1)#switchport port-security lock 
                                           //锁定端口,端口学习MAC地址被关闭
switch(Config-Ethernet0/0/1)#switchport port-security convert
                                    /学习到的动态mac地址转化为静态安全mac地址
switch(Config-Ethernet0/0/1)#
 
配置验证:
 
switch#show port-security address
Security Mac Address Table
----------------------------------------------------------------------------
Vlan    Mac Address                     Type                    Ports
----------------------------------------------------------------------------
Total Addresses in System :0
Max Addresses limit in System :128
switch#
(神州数码)动态实现配置mac地址与端口绑定_第1张图片
 
 
其他相关配置:
 
 switch(Config)#int ethernet 0/0/1
 switch(Config-Ethernet0/0/1)#switchport port-security timeout 30
//设置端口定时器,锁定定时器超市时就执行mac地址锁定操作及动态mac地址转换为安全mac地址的操作  
 
switch(Config)#int ethernet 0/0/1
switch(Config-Ethernet0/0/1)#switchport port-security violation shutdown
//设置端口mac地址超过端口安全mac地址上限的时候端口会shutdown