< Home

address

Function

The address command adds a member to the address object or address group.

The undo address command deletes a member.

Format

address [ id ] { mac-address | ipv4-address { 0 | wildcard | mask { mask-address | mask-len } } | ipv6-address mask-len | range { start-ipv4-address end-ipv4-address | start-ipv6-address end-ipv6-address } | address-set address-set-name } [ description description ]

undo address { id | all | address-set address-set-name }

Parameters

Parameter Description Value

id

Specifies the ID of an address set item.

It is an integer ranging from 0 to 4095 for an address object member ID and ranging from 0 to 4095 for an address group member ID.

mac-address

Specifies a MAC address.

All models except USG6680E and USG6712E/6716E support this parameter.

The MAC address can be in one of the following formats:

  • H-H-H (Each H is a 4-digit hexadecimal number, such as 00e0 and fc01. If an H contains less than four bits, it means that the first bits contained in the H are 0s. For example, if an H is e0, it is equal to 00e0.)
  • XX:XX:XX:XX:XX:XX (Each X is a 1-digit hexadecimal number.)
  • XX-XX-XX-XX-XX-XX (Each X is a 1-digit hexadecimal number.)

The MAC address cannot be all 0s or all Fs (such as FFFF-FFFF-FFFF, 00:00:00:00:00:00, or 00-00-00-00-00-00) in any format.

ipv4-address

Specifies an IPv4 address.

It is in dotted decimal notation.

0

Indicates a wildcard. The value 0 indicates a host.

-

wildcard

Specifies the wildcard.

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.

mask mask-address

Specifies a mask.

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.

mask mask-len

Specifies a mask length.

It is an integer ranging from 1 to 32.

ipv6-address

Specifies an IPv6 address.

ipv6-address is a hexadecimal with every four digits separated by a colon (:). Four zeros can be expressed as "::".

mask-len

Specifies the prefix length of an IPv6 address.

mask-len is an integer ranging from 1 to 128.

range

Indicates the IP address range of an address set.

-

start-ipv4-address

Specifies the start IP address of the address set.

It is in dotted decimal notation.

end-ipv4-address

Specifies the end IP address of the address set.

It is in dotted decimal notation.

start-ipv6-address

Specifies the start IPv6 address.

The value is a hexadecimal with every four digits separated by a colon (:). Four zeros can be expressed as "::".

end-ipv6-address

Specifies the end IPv6 address.

The value is a hexadecimal with every four digits separated by a colon (:). Four zeros can be expressed as "::".

address-set address-set-name

Specifies an address object or an address group.

NOTE:

Only the address set whose type is group can contain another address set as an address set item.

The configured address object or address group.

description description

Specifies an item description.

It is a string of 1 to 64 characters without spaces.

all

Indicates all the members.

-

Views

Address object view, Address group view

Default Level

2: Configuration level

Usage Guidelines

If the address command specifies an ID, and the address object or address group object corresponding to the ID exists, the new address information overwrites the original one.

Example

# Configure the IP address range of the address set addr whose type is object.

<sysname> system-view
[sysname] ip address-set addr type object
[sysname-object-address-set-addr] address 10 range 10.1.1.1 10.1.1.20

# Create address group set1 and add addr to set1.

<sysname> system-view
[sysname] ip address-set set1 type group
[sysname-group-address-set-set1] address address-set addr
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >