静态用户绑定和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

复制代码

Huawei\]un in e \[Huawei\]sysname sw1 un in e: 进入用户视图。 sysname sw1: 将设备的名称设置为 sw1。 2. 配置静态用户绑定 plaintext 复制代码 \[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. 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 进行静态绑定。 3. 配置接口 GigabitEthernet 0/0/1 的 IP 源检查 plaintext 复制代码 \[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 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。 4. 配置接口 GigabitEthernet 0/0/2 的 IP 源检查 plaintext 复制代码 \[sw1\]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 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。 5. 退出配置模式并保存配置 plaintext 复制代码 \[sw1-GigabitEthernet0/0/2\]q \[sw1\]q \save q: 退出当前配置视图,返回上一级视图。 \save: 保存当前配置到设备的启动配置文件中。 总结 通过以上配置,您在华为交换机上设置了两个静态用户绑定,并在两个接口上启用了基于用户绑定的 IP 源检查和报警功能。这样可以确保只有特定的 IP 地址和 MAC 地址组合的设备才能通过这些接口,从而提高网络的安全性。

相关推荐
鲨莎分不晴3 小时前
强化学习第五课 —— A2C & A3C:并行化是如何杀死经验回放
网络·算法·机器学习
Smartdaili China5 小时前
掌握Java网页抓取:技术与示例完整指南
java·网络·学习·指南·网页·住宅ip·爬虫api
雾削木5 小时前
k230 Pyhton三角形识别
运维·服务器·网络·stm32·智能路由器
郝学胜-神的一滴5 小时前
Python数据模型:深入解析及其对Python生态的影响
开发语言·网络·python·程序人生·性能优化
北京聚信万通科技有限公司5 小时前
传输协议:AS3
服务器·网络·安全·电子数据交换·as3
爬山算法6 小时前
Netty(12)Netty支持哪些协议和传输方式?
网络
yong99906 小时前
基于C#与三菱FX5U PLC实现以太网通信
网络·c#·php
遇见火星7 小时前
常见Systemctl语句
linux·服务器·网络·systemctl
专家大圣7 小时前
摆脱局域网束缚!Neko+cpolar 让跨网共享成日常
服务器·网络·docker·内网穿透·cpolar
Awkwardx8 小时前
Linux网络编程—数据链路层
linux·运维·网络