ACL设置专属访问IP

ACL设置专属IP访问_保护路由

1.环境准备

image-20250606163654365

image-20250606161344255

image-20250606161539715

image-20250606161513605

测试可以PING通

image-20250606161716292

打开路由器telnet

[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):huawei
image-20250606161941687

2.配置ACL规则

[Huawei]acl 2021
[Huawei-acl-basic-2021]rule 5 permit source 192.168.2.11 0.0.0.0
[Huawei-acl-basic-2021]rule 10 deny
[Huawei-acl-basic-2021]quit
[Huawei]user-inter    
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]acl 2021 inb    
[Huawei-ui-vty0-4]acl 2021 inbound 

3.测试

image-20250606162718246

image-20250606163622470

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注