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

相关推荐
updayday85411 小时前
客户附件不该发往旧邮箱,如何在发送前拦截 - Ping64 邮件安全管控
大数据·网络·数据库·安全·智能路由器
其实防守也摸鱼11 小时前
Chrome 扩展安全攻防实录:从攻击面到防御实践
开发语言·前端·网络·chrome·安全·web安全·php
小茬粥11 小时前
QEMU 宿主机网卡实例发现与采集脚本(标准 Linux / Proxmox VE 适配版)COLT_CMDB_QEMU_IFACE.sh
网络
见合八方12 小时前
借助半导体光放大器实现功率预算超31dB的112.5Gbit/s长距无源光网络
网络·5g·soa·光通信·激光雷达·半导体光放大器
夜雪一千13 小时前
锐捷天蝎路由器WiFi优化设置教程:解决邻居WiFi干扰、远距离卡顿
网络·智能路由器
2301_7807896613 小时前
深度伪造即服务:新型网络诈骗的“完美面具”与识别之道
java·网络·ddos
lazy H13 小时前
【计算机网络】第 15 篇:Java BIO、NIO 与高并发网络通信——从 Socket 理解 I/O 模型
网络·后端·tcp/ip·计算机网络·nio·408
垆边人似月.13 小时前
RDMA 文件传输踩坑(四):从固定延时改造为 READY/ACK 协议
linux·服务器·网络
乐维_lwops14 小时前
汽车集团网管平台建设案例:乐维网管工具实现跨区域网络统一监控与链路可视化
网络·网管平台·it监控·链路·统一监控
运维行者_15 小时前
供应链安全成最大风险源,企业如何构建可控的运维体系?
运维·开发语言·网络·数据库·安全·云计算·流量监控