access-list 141 permit udp any eq bootpc any eq bootps |
access-list 141 permit tcp 172.16.41.0 0.0.0.255 host 172.16.1.30 eq domain |
access-list 141 permit udp 172.16.41.0 0.0.0.255 host 172.16.1.30 eq domain |
access-list 141 permit tcp 172.16.41.0 0.0.0.255 host 172.16.1.31 eq domain |
access-list 141 permit udp 172.16.41.0 0.0.0.255 host 172.16.1.31 eq domain |
access-list 141 deny ip 172.16.41.0 0.0.0.255 172.16.0.0 0.0.255.255 |
access-list 141 permit ip 172.16.41.0 0.0.0.255 any |
access-list 142 permit udp any eq bootpc any eq bootps |
access-list 142 permit tcp 172.16.6.0 0.0.0.255 host 172.16.1.31 eq domain |
access-list 142 permit udp 172.16.6.0 0.0.0.255 host 172.16.1.31 eq domain |
access-list 142 deny ip 172.16.6.0 0.0.0.255 172.16.0.0 0.0.255.255 |
access-list 142 permit ip 172.16.6.0 0.0.0.255 any 这些思科配置对应华三的命令是什么 |
(0)
华三(H3C)与思科(Cisco)在配置上有所不同,但大部分基本的访问控制列表(ACL)配置是相似的。以下是将您提供的思科ACL转换为华三的命令:
shell复制代码# 将思科的ACL 141转换为华三命令 traffic classifier ACL141 if packet protocol udp and packet destination port eq bootpc or packet protocol tcp and packet destination port eq domain or packet protocol udp and packet destination port eq domain or packet protocol tcp and packet destination ip address 172.16.41.0 and packet destination port eq domain or packet protocol udp and packet destination ip address 172.16.41.0 and packet destination port eq domain or packet protocol tcp and packet destination ip address 172.16.41.0 and packet destination port eq domain or packet protocol udp and packet destination ip address 172.16.41.0 and packet destination port eq domain deny else permit end if # 将思科的ACL 142转换为华三命令 traffic classifier ACL142 if packet protocol udp and packet destination port eq bootpc or packet protocol tcp and packet destination port eq domain or packet protocol udp and packet destination port eq domain or packet protocol tcp and packet destination ip address 172.16.6.0 and packet destination port eq domain or packet protocol udp and packet destination ip address 172.16.6.0 and packet destination port eq domain deny else permit end if
请注意,上述命令是基于华三的命令行接口(CLI)的语法。确保您在实施这些配置之前,已经根据您的网络环境和需求进行了适当的测试和验证。
(0)
acl number 141
rule 0 permit udp source any destination any eq bootps
rule 1 permit tcp source 172.16.41.0 0.0.0.255 destination 172.16.1.30 0 eq domain
rule 2 permit udp source 172.16.41.0 0.0.0.255 destination 172.16.1.30 0 eq domain
rule 3 permit tcp source 172.16.41.0 0.0.0.255 destination 172.16.1.31 0 eq domain
rule 4 permit udp source 172.16.41.0 0.0.0.255 destination 172.16.1.31 0 eq domain
rule 5 deny ip source 172.16.41.0 0.0.0.255 destination 172.16.0.0 0.0.255.255
rule 6 permit ip source 172.16.41.0 0.0.0.255 destination any
acl number 142
rule 0 permit udp source any destination any eq bootps
rule 1 permit tcp source 172.16.6.0 0.0.0.255 destination 172.16.1.31 0 eq domain
rule 2 permit udp source 172.16.6.0 0.0.0.255 destination 172.16.1.31 0 eq domain
rule 3 deny ip source 172.16.6.0 0.0.0.255 destination 172.16.0.0 0.0.255.255
rule 4 permit ip source 172.16.6.0 0.0.0.255 destination any
这些命令的作用是:
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论