H3C S7500E Series Ethernet Switches Operation Manual
Operation Manual – VLAN
H3C S7500E Series Ethernet Switches Chapter 1 VLAN Configuration
1-13
1.6 Configuring IP-Subnet-Based VLAN
1.6.1 Introduction
In this approach, VLANs are categorized based on the source IP addresses and the
subnet masks of packets. After receiving an untagged packet from a port, the device
finds its association with the current VLAN based on the source address contained in
the packet, and then forwards the packet in the corresponding VLAN. This allows
packets from a certain network segment or with certain IP addresses to be forwarded in
a VLAN.
1.6.2 Configuring an IP-Subnet-Based VLAN
Note:
This feature is only applicable to hybrid ports.
Follow these steps to configure an IP-subnet-based VLAN:
To do… Use the command… Remarks
Enter system view
system-view
—
Enter VLAN view
vlan vlan-id
—
Configure the association
between an IP subnet with
the current VLAN
ip-subnet-vlan
[ ip-subnet-index ] ip
ip-address [ mask ]
Required
The configured IP network
segment or IP address
cannot be a multicast
network segment or a
multicast address
Exit to system view
quit
—
Enter
Ethernet port
view
interface interface-type
interface-number
Enter
Ethernet
port view
or port
group
view
Enter port
group view
port-group { manual
port-group-name |
aggregation agg-id }
Use either command.
Under Ethernet port view,
the subsequent
configurations only apply
to the current port; under
port group view, the
subsequent configurations
apply to all ports in the port
group
Configure port link type as
Hybrid
port link-type hybrid
Required
Allow an IP-subnet-based
VLAN to pass through the
current Hybrid port
port hybrid vlan
vlan-id-list { tagged |
untagged }
Required