静态用户绑定和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 地址组合的设备才能通过这些接口,从而提高网络的安全性。

相关推荐
运维栈记13 分钟前
虚拟化网络的根基-网络命名空间
网络·docker·容器
五仁火烧41 分钟前
生产环境中配置了接口3000后,不能启动,改成8080后就可以
linux·网络·安全·vue
橙露1 小时前
国产PLC与进口PLC全面对比分析:技术、市场与未来趋势
运维·网络
chilavert3181 小时前
技术演进中的开发沉思-302计算机原理:网络基础
网络·计算机原理
Hellc0072 小时前
Docker网络冲突排查与解决方案:完整指南
网络·docker·容器
眠りたいです2 小时前
Docker核心技术和实现原理第二部分:docker镜像与网络原理
运维·网络·docker·容器
闲人编程2 小时前
消息通知系统实现:构建高可用、可扩展的企业级通知服务
java·服务器·网络·python·消息队列·异步处理·分发器
Xの哲學2 小时前
Linux Platform驱动深度剖析: 从设计思想到实战解析
linux·服务器·网络·算法·边缘计算
ikkkkkkkl2 小时前
计算机网络:物理层
网络·计算机网络·物理层
镜中人★2 小时前
408计算机组成原理考纲知识点
网络·笔记