版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 绑定客户端IP+MAC+端口 Huaweiuser-bind static ip-address 192.168.2.2 mac-address 5489-9852-137A interface GigabitEthernet 0/0/2Huaweiuser-bind static mac-address 6489-98CF-1525 interface g0/0/1系统视图下am user-bind mac-addr mac地址 ip-addr ip地址 interface 接口类型 接口序号以太网端口视图下interface 接口类型 接口
2、序号am user-bind mac-addr mac地址 ip-addr ip地址 华为s5700 ip地址+mac地址+端口绑定问:将单位的交换机绑定ip地址,mac地址和端口,实现某台ip为172.16.3.113,mac地址为000B-2F37-FE4F只能通过GigabitEthernet0/0/2这个端口来上网或查看局域网内的共享文件。答:一般用am user-bind做。am user-bind ip-address 172.16.3.113 mac-address 000B-2F37-FE4F interface GigabitEthernet0/0/2首先要有思想准
3、备,工作量巨大。答:用完后可以到所在VLAN或者端口执行:ip source check user-bind enable一、1、系统视图下am user-bind mac-addr mac地址 ip-addr ip地址 interface 接口类型 接口序号2、以太网端口视图下interface 接口类型 接口序号am user-bind mac-addr mac地址 ip-addr ip地址 二、端口绑定2.1 端口绑定命令2.1.1 am user-bind interface【命令】am user-bind mac-
4、addr mac-address ip-addr ip-address interfaceinterface-type interface-numberundo am user-bind mac-addr mac-address ip-addr ip-address interfaceinterface-type interface-number【视图】系统视图【参数】mac-address:绑定的MAC 地址值。ip-address:绑定的IP 地址值。interface-type:端口类型。interface-number:端口编号。【描述】am user-bind i
5、nterface 命令用来将合法用户的MAC 地址和IP 地址绑定到指定的端口上。undo am user-bind interface 命令用来取消MAC 地址和IP 地址与指定端口的绑定。进行绑定操作后,只有合法用户的报文才能通过端口。说明:对同一个MAC 地址,系统只允许进行一次绑定操作。【举例】# 将MAC 地址为00e0-fc00-5101,IP 地址为10.153.1.1 的合法用户与端口Ethernet1/0/1 进行绑定。<Quidway> sys
6、tem-viewSystem View: return to User View with Ctrl+Z.Quidway S3900 系列以太网交换机命令手册-Release 1510端口安全、端口绑定2-2Quidway am user-bind mac-addr 00e0-fc00-5101 ip-addr 10.153.1.1 interface Ethernet1/0/12.1.2 am user-bind【命令】am user-bind mac-addr mac-address ip-addr ip-addressundo am user-bind mac-add
7、r mac-address ip-addr ip-address【视图】以太网端口视图【参数】mac-address:绑定的MAC 地址值。ip-address:绑定的IP 地址值。【描述】am user-bind 命令用来将合法用户的MAC 地址和IP 地址绑定到当前的端口上。undo am user-bind 命令用来取消MAC 地址和IP 地址与当前端口的绑定。进行绑定操作后,只有合法用户的报文才能通过端口。 说明:对同一个MAC 地址,系统只允许进行一次绑定操作。
8、【举例】# 将MAC 地址为00e0-fc00-5102,IP 地址为10.153.1.2 的合法用户与端口Ethernet1/0/2 进行绑定。<Quidway> system-viewSystem View: return to User View with Ctrl+Z.Quidway interface Ethernet1/0/2Quidway-Ethernet1/0/2 am user-bind mac-addr 00e0-fc00-5102 ip-addr10.153.1.22.1.3 display
9、 am user-bind【命令】display am user-bind interface interface-type interface-number | mac-addr |ip-addr Quidway S3900 系列以太网交换机命令手册-Release 1510端口安全&端口绑定第2 章端口绑定2-3【视图】任意视图【参数】interface:显示指定端口的绑定信息。interface-type:端口类型。interface-number:端口编号。mac-addr:显示MAC 地址的绑定信息。ip-addr
10、:显示IP 地址的绑定信息。【描述】display am user-bind 命令用来显示端口绑定的配置信息。【举例】# 显示当前系统端口绑定的配置信息。<Quidway> display am user-bindFollowing User address bind have been configured:Mac IP Port00e0-fc00-5101 10.153.1.1 Ethernet1/0/100e0-fc00-5102 10.153.1.2 Ethernet1/0/2Unit 1:Total 2 found, 2 listed.Tot
11、al: 2 found.以上显示信息表示,设备Unit 1 当前总共有两条端口绑定的配置: MAC 地址00e0-fc00-5101、IP 地址10.153.1.1 已经与端口Ethernet1/0/1 进行了绑定; MAC 地址00e0-fc00-5102、IP 地址10.153.1.2 已经与端口Ethernet1/0/2 进行了绑定。假设IP地址10.1.1.2,MAC地址0000-0000-0001IP+MAC+端口绑定流程三层交
12、换机中目前只有S3526系列支持使用AM命令来进行IP地址和端口的绑定。并且如果S3526系列交换机要采用AM命令来实现绑定功能,则交换机必须是做三层转发(即用户的网关应该在该交换机上)。采用DHCP-SECURITY来实现1.配置端口的静态MAC地址SwitchAmac-address static 0000-0000-0001 interface e0/1 vlan 12.配置IP和MAC对应表SwitchAdhcp-security 10.1.1.2 0000-0000-0001 static3.配置dhcp-server组号(否则不允许执行下一步,此dhcp-server组不用在交换机
13、上创建也可)SwitchA-Vlan-interface1dhcp-server 14. 使能三层地址检测SwitchA-Vlan-interface1address-check enable采用AM命令来实现1.使能AM功能SwitchAam enable2.进入端口视图SwitchAvlan 103. 将E0/1加入到vlan10SwitchA-vlan10port Ethernet 0/14.创建(进入)vlan10的虚接口SwitchAinterface Vlan-interface 105.给vlan10的虚接口配置IP地址SwitchA-Vlan-interfa
14、ce10ip add 10.1.1.1 255.255.255.06.进入E0/1端口SwitchAinterface Ethernet 0/17. 该端口只允许起始IP地址为10.1.1.2的10个IP地址上网SwitchA-Ethernet0/1am ip-pool 10.1.1.2 10华为交换机怎么绑定IP和MAC【命令】 am user-bind am user-bind interface interface-name | interface-type interface-num mac-addr mac | ip-addr ip * | mac-addr ma
15、c interface interface-name | interface-type interface-num | ip-addr ip * | ip-addr ip interface interface-name | interface-type interface-num | mac-addr mac * undo am user-bind interface interface-name | interface-type interface-num mac-addr mac | ip-addr ip * | mac-addr mac interface interfac
16、e-name | interface-type interface-num | ip-addr ip * | ip-addr ip interface interface-name | interface-type interface-num | mac-addr mac * 【视图】 系统视图 【参数】 interface interface-name | interface-type interface-num :以太网端口。 mac-addr mac:MAC地址。 ip-addr ip:IP地址。 【描述】
17、;am user-bind用来将端口、IP和MAC地址绑定在一起。 系统支持Port+IP、Port+MAC、Port+IP+MAC、IP+MAC绑定方式: ? Port+IP绑定:将报文的接收端口和源IP地址绑定。指定端口将只允许指定IP地址的报文通过,不允许其它IP地址的报文通过,同时指定IP地址的报文只能从指定端口上通过,不能从其它端口上通过。 ? PORT+MAC绑定:将报文的接收端口和源MAC绑定。指定端口将只允许指定MAC地址的报文通过,不允许其它MAC地址的报文通过,同时指定MAC地址的报文只能从指定端口上通过,不能从其它端口上通过。 ?
18、PORT+IPMAC绑定:将报文的接收端口、源IP和源MAC绑定。指定端口将只允许指定IP地址和指定MAC地址的报文通过,不允许其它IP地址和MAC地址的报文通过。指定IP地址的报文只能从指定端口上通过,不能从其它端口上通过。指定MAC地址的报文只能从指定端口上通过,不能从其它端口上通过。 ? IPMAC绑定:将报文的源IP和源MAC绑定。如果报文的源IP地址与指定IP相同,则只有源MAC地址是指定的MAC地址时,该报文才被交换机转发,否则该报文不能被转发。同理,如果报文的MAC地址与指定的MAC地址相同,则只有源IP地址与指定的IP地址相同,该报文才被交换机转发,否则该报文不能被转发。 注:不支持同时对一个端口做“PORT+IP+MAC”和“PORT+IP”绑定。 假设IP地址10.1.1.2,MAC地址0000-0000-00011、 IP+MAC+端口绑定流程三层交换机中目前只有S3526系列支持使用AM命令来进行IP地址和端口的绑定。并且如果S3526系列交换机要采用AM命令来实现绑定功能,则交换机必须是做三层转发(即用户的网关应该在该交换机上)。2、采用DHCP-SECURITY来实现1.配
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 合欢树讲课稿
- 初中语文++第8课《就英法联军远征中国致巴特勒上尉的信》课件+九年级语文上册同步备课精讲精练(统编版)
- 《文化生活》高考试题汇编
- 【物理试题】《物理实验》高考试题回顾15
- 中华人民共和国成立和向社会主义的过渡作业练 2024-2025学年高一上学期统编版(2019)必修中外历史纲要上
- 光伏银浆生产项目可行性研究报告-N型升级量利双升银价上涨增厚利润
- 24.2.2 直线和圆的位置关系 人教版数学九年级上册堂堂练(含答案)
- 部编版第十册第二单元巩固提高教学课件
- 七年级英语上学期期中考试(南京卷)-2024-2025学年七年级英语上学期期中复习查缺补漏冲刺满分(译林版2024)
- 2024-2025学年江苏省苏州市常熟市多校四年级(上)第一次月考数学试卷
- 2024-2030年中国腊肉行业市场深度调研及发展趋势与投资前景研究报告
- 2024-2030年中国胶粘剂和密封胶行业市场发展趋势与前景展望战略分析报告
- 《沥青路面智能化摊铺压实技术规范》
- 2024-2030年汽车差速器小齿轮行业市场现状供需分析及重点企业投资评估规划分析研究报告
- 2024海南天涯人力资源管理服务限公司招聘30人历年(高频重点提升专题训练)共500题附带答案详解
- 注意力聚焦与人机交互设计
- 新课标PEP小学英语三年级上册全册教案
- DL-T976-2017带电作业工具、装置和设备预防性试验规程
- 高校教师资格证《高校教师职业道德》题库附参考答案(考试直接用)
- 学校食堂消毒知识与方法培训
- 2024-2029年结构健康监测行业市场现状供需分析及重点企业投资评估规划分析研究报告
评论
0/150
提交评论