一、             实验目的<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

     了解什么情况下需要MAC地址与IP地址的绑定;

     了解如何接入交换机上的配置MAC地址与IP地址。
 

二、            实验设备

 

 
    DCS二层交换机1
 
 
三、       实验步骤

 
        switch(Config)#
switch(Config)#am enable
 //启用访问控制功能,在am enable时,AM模块会拒绝所有的IP报文通过,可以使用no am enable进行关闭该功能

switch(Config)#interface  ethernet 0/0/1
switch(Config-Ethernet0/0/1)#am mac-ip-pool aa-bb-cc-dd-11-22 192.168.1.1
//设置允许接口0/0/1上的源IP192.168.1.1,源MACmac-ip-pool aa-bb-cc-dd-11-22的用户通过

switch(Config-Ethernet0/0/1)#
 
使用命令 show am 进行对AM的查看

 
注:通过在接口使用命令:no am port 可以对该接口进行解锁
例如:
switch#config
switch(Config)#interface ethernet 0/0/2
switch(Config-Ethernet0/0/2)#no am port
switch(Config-Ethernet0/0/2)#