Traffic-Remark-Vlanid - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Example
# Redirect the packets that match ACL 2000 rules and are of VLAN 1 to Ethernet 1/0/7 (assuming that
the current device is an S3100-EI series switch).
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 1.1.1.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] traffic-redirect vlan 1 inbound ip-group 2000 interface Ethernet1/0/7

traffic-remark-vlanid

Syntax
traffic-remark-vlanid inbound acl-rule remark-vlan remark-vlanid
undo traffic-remark-vlanid inbound acl-rule
View
Ethernet port view
Parameters
inbound: Changes the VLAN IDs carried in the inbound packets to a specified VLAN ID.
acl-rule: ACL rules to be applied for traffic classification. This argument can be the combination of
multiple ACLs. For more information about this argument, refer to
the ACL rules referenced must be those defined with the permit keyword.
remark-vlan remark-vlanid: Specifies the target VLAN ID, that is, the VLAN ID to be set for the packets
matching the specific ACL rules.
Description
Use the traffic-remark-vlanid command to configure the VLAN marking function to change the VLAN
ID of the incoming traffic matching a specified ACL rule to the specified VLAN ID.
Use the undo traffic-remark-vlanid command to disable the VLAN marking function for the incoming
packets matching any of the specified ACL rules.
By default, VLAN marking is not configured.
VLAN marking is mutually exclusive with VLAN mapping.
Related commands: display qos-interface traffic-remark-vlanid.
Examples
# Configure VLAN marking on port Ethernet 1/0/1 to change the VLAN ID of incoming traffic carrying
VLAN ID 5 to 1001.
Table 1-9
1-41
and
Table
1-10. Note that

Advertisement

Table of Contents
loading

Table of Contents