Configuration Guide
Access
Control List Configuration
If you have created a sentence and it allows all data flows to pass, then the following sentences will
not be checked, as shown in the following example:
access-list
101
deny ip any any
access-list
101
permit tcp
192.168.12.0 0.0.0.255
eq telnet any
Because the first rule sentence denies all IP messages, the host telnet message of the
192.168.12.0/24 network will be denied. Because the switch discover that the messages match the
first rule sentence, it will not check other rule sentences.
Configuring IP Access List
The configuration of the basic access list includes the following steps:
1. Define a basic access list
2. Apply the access list to a specific interface.
There are two methods to configure a basic access list.
Method 1: Run the following command in the global configuration mode:
Command
Function
Ruijie(config)#
access-list
id
{
deny
|
permit
}
{
src
src-wildcard
|
host
src
|
any
|
interface idx
}
[
time-range
tm-rng-name
]
Define an access list
Ruijie(config)#
interface
interface
Select the interface to which the access
list is to be applied.
Ruijie(config-if)#
ip access-group
id
{
in
|
out
}
Apply the access list to the specific
interface
Method 2: Run the following command in the ACL configuration mode:
Command
Function
Ruijie(config)#
ip
access-list
{
standard
|
extended
} {
id | name
}
Enter the access list configuration mode
Ruijie (config-xxx-nacl)# [
sn
] {
permit
|
deny
}
{
src
src-wildcard
|
host src
|
any
} [
time-range
tm-rng-name
]
Add table entries for ACL. For details,
please see command reference.
Ruijie(config-xxx-nacl)#
exit
Ruijie(config)#
interface
interface
Exit from the access control list mode and
select the interface to which the access list
is to be applied.
Ruijie(config-if)#
ip
access-group
id
{
in
|
out
}
Apply the access list to the specific
interface
Содержание RG-S2900G-E Series
Страница 1: ...RG S2900G E Series Switch RGOS Configuration Guide Release 10 4 2b12 p1 ...
Страница 91: ...Configuration Guide Configuring PoE Configuration ...
Страница 133: ...Configuration Guide EEE Configuration ...
Страница 319: ...Configuration Guide QinQ Configuration ...
Страница 408: ......
Страница 409: ...IP Routing Configuration 1 Static Route Configuration ...
Страница 412: ......
Страница 413: ...Multicast Configuration 1 IGMP Snooping Configuration 2 MLD Snooping Configuration ...
Страница 621: ...Configuration Guide CPU Protection Configuration udp helper 180 4 dhcp client 180 4 lacp 180 4 ...
Страница 757: ......
Страница 758: ...ACL QoS Configuration 1 Access Control List Configuration 2 QoS Configuration ...
Страница 801: ...Reliability Configuration 1 RLDP Configuration 2 TPP Configuration 3 SEM Configuration ...
Страница 901: ...Configuration Guide ERSPAN Configuration ...
Страница 902: ...Web based Configuration 1 Web based Configuration ...