永发信息网

华为交换机mac地址绑定怎么弄

答案:2  悬赏:0  手机版
解决时间 2021-03-01 00:35
  • 提问者网友:無理詩人
  • 2021-02-28 10:28
华为交换机mac地址绑定怎么弄
最佳答案
  • 五星知识达人网友:孤老序
  • 2021-02-28 11:01
1、进入端口视图,打开绑定功能
2、全局视图,进行绑定
例:
interface gigabitethernet0/0/1
ip source check user-bind enable
quit

user-bind static ip-address 192.168.0.2 mac-address 0000-0000-0001 vlan 1000

望采纳
全部回答
  • 1楼网友:行雁书
  • 2021-02-28 11:56
【命令】 am user-bind am user-bind interface { interface-name | interface-type interface-num } { mac-addr mac | ip-addr ip }* | mac-addr mac 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 { interface-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地址。 【描述】 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地址的报文只能从指定端口上通过,不能从其它端口上通过。  port+ip+mac绑定:将报文的接收端口、源ip和源mac绑定。指定端口将只允许指定ip地址和指定mac地址的报文通过,不允许其它ip地址和mac地址的报文通过。指定ip地址的报文只能从指定端口上通过,不能从其它端口上通过。指定mac地址的报文只能从指定端口上通过,不能从其它端口上通过。  ip+mac绑定:将报文的源ip和源mac绑定。如果报文的源ip地址与指定ip相同,则只有源mac地址是指定的mac地址时,该报文才被交换机转发,否则该报文不能被转发。同理,如果报文的mac地址与指定的mac地址相同,则只有源ip地址与指定的ip地址相同,该报文才被交换机转发,否则该报文不能被转发。 注:不支持同时对一个端口做“port+ip+mac”和“port+ip”绑定。

假设ip地址10.1.1.2,mac地址0000-0000-0001 1、ip+mac+端口绑定流程 三层交换机中目前只有s3526系列支持使用am命令来进行ip地址和端口的绑定。并且如果s3526系列交换机要采用am命令来实现绑定功能,则交换机必须是做三层转发(即用户的网关应该在该交换机上)。 2、采用dhcp-security来实现 1.配置端口的静态mac地址 [switcha]mac-address static 0000-0000-0001 interface e0/1 vlan 1 2.配置ip和mac对应表 [switcha]dhcp-security 10.1.1.2 0000-0000-0001 static 3.配置dhcp-server组号(否则不允许执行下一步,此dhcp-server组不用在交换机上创建也可) [switcha-vlan-interface1]dhcp-server 1 4. 使能三层地址检测 [switcha-vlan-interface1]address-check enable 3、采用am命令来实现 1.使能am功能 [switcha]am enable 2.进入端口视图 [switcha]vlan 10 3. 将e0/1加入到vlan10 [switcha-vlan10]port ethernet 0/1 4.创建(进入)vlan10的虚接口 [switcha]interface vlan-interface 10 5.给vlan10的虚接口配置ip地址 [switcha-vlan-interface10]ip add 10.1.1.1 255.255.255.0 6.进入e0/1端口 [switcha]interface ethernet 0/1 7. 该端口只允许起始ip地址为10.1.1.2的10个ip地址上网 [switcha-ethernet0/1]am ip-pool 10.1.1.2 10

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯