The user-vlan command configures user VLANs for an mDNS group.
The undo user-vlan command deletes user VLANs for the mDNS group.
By default, no user VLAN is configured for an mDNS group.
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies the ID of the VLAN that users belong to. |
The value is an integer that ranges from 1 to 4094. |
all |
Specifies all user VLANs. |
- |
Usage Scenario
The device functioning as the mDNS gateway maintains service information lists of all service provisioning devices on a network, and it can use mDNS groups to isolate service resources to provide refined service management. You can run the user-vlan command to configure user VLANs for an mDNS group. The intra-VLAN users who join the mDNS group can only obtain services from the service list provided by the service VLAN (specified using the service-vlan command) mapping the mDNS group.
Prerequisites
An mDNS group has been created using the mdns group command.
Precautions
You can add at most 32 user VLANs to an mDNS group.
A user VLAN can belong to only one mDNS group.
If no mDNS group is specified for the user VLAN or no service VLAN is configured in the mDNS group, the gateway queries and replies with the requested service from the service lists provided by all service VLANs.