835
Parameters
ip ipv4-address: Specifies a destination IPv4 address or IPv4 subnet, in dotted decimal notation.
mask-length: Specifies the mask length for IPv4 addresses, in the range of 0 to 32.
ipv6 ipv6-address: Specifies a destination IPv6 address or IPv6 subnet.
prefix-length: Specifies the prefix length for IPv6 addresses, in the range of 0 to 128.
Usage guidelines
The following matrix shows the command and hardware compatibility:
MSR810/810-W/810-W-DB/810-LM/810-W-LM/810-10-PoE/810-LM
-HK/810-W-LM-HK
Yes
MSR810-LMS/810-LUS No
MSR2600-10-X1 Yes
MSR 2630 Yes
MSR3600-28/3600-51 Yes
MSR3600-28-SI/3600-51-SI No
MSR3610-X1/3610-X1-DP/3610-X1-DC/3610-X1-DP-DC Yes
MSR 3610/3620/3620-DP/3640/3660 Yes
MSR5620/5660/5680 Yes
The ipv6 ipv6-address option is not supported in the current software version. If you specify this
option, the command does not take effect.
If you execute this command multiple times for the same NBAR rule, the most recent configuration
takes effect.
Examples
# Configure user-defined NBAR rule abcd to match packets destined for the IPv4 subnet
192.168.1.0/24.
<Sysname> system-view
[Sysname] nbar application abcd protocol http
[Sysname-nbar-application-abcd] destination ip 192.168.1.0 24
Related commands
nbar application
direction
Use direction to specify a direction as a match criterion in a user-defined NBAR rule.
Use undo direction to restore the default.
Syntax
direction { to-client | to-server }
undo direction
Default
A user-defined NBAR rule matches packets in both directions.