Flow template configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 26: Acl rule length limit mode configuration example

Advertising
background image

17

Flow template configuration example

Network requirements

Create flow templates and apply them to interfaces.

Configuration procedure

# Create basic user-defined flow template aaa.

<Sysname> system-view

[Sysname] flow-template aaa basic smac customer-vlan-id

# Reference user-defined flow template aaa on interface GigabitEthernet 2/1/1.

[Sysname] interface Gigabitethernet 2/1/1

[Sysname-GigabitEthernet2/1/1] flow-template aaa

# Display information about user-defined flow template aaa.

[Sysname] display flow-template user-defined aaa

user-defined flow template: basic

name:aaa, index:1, total reference counts:1

fields: smac customer-vlan-id

# Display information about all user-defined flow templates.

[Sysname] display flow-template user-defined

user-defined flow template: basic

name:aaa, index:1, total reference counts:1

fields: smac customer-vlan-id

user-defined flow template: basic

name:1, index:2, total reference counts:0

fields: service-cos

user-defined flow template: basic

name:2, index:3, total reference counts:0

fields: ip-protocol dscp

# Display information about the user-defined flow templates referenced to interfaces.

[Sysname] display flow-template interface

Interface: GigabitEthernet2/1/1

user-defined flow template: basic

name:aaa, index:1, total reference counts:1

fields: smac customer-vlan-id

# Delete user-defined flow template aaa. As it is being referenced by interface Gigabitethernet 2/1/1,
remove it from the interface first.

[Sysname] interface Gigabitethernet 2/1/1

[Sysname-GigabitEthernet2/1/1] undo flow-template

[Sysname-GigabitEthernet2/1/1] quit

[Sysname] undo flow-template name aaa

ACL rule length limit mode configuration example

Network requirements

Configure the ACL rule length limit for an SPE card to 18 bytes and that for an SPC card to 80 bytes.

Advertising
This manual is related to the following products: