Configuration procedure
This feature is applicable only on hybrid ports.
To configure an IP subnet-based VLAN:
Step
1.
Enter system view.
2.
Enter VLAN view.
3.
Associate an IP subnet with
the VLAN.
4.
Return to system view.
5.
Enter interface view or port
group view.
6.
Configure port link type as
hybrid.
7.
Configure the hybrid ports
to permit the specified IP
subnet-based VLANs to
pass through.
8.
Associate the hybrid ports
with the specified IP
subnet-based VLAN.
IP subnet-based VLAN configuration example
Network requirements
As shown in
192.168.50.0/24.
Command
system-view
vlan vlan-id
ip-subnet-vlan [ ip-subnet-index ]
ip ip-address [ mask ]
quit
•
•
•
port link-type hybrid
port hybrid vlan vlan-list { tagged
| untagged }
port hybrid ip-subnet-vlan vlan
vlan-id
Figure
38, the hosts in the office belong to different IP subnets 192.168.5.0/24 and
Enter Ethernet interface view:
interface interface-type
interface-number
Enter Layer 2 aggregation
interface view:
interface bridge-aggregation
interface-number
Enter port group view:
port-group manual
port-group-name
110
Remarks
N/A
N/A
The IP subnet or IP address to be
associated with a VLAN cannot be a
multicast subnet or a multicast address.
N/A
Use one of the commands.
•
The configuration made in Ethernet
interface view applies only to the
port.
•
The configuration made in port
group view applies to all ports in
the port group.
•
The configuration made in Layer 2
aggregate interface view applies to
the aggregate interface and its
aggregation member ports. If the
system fails to apply the
configuration to the aggregate
interface, it stops applying the
configuration to aggregation
member ports. If the system fails to
apply the configuration to an
aggregation member port, it skips
the port and moves to the next
member port.
By default, all ports are access ports.
By default, a hybrid port allows only
packets from VLAN 1 to pass through
untagged.
By default, no IP subnet-based VLAN is
associated with a port.