Configuration guidelines, Ip subnet-based vlan configuration, Introduction – H3C Technologies H3C S10500 Series Switches User Manual

Page 146: Configuring an ip subnet-based vlan

Advertising
background image

135

======================================================

100 1 ipv4

200 1 ipv6

Configuration guidelines

Protocol-based VLAN configuration applies only to hybrid ports.

IP subnet-based VLAN configuration

Introduction

In this approach, packets are assigned to VLANs based on their source IP addresses and subnet masks.

A port configured with IP subnet-based VLANs assigns a received untagged packet to a VLAN based on

the source address of the packet.
This feature is used to assign packets from the specified IP subnet or IP address to a specific VLAN.

Configuring an IP subnet-based VLAN

NOTE:

This feature is applicable only on 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

Associate an IP subnet with the
VLAN

ip-subnet-vlan
[ ip-subnet-index ] ip

ip-address [ mask ]

Required
The IP subnet or IP address to be
associated with a VLAN cannot be a

multicast subnet or a multicast address.

Return to system view

quit

Advertising