Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure an IP Subnet-Based VLAN

IP subnet-based VLANs, also called IP subnet VLANs, are classified according to the source IP addresses of the packets. After an IP subnet VLAN is configured, if the port receives an Untag packet and the source IP address of the packet matches an IP subnet VLAN entry, the system adds a VLAN tag for the packet, in which the VLAN ID matches the VLAN ID in the IP subnet VLAN entry.

After the physical location of the user is changed, if the IP address of the user is not changed, the VLAN to which the user port belongs need not be re-configured.

Configuration Condition

None

Configure an IP Subnet-Based VLAN

Table 3-10 Configuring an IP Subnet-Based VLAN

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure an IP subnet VLAN entry.

ip-subnet-vlan ipv4 ip- address mask mask vlan vlan-id

Mandatory.

By default, no IP subnet VLAN entry is configured.

Enter the L2 Ethernet interface configuration mode.

interface interface-name

Either

After entering the L2 Ethernet interface configuration mode, the subsequent configuration takes effect only on the current port. After entering the aggregation group configuration mode, the subsequent configuration takes effect only on the aggregation group.

Enter the aggregation group configuration mode.

interface link-aggregation link-aggregation-id

Enable the IP subnet VLAN function of the port.

ip-subnet-vlan enable

Mandatory.

By default, the IP subnet VLAN function is disabled on the port.

note


  • The port on which the IP subnet VLAN function is enabled must be added into the VLAN that matches the entry; otherwise, the port cannot forward packets of the VLAN, and the packets that match the source IP address will be discarded.