
40
wildcard-mask
: Specifies a wildcard mask in dotted decimal notation. In contrast to a network
mask, the 0 bits in a wildcard mask represent "do care" bits, and the 1 bits represent "don't care" bits.
If the "do care" bits in a packet's IP address are identical to the "do care" bits in the specified subnet
address, the packet is assigned to the VSI. All "don't care" bits are ignored. The 0s and 1s in a
wildcard mask can be noncontiguous. For example, 0.255.0.255 is a valid wildcard mask.
ipv6-address prefix-length
: Specifies an IPv6 subnet address and the address prefix
length in the range of 1 to 128.
Usage guidelines
You must configure this command on VSIs that share a gateway interface. This command enables
the VSI interface to identify the VSI of a packet.
You can assign a maximum of eight IPv4 and IPv6 subnets to a VSI.
You must specify a gateway interface for a VSI before you can assign subnets to the VSI. If you
remove the gateway interface from the VSI, the VSI's subnet settings are automatically deleted.
For VSIs that share a gateway interface, the subnets must be unique.
Examples
# Assign subnet 100.0.10.0/24 to VSI
vxlan
.
<Sysname> system-view
[Sysname] vsi vxlan
[Sysname-vsi-vxlan] gateway subnet 100.0.10.0 0.0.0.255
gateway vsi-interface
Use
gateway vsi-interface
to specify a gateway interface for a VSI.
Use
undo gateway vsi-interface
to restore the default.
Syntax
gateway vsi-interface vsi-interface-id
undo gateway vsi-interface
Default
No gateway interface is specified for a VSI.
Views
VSI view
Predefined user roles
network-admin
Parameters
vsi-interface-id
: Specifies a VSI interface by its number. The VSI interface must already
exist.
Usage guidelines
When you delete a VSI interface by using the
undo interface vsi-interface
command, the
gateway interface setting of the VSI interface is also deleted.
A VSI can have only one gateway interface. Multiple VSIs can share a gateway interface.
Examples
# Specify VSI-interface 100 as the gateway interface for VSI
vpna
.
<Sysname> system-view