Ip subnet-based vlan configuration example, Network requirements – H3C Technologies H3C S12500 Series Switches User Manual
Page 36

23
Step Command
Remarks
23.
Associate the classes
with the traffic behavior
in the policy to transmit
ARP packets and IPv4
packets from the
specified subnet in the
specified VLAN.
classifier tcl-name behavior behavior-name
N/A
24.
Return to system view.
quit
N/A
25.
Apply the QoS policy.
•
(Method 1) Apply the policy to an interface or
multiple interfaces:
a.
Enter interface or port group view:
Enter Ethernet interface view:
interface interface-type
interface-number
OR:
Enter port group view:
port-group manual port-group-name
b.
qos apply policy policy-name { inbound
| outbound }
•
(Method 2) Apply the policy to the specified
VLANs:
qos vlan-policy policy-name vlan vlan-id-list
{ inbound | outbound }
•
(Method 3) Apply the policy globally:
qos apply policy policy-name global
{ inbound | outbound }
Use any method.
To apply the policy to a
Layer 2 aggregate
interface, you must apply
the policy to every
member port of the Layer
2 aggregate interface.
IP subnet-based VLAN configuration example
Network requirements
As shown in
, PC A and PC B in a lab are located on different IP subnets. PC A and PC B are
connected to Switch through L2 Switch. Configure Switch to assign different VLANs and gateways to the
PCs by IP subnet.
Figure 9 Network diagram