146
Configuring an IP subnet-based VLAN
Task Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter VLAN view.
vlan
vlan-id
If the specified VLAN does not exist, this
command first creates the VLAN and
enters VLAN view of this VLAN.
3.
Associate an IP
subnet or IP address
with the VLAN.
ip-subnet-vlan
[
ip-subnet-index
]
ip
ip-address
[
mask
]
By default, a VLAN is not associated
with any IP subnets or IP addresses.
A multicast subnet or a multicast
address cannot be associated with a
VLAN.
4.
Return to system
view.
quit
N/A
5.
Enter interface view.
•
Enter Layer 2 Ethernet interface
view:
interface
interface-type
interface-number
•
Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
•
The configurations made in Layer 2
Ethernet interface view apply only to
the port.
•
The configurations made in Layer 2
aggregate interface view apply to
the aggregate interface and its
aggregation member ports. If the
system fails to apply the
configurations to the aggregate
interface, it stops applying the
configurations to the aggregation
member ports. If the system fails to
apply the configurations to an
aggregation member port, it skips
the port and moves to the next
member port.
6.
Configure the port
link type as hybrid.
port link-type
hybrid
By default, all ports are access ports.
7.
Configure the hybrid
port to permit
packets from the
specified IP
subnet-based VLANs
to pass through.
port hybrid
vlan
vlan-id-list
{
tagged
|
untagged
}
By default, the hybrid port is an
untagged member of the VLAN to
which the port belongs when its link
type is
access
.
8.
Associate the hybrid
port with the
specified IP
subnet-based VLAN.
port hybrid ip-subnet-vlan
vlan
vlan-id
By default, no IP subnet-based VLAN is
associated with a hybrid port.