mac-address-table static的作用
来源:互联网 发布:mac截图快捷键不能用 编辑:程序博客网 时间:2024/06/04 19:27
实验一下mac-address-table static的作用
----------------------------------------------------------------------------
Switch#show run
Building configuration...
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
interface Vlan2
ip address 192.168.2.254 255.255.255.0
.....
end
-----------------------------------------------------------------------------
pc1:192.168.2.1/0000.0C72.1AD6
pc2:192.168.2.2/0001.630A.E8D9
-----------------------------------------------------------------------------
pc1接入interface FastEthernet0/2
pc2接入interface FastEthernet0/1
均可ping通
-----------------------------------------------------------------------------
Switch#show mac-address-table
-------------------------------------------
Vlan
----
-----------------------------------------------------------------------------
增加配置
Switch(config)#mac-address-table static 0000.0c72.1ad6 vlan 2 interface FastEthernet0/1
Switch(config)#do show mac
-------------------------------------------
Vlan
----
---------------------------------------------------------------
此时
pc1:192.168.2.1/0000.0C72.1AD6接入interface FastEthernet0/2无法ping通192.168.2.254
pc2正常
--------------------------------------------------------------
进一步测试,增加配置
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
interface Vlan3
ip address 192.168.3.254 255.255.255.0
--------------------------------------------------------------
pc1:192.168.3.1/0000.0C72.1AD6接入interface FastEthernet0/3
可以ping通192.168.3.254
Switch(config-if)#do show mac
-------------------------------------------
Vlan
----
---------------------------------------------------------------
结论:mac-address-table static 0000.0c72.1ad6 vlan 2 interface FastEthernet0/1
静态绑定mac地址0000.0c72.1ad6
当mac地址为0000.0c72.1ad6 的终端接入vlan 2时,必须接入FastEthernet0/1口
·接入其他加入vlan 2的接口,无法通信
·其他mac接入FastEthernet0/1不受影响
·0000.0c72.1ad6 接入其他vlan不受影响
·mac-address-table static 绑定的端口不能启用switchport port-security
- mac-address-table static的作用
- mac address-table notification feature
- 通过snmp v2读取cisco 3560上的 mac-address-table 的问题
- Cisco之show ip arp 与 show mac-address-table
- Cisco之show ip arp 与 show mac-address-table
- OPTIMIZE TABLE的作用
- MAPPING TABLE 的作用
- OPTIMIZE TABLE的作用
- OPTIMIZE TABLE的作用
- 关键字static的作用
- static的作用
- static的作用
- static的作用
- static的作用
- static 的作用
- static的作用
- static的作用总结
- 关键字static的作用
- Windows 8 C++/CX字符串
- Timer异常后导致任务终止的解决方法
- Android 发布应用到市场
- Ckeditor 的使用
- WCF中Service Configuration Editor使用图解
- mac-address-table static的作用
- web网站的自动化部署
- poj1317解题报告
- Flex中DataGrid获取被选中的行
- Comet:基于 HTTP 长连接的“服务器推”技术
- Android使用videoview播放res/raw下的视频并在结束后隐藏
- Activity 生命周期和栈(Task)的关系及Intent 常用的Flags
- 在Windows下编译FFmpeg详细说明
- Flex中文转拼音