[device-acl-basic-2000] quit
[device] interface GigabitEthernet1/0/1
[device-GigabitEthernet1/0/1]
GigabitEthernet1/0/7
2)
Method II
<device> system-view
[device] acl number 2000
[device-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255
[device-acl-basic-2000] quit
[device] traffic-redirect vlan 2 inbound ip-group 2000 interface GigabitEthernet1/0/7
Configuring VLAN Mapping
Refer to
VLAN Mapping
Configuration prerequisites
The ACL rules used for traffic classification are defined. Refer to the ACL module of this manual for
information about defining ACL rules.
The VLAN ID to be marked is determined.
The ports on which the configuration is to be performed are determined.
Configuration procedure
Follow these steps to configure VLAN mapping:
To do...
Enter system view
Enter Ethernet port view
Configure VLAN
mapping
Configuration example
GigabitEthernet 1/0/1 belongs to VLAN 2 and is connected to the 10.1.1.0/24 network segment.
Configure VLAN mapping for all the packets sourced from the 10.1.1.0/24 network segment to map
the VLAN IDs of these packets to 1001.
Configuration procedure :
<device> system-view
[device] acl number 2000
[device-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255
[device-acl-basic-2000] quit
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet1/0/1] traffic-remark-vlanid inbound ip-group 2000 remark-vlan 1001
Configuring Queue Scheduling
Refer to
Queue Scheduling
traffic-redirect
for information about VLAN mapping.
Use the command...
system-view
interface interface-type
interface-number
traffic-remark-vlanid inbound
acl-rule remark-vlan vlan-id
untagged-packet
for information about queue scheduling.
1-25
inbound
ip-group
Remarks
—
—
Required
By default, VLAN mapping is
not configured.
2000
interface