785
# Configure an IPv4 address object with the address range of
192.165.0.100
to
192.165.0.200
.
<Sysname> system-view
[Sysname] object-group ip address ipgroup
[Sysname-obj-grp-ip-ipgroup] network range 192.165.0.100 192.165.0.200
# Configure an IPv4 address object using object group
ipgroup2
.
<Sysname> system-view
[Sysname] object-group ip address ipgroup
[Sysname-obj-grp-ip-ipgroup] network group-object ipgroup2
network (IPv6 address object group view)
Use
network
to configure an IPv6 address object.
Use
undo network
to delete an IPv6 address object.
Syntax
[
object-id
]
network
{
host
{
address
ipv6-address
|
name
host-name
} |
subnet
ipv6-address
prefix-length
|
range ipv6-address1
ipv6-address2
|
group-object
object-group-name
}
undo network
{
host
{
address
ipv6-address
|
name
host-name
} |
subnet
ipv6-address
prefix-length
|
range ipv6-address1
ipv6-address2
|
group-object
object-group-name
}
undo object-id
Default
No IPv6 address objects exist.
Views
IPv6 address object group view
Predefined user roles
network-admin
Parameters
object-id
: Specifies an object ID in the range of 0 to 4294967294. If you do not configure an object ID,
the system automatically assigns the object a multiple of 10 next to the greatest ID being used. For
example, if the greatest ID is 22, the system automatically assigns 30.
host
: Configures an IPv6 address object with the host address or name.
address
ipv6-address
: Specifies an IPv6 host address.
name
host-name
: Specifies a host name, a case-insensitive string of 1 to 60 characters.
subnet ipv6-address prefix-length
: Configures an IPv6 address object with the subnet address
followed by the prefix length in the range of 1 to 128.
range ipv6-address1 ipv6-address2
: Configures an IPv6 address object.
group-object
object-group-name
: Specifies an IPv6 address object group by its name, a
case-insensitive string of 1 to 31 characters.
Usage guidelines
This command fails if you use it to configure or change an IPv6 address object to be identical with an
existing object.
This command creates an IPv6 address object if the specified object ID does not exist. Otherwise,
the command overwrites the configuration of the specified object.
If you configure a subnet address with the prefix length of 128, the system configures the object with
a host address.