< Home

source-address (PCP policy rule view)

Function

The source-address command specifies a source IP address in a PCP policy rule.

The undo source-address command removes a source IP address from a PCP policy rule.

Format

source-address { address-set address-set-name &<1-6> | ipv4-address { ipv4-mask-length | mask mask-address | wildcard } [ description description ] | range ipv4-start-address ipv4-end-address [ description description ] | any }

undo source-address { address-set address-set-name &<1-6> | ipv4-address { ipv4-mask-length | mask mask-address | wildcard } [ description ] | range ipv4-start-address ipv4-end-address [ description ] | all }

Parameters

Parameter Description Value
address-set-name &<1-6> Specifies the name of an address or address group. The address or address group must exist. A maximum of six addresses or address groups can be specified at a time.
ipv4-address Specifies an IPv4 address. The value is in decimal dotted notation.
ipv4-mask-length Specifies the mask length of an IPv4 address. The value is an integer ranging from 1 to 32.
mask mask-address Specifies the mask of an IPv4 address. The value is in dotted decimal notation whose binary form cannot be inconsecutive. For example, 255.0.255.0 is not a legitimate wildcard because its binary form is 11111111.00000000.11111111.00000000. In the binary form, digits 1 are to be matched, whereas digits 0 are not. For example, 192.168.1.1/255.0.255.0 indicates that only IP addresses of the 192.*.1.* form are to be matched.
wildcard Specifies the wildcard of an IPv4 address. The value is in dotted decimal notation whose binary form cannot be inconsecutive. For example, 0.255.0.255 is not a legitimate wildcard because its binary form is 00000000.11111111.00000000.11111111. In the binary form, digits 0 are to be matched, whereas digits 1 are not. For example, 192.168.1.1/0.255.0.255 indicates that only IP addresses of the 192.*.1.* form are to be matched.
description description Specifies the description of an individual IPv4/IPv6 address or address segment. The value is a string of 1 to 128 characters.
range Indicates an IP address range. -
ipv4-start-address Specifies the start IPv4 address. The value is in decimal dotted notation.
ipv4-end-address Specifies the end IPv4 address. The value is in decimal dotted notation.
any Indicates any source address. -
all Removes all source addresses from the PCP policy rule. -

Views

PCP policy rule view

Default Level

2: Configuration level

Usage Guidelines

The source address in the PCP policy rule should be set to the IP address of the CPE.

Example

# Set the source address to 10.3.1.0 and the mask to 24 in a PCP policy rule named abc.

<sysname> system-view
[sysname] pcp-policy 
[sysname-policy-pcp] rule name abc 
[sysname-policy-pcp-rule-abc] source-address 10.3.1.0 24
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >