Managing the MAC Address Table
2015-08-23 11:01
344 查看
MAC地址表包括两种类型的地址
1. 交换机动态学习的地址;
2. 通过手动绑定的静态地址。
无论是动态地址还是手动固定地址,MAC地址表包括目的MAC、VLAN ID、端口号、地址类型。
Eg:
Switch#show mac-address-table
Destination Address Address Type VLAN Destination Port
------------------- ------------ ---- --------------------
cc00.4058.0000 Self 1 Vlan1
Switch#show mac-address-table interfacef0/1
手工静态指定MAC地址
Switch(config)#mac-address-table static0013.1a2f.0680 vlan 1 interface f0/2
指定丢弃某个MAC地址
Switch(config)#mac-address-table static 0013.1a2f.0680 vlan 2 drop
在接口或VLAN上禁止学习MAC地址
1. 在接口或SVI接口上禁用MAC地址学习,交换机将转发所有的IP包在2层域中;
2. 可以选择在单个VLAN上禁用MAC地址学习,VLAN 范围1-4094;
3. 建议在仅仅在VLAN的两个接口上禁用MAC地址学习,若在多个接口上禁用交换机或转发广播。
4. 不能在连接路由器的接口上禁用MAC地址学习。
5. 在配置了安全级别的接口上不能配置禁用MAC地址学习。
Configure
Eg:Router(config)# no mac address-tablelearning vlan 200
Router(config)# no mac-address-table learning interface GigabitEthernet 0/5
Displaying MAC Address Table
show mac address-table addressshow mac address-table aging-timeshow mac address-table countshow mac address-table dynamicshow mac address-table interfaceshow mac address-table learningshow mac address-table staticshow mac address-table vlanhttp://www.cisco.com/c/en/us/td/docs/wireless/mwr_2941_dc/software_config/guide/3_3/2941_33_Config_Guide/mac_lrn.pdf
--------------------------------------------------------------------------------------------------------------------------------------
本文出自 “光与影” 博客,请务必保留此出处http://luost.blog.51cto.com/922727/1687298
1. 交换机动态学习的地址;
2. 通过手动绑定的静态地址。
无论是动态地址还是手动固定地址,MAC地址表包括目的MAC、VLAN ID、端口号、地址类型。
Eg:
Switch#show mac-address-table
Destination Address Address Type VLAN Destination Port
------------------- ------------ ---- --------------------
cc00.4058.0000 Self 1 Vlan1
Switch#show mac-address-table interfacef0/1
手工静态指定MAC地址
Switch(config)#mac-address-table static0013.1a2f.0680 vlan 1 interface f0/2
指定丢弃某个MAC地址
Switch(config)#mac-address-table static 0013.1a2f.0680 vlan 2 drop
在接口或VLAN上禁止学习MAC地址
1. 在接口或SVI接口上禁用MAC地址学习,交换机将转发所有的IP包在2层域中;
2. 可以选择在单个VLAN上禁用MAC地址学习,VLAN 范围1-4094;
3. 建议在仅仅在VLAN的两个接口上禁用MAC地址学习,若在多个接口上禁用交换机或转发广播。
4. 不能在连接路由器的接口上禁用MAC地址学习。
5. 在配置了安全级别的接口上不能配置禁用MAC地址学习。
Configure
Eg:Router(config)# no mac address-tablelearning vlan 200
Router(config)# no mac-address-table learning interface GigabitEthernet 0/5
Displaying MAC Address Table
show mac address-table addressshow mac address-table aging-timeshow mac address-table countshow mac address-table dynamicshow mac address-table interfaceshow mac address-table learningshow mac address-table staticshow mac address-table vlanhttp://www.cisco.com/c/en/us/td/docs/wireless/mwr_2941_dc/software_config/guide/3_3/2941_33_Config_Guide/mac_lrn.pdf
--------------------------------------------------------------------------------------------------------------------------------------
本文出自 “光与影” 博客,请务必保留此出处http://luost.blog.51cto.com/922727/1687298
相关文章推荐
- 浅析Mysql InnoDB存储引擎事务原理
- MAC地址通告
- Leetcode: Binary Search Tree Iterator
- 幽默趣味:程序员如同妓女
- ASP.Net发布到IIS中出现错误: 处理程序"PageHandlerFactory-Integrated"在其模块列表中有一个错误模块"ManagedPipelineHandler"
- JDK动态代理
- LLDP(链路层发现协议)
- Android笔记三
- 分布式发布订阅消息系统 Kafka 架构设计
- 记录一些有用的网站
- Openstack kilo指南安装与实践(4)
- hibernate3第二章之JUNIT简单单元测试、CRUD、三种状态、主键生成策略
- 使用工具安装,运行,停止,卸载Window服务
- IP 广播转发
- Struts2学习(四)利用ajax异步上传
- 如何判断一个结构体的大小
- Apache Kafka开发入门指南(2)
- 黑马程序员-------Java笔记--------完数与质数
- Andrew Ng机器学习课程6
- [LeetCode] Palindrome Permutation II