Command Reference ACL Commands
Examples
The following basic IP ACL allows the packets whose source IP addresses are 192.168.1.64 -
192.168.1.127 to pass:
Ruijie (config)#access-list 1 permit 192.168.1.64 0.0.0.63
2. Example of the extended IP ACL
The following extended IP ACL allows the DNS messages and ICMP messages to pass:
Ruijie(config)#access-list 102 permit tcp any any eq domain log
Ruijie(config)#access-list 102 permit udp any any eq domain log
Ruijie(config)#access-list 102 permit icmp any any echo log
Ruijie(config)#access-list 102 permit icmp any any echo-reply
3. Example of the extended MAC ACL
This example shows how to deny the host with the MAC address 00d0f8000c0c to provide service
with the protocol type 100 on gigabit Ethernet port 1/1. The configuration procedure is as below:
Ruijie(config)#access-list 702 deny host 00d0f8000c0c any aarp
Ruijie(config)# interface gigabitethernet 1/1
Ruijie(config-if)# mac access-group 702 in
4. Example of the extended expert ACL
The following example shows how to create and display an extended expert ACL. This expert ACL
denies all the TCP packets with the source IP address 192.168.12.3 and the source MAC address
00d0.f800.0044.
Ruijie(config)#access-list 2702 deny tcp host 192.168.12.3 mac 00d0.f800.0044
any any
Ruijie(config)# access-list 2702 permit any any any any
Ruijie(config)# show access-lists
expert access-list extended 2702
10 deny tcp host 192.168.12.3 mac 00d0.f800.0044 any any
10 permit any any any any
Related
Commands
Command
Description
show access-lists
Show all the ACLs.
mac access-group
Apply the extended MAC ACL on the interface.
Platform
Description
N/A
1.3 access-list list-remark
Use this command to write a helpful comment (remark) for an access list. Use the
no
form of this
command to remove the remark.
access-list
id
list-remark
text
no access-list
id
list-remark
Parameter
Description
Parameter
Description
Содержание RG-S29 Series
Страница 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Страница 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Страница 93: ...Command Reference Line Commands Description...
Страница 236: ...Command Reference PoE Management Commands Related Commands Command Description N A N A Platform Description N A...
Страница 248: ...Command Reference PKG_MGMT Commands...
Страница 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Страница 350: ...Command Reference Voice VLAN Commands Description...
Страница 430: ...Command Reference LLDP Commands Description...
Страница 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Страница 541: ...Command Reference IPv6 Commands Platform Description N A...
Страница 858: ...Command Reference NSM Commands Description N A N A Defaults N A Command Mode Privileged EXEC mode Usage guideline N A...
Страница 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Страница 1092: ...Configuration Guide SCC Commands Platforms N A...
Страница 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Страница 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...