静态用户绑定和IP源检查功能

复制代码
<Huawei>sys
[Huawei]un in e
[Huawei]sysname sw1
[sw1]user-bind static ip-address 10.1.1.1 mac-address 5489-98B9-5285
Info: 1 static user-bind item(s) added.
[sw1]user-bind static ip-address 10.1.1.10 mac-address 5489-989B-2D10
Info: 1 static user-bind item(s) added.
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]ip source check user-bind enable 
Info: Add permit rule for dynamic snooping bind-table, please wait a minute!done
.
[sw1-GigabitEthernet0/0/1]ip source check user-bind alarm enable 
[sw1-GigabitEthernet0/0/1]ip source check user-bind alarm threshold 100
[sw1-GigabitEthernet0/0/1]interface GigabitEthernet 0/0/2
[sw1-GigabitEthernet0/0/2]ip source check user-bind enable
Info: Add permit rule for dynamic snooping bind-table, please wait a minute!done
.
[sw1-GigabitEthernet0/0/2]ip source check user-bind alarm enable
[sw1-GigabitEthernet0/0/2]ip source check user-bind alarm threshold 100
[sw1-GigabitEthernet0/0/2]q
[sw1]q
<sw1>save
  1. 进入系统视图并设置设备名称

plaintext

复制代码

Huaweiun in e

Huaweisysname sw1

un in e: 进入用户视图。

sysname sw1: 将设备的名称设置为 sw1。

  1. 配置静态用户绑定

plaintext

复制代码

sw1user-bind static ip-address 10.1.1.1 mac-address 5489-98B9-5285

Info: 1 static user-bind item(s) added.

sw1user-bind static ip-address 10.1.1.10 mac-address 5489-989B-2D10

Info: 1 static user-bind item(s) added.

user-bind static ip-address 10.1.1.1 mac-address 5489-98B9-5285: 将 IP 地址 10.1.1.1 与 MAC 地址 5489-98B9-5285 进行静态绑定。

user-bind static ip-address 10.1.1.10 mac-address 5489-989B-2D10: 将 IP 地址 10.1.1.10 与 MAC 地址 5489-989B-2D10 进行静态绑定。

  1. 配置接口 GigabitEthernet 0/0/1 的 IP 源检查

plaintext

复制代码

sw1interface GigabitEthernet 0/0/1

sw1-GigabitEthernet0/0/1ip source check user-bind enable

Info: Add permit rule for dynamic snooping bind-table, please wait a minute!done

.

sw1-GigabitEthernet0/0/1ip source check user-bind alarm enable

sw1-GigabitEthernet0/0/1ip source check user-bind alarm threshold 100

interface GigabitEthernet 0/0/1: 进入接口 GigabitEthernet 0/0/1 的配置视图。

ip source check user-bind enable: 启用基于用户绑定的 IP 源检查。

ip source check user-bind alarm enable: 启用基于用户绑定的 IP 源检查报警功能。

ip source check user-bind alarm threshold 100: 设置报警阈值为 100。

  1. 配置接口 GigabitEthernet 0/0/2 的 IP 源检查

plaintext

复制代码

sw1interface GigabitEthernet 0/0/2

sw1-GigabitEthernet0/0/2ip source check user-bind enable

Info: Add permit rule for dynamic snooping bind-table, please wait a minute!done

.

sw1-GigabitEthernet0/0/2ip source check user-bind alarm enable

sw1-GigabitEthernet0/0/2ip source check user-bind alarm threshold 100

interface GigabitEthernet 0/0/2: 进入接口 GigabitEthernet 0/0/2 的配置视图。

ip source check user-bind enable: 启用基于用户绑定的 IP 源检查。

ip source check user-bind alarm enable: 启用基于用户绑定的 IP 源检查报警功能。

ip source check user-bind alarm threshold 100: 设置报警阈值为 100。

  1. 退出配置模式并保存配置

plaintext

复制代码

sw1-GigabitEthernet0/0/2q

sw1q

<sw1>save

q: 退出当前配置视图,返回上一级视图。

<sw1>save: 保存当前配置到设备的启动配置文件中。

总结

通过以上配置,您在华为交换机上设置了两个静态用户绑定,并在两个接口上启用了基于用户绑定的 IP 源检查和报警功能。这样可以确保只有特定的 IP 地址和 MAC 地址组合的设备才能通过这些接口,从而提高网络的安全性。

相关推荐
RD_daoyi12 分钟前
外链权重暴跌至13%,品牌提及反超传统链接——2026年不做Digital PR,你的独立站等于隐形
运维·网络·学习·机器学习·搜索引擎
张小姐的猫43 分钟前
【Linux】网络编程 —— HTTP协议(上)
linux·运维·服务器·网络·http·单例模式·策略模式
国科安芯44 分钟前
星间光链路:AS32S601型抗辐射MCU在空间激光通信终端控制中的技术实现
服务器·网络·单片机·嵌入式硬件·物联网·安全·信息与通信
可视化运维管理爱好者2 小时前
nVisual Studio:数据中心网络智能规划设计工具
网络·ide·visual studio
天行健,君子而铎2 小时前
知影-API风险监测系统:数据流转安全的核心防护方案
网络
其实防守也摸鱼2 小时前
补天SRC新手入门指南:从0到1的漏洞挖掘之路
网络·python·学习·安全·web安全·数据挖掘·挖洞
运维行者_3 小时前
如何查看每个IP的带宽使用情况?NetFlow 技术实战指南
开发语言·网络·分布式·后端·架构·带宽
振浩微433射频芯片3 小时前
工业遥控器总在关键时刻“掉链子”?——433MHz芯片方案如何破局
网络·单片机·嵌入式硬件·物联网·工业遥控
AGCSDNl4 小时前
线上起名网站深度测评
网络
weixin_727535624 小时前
OSI 七层模型概览
网络