跳到主要内容
外观
外观设置
显示模式
主题配色

保存在此浏览器,所有页面通用。

H3C 交换机 IP、MAC 与端口绑定配置

3,899 次浏览0 次点赞

适用范围与配置准备

本文整理 H3C 交换机通过 IP Source Guard 配置 IP、MAC 与端口绑定的四种示例。

  • 原记录未注明交换机型号和 Comware 版本,接口名称及支持的命令请以设备帮助和对应版本手册为准。
  • 以下地址、MAC 和接口均为示例,使用时替换为实际值。
  • 先配置允许通过的绑定项,再启用源地址检查,避免遗漏合法终端造成断网。

一、IP、MAC 与端口绑定

在指定端口配置 IP 和 MAC 的对应关系。

interface Ethernet1/0/1
ip source binding ip-address 192.168.0.111 mac-address 74d4-3504-4f0f
ip verify source ip-address mac-address

二、IP 与端口绑定

只绑定 IP 地址,不在此绑定项中限定 MAC 地址。

interface Ethernet1/0/1
ip source binding ip-address 192.168.0.111
ip verify source ip-address

三、MAC 与端口绑定

只绑定 MAC 地址,不在此绑定项中限定 IP 地址。

interface Ethernet1/0/1
ip source binding mac-address 74d4-3504-4f0f
ip verify source mac-address

四、同一端口连接多台电脑

当交换机端口下接非网管交换机、多台电脑共用一个上联端口时,在该端口分别添加各终端的 IP、MAC 绑定项。

interface Ethernet1/0/1
ip source binding ip-address 192.168.0.111 mac-address 74d4-3504-4f0f
ip source binding ip-address 192.168.0.222 mac-address 0022-644d-414d
ip verify source ip-address mac-address

注意:四种示例按实际需求选择。正式应用前,核对端口下的全部合法终端,并保留 Console 等管理通道。