< Home

source-address (SACG interworking policy rule view)

Function

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

The undo source-address command deletes the source IP address from a SACG interworking 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 address-set-name &<1-6> Specifies the name of an address or address group. The value must be the name of an existing address or address group. You can add or delete a maximum of six addresses or address groups at a time.
ipv4-address Specifies an IPv4 address. The value is in dotted decimal notation.
ipv4-mask-length Specifies the length of a mask for the IPv4 address. The value is an integer ranging from 1 to 32.
mask mask-address Specifies a mask for the IPv4 address. The value is in dotted decimal notation. For example, 255.255.255.0 indicates that the subnet mask length is 24.
wildcard Specifies a wildcard for the IPv4 address. The value is in dotted decimal notation. The wildcard in binary format can be contiguous 1s, such as 0.255.0.255 (00000000 11111111 00000000 11111111). Only digits 0 in the binary format are matched, but not digits 1. For example, IP address 192.168.1.1/0.255.0.255 matches the IP addresses in 192.*.1.* format.
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 the address range. -
ipv4-start-address Specifies the start address of an IPv4 address range. The value is in dotted decimal notation.
ipv4-end-address Specifies the end address of an IPv4 address range. The value is in dotted decimal notation.
any Indicates any source address. -
all Deletes all source addresses to which a policy rule applies. -

Views

SACG interworking policy rule view

Default Level

2: Configuration level

Usage Guidelines

Regions and region groups are collections of IP addresses. They function like IP addresses or IP address groups. Packets matching any IP address in the specified region or region group match the specified region or region group.

Example

# Set the source IP address in SACG interworking policy rule rule1.

<sysname> system-view
[sysname] rightm-policy
[sysname-policy-rightm] rule name rule1
[sysname-policy-rightm-rule-rule1] source-address 10.1.1.1 mask 255.255.255.0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >