The flow unidirectional command configures an unidirectional target flow in an iFIT instance.
The flow bidirectional command configures a bidirectional target flow in an iFIT instance.
The undo flow command deletes a target flow in an iFIT instance.
By default, a target flow in an iFIT instance in not configured.
flow unidirectional source source-ip [ source-mask ] destination destination-ip [ destination-mask ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ gtp [ gtp-te-id te-id-value ] ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
flow bidirectional source { source-ip [ source-mask ] | any } destination destination-ip [ destination-mask ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
flow bidirectional source-ipv6 src-ipv6-address [ src6-mask-length ] destination-ipv6 dest-ipv6-address [ dest6-mask-length ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
flow unidirectional evpl-instance evpl-instance-value { peer-ip peer-ip-address | peer-locator locator-ipv6-prefix locator-prefix-length }
flow unidirectional source-ipv6 any destination-ipv6 any { vpn-instance vpn-instance-name } peer-ip peer-ip-address
flow unidirectional source any destination any { vpn-instance vpn-instance-name } peer-ip peer-ip-address
flow unidirectional source-ipv6 any destination-ipv6 any [ vpn-instance vpn-instance-name ] peer-locator locator-ipv6-prefix locator-prefix-length
flow unidirectional source any destination any [ vpn-instance vpn-instance-name ] peer-locator locator-ipv6-prefix locator-prefix-length
flow unidirectional source-ipv6 src-ipv6-address [ src6-mask-length ] destination-ipv6 dest-ipv6-address [ dest6-mask-length ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ gtp [ gtp-te-id te-id-value ] ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
undo flow unidirectional source source-ip [ source-mask ] destination destination-ip [ destination-mask ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ gtp [ gtp-te-id te-id-value ] ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
undo flow
undo flow bidirectional source { source-ip [ source-mask ] | any } destination destination-ip [ destination-mask ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
undo flow bidirectional source-ipv6 src-ipv6-address [ src6-mask-length ] destination-ipv6 dest-ipv6-address [ dest6-mask-length ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
undo flow unidirectional evpl-instance evpl-instance-value { peer-ip peer-ip-address | peer-locator locator-ipv6-prefix locator-prefix-length }
undo flow unidirectional source-ipv6 any destination-ipv6 any { vpn-instance vpn-instance-name } peer-ip peer-ip-address
undo flow unidirectional source any destination any [ vpn-instance vpn-instance-name ] peer-locator locator-ipv6-prefix locator-prefix-length
undo flow unidirectional source-ipv6 any destination-ipv6 any [ vpn-instance vpn-instance-name ] peer-locator locator-ipv6-prefix locator-prefix-length
undo flow unidirectional source any destination any { vpn-instance vpn-instance-name } peer-ip peer-ip-address
undo flow unidirectional source-ipv6 src-ipv6-address [ src6-mask-length ] destination-ipv6 dest-ipv6-address [ dest6-mask-length ] [ protocol { { tcp | udp | sctp | protocol-number4 | protocol-number5 | protocol-number6 } [ source-port source-port ] [ destination-port destination-port ] | { protocol-number | protocol-number7 | protocol-number8 | protocol-number3 } } ] [ gtp [ gtp-te-id te-id-value ] ] [ dscp dscp-value ] [ vpn-instance vpn-instance-name ]
| Parameter | Description | Value | 
|---|---|---|
| source source-ip | Specifies a source IPv4 address. | The value is in dotted decimal notation. | 
| source-mask | Specifies a mask length for the source IPv4 address of a target flow. | The value is an integer ranging from 1 to 32. | 
| destination destination-ip | Specifies a destination IPv4 address. | The value is in dotted decimal notation. | 
| destination-mask | Specifies a mask length for the destination IPv4 address of a target flow. | The value is an integer ranging from 1 to 32. | 
| protocol | Specifies the protocol type. | - | 
| tcp | Specifies the TCP protocol. | - | 
| udp | Specifies the UDP protocol. | - | 
| protocol-number4 | Specifies a UDP number for a target flow. | The value is 17. | 
| protocol-number5 | Specifies a TCP number for a target flow. | The value is 6. | 
| source-port source-port | Specifies a start source port number for a target flow. | The value is an integer ranging from 1 to 65535. | 
| destination-port destination-port | Specifies a start destination port number for a target flow. | The value is an integer ranging from 1 to 65535. | 
| protocol-number | Specifies a protocol number for a target flow. | The value is an integer ranging from 0 to 5. | 
| protocol-number3 | Specifies a protocol number for a target flow. | The value is an integer ranging from 7 to 16. | 
| vpn-instance vpn-instance-name | Specifies the name of a VPN instance. | The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. | 
| sctp | Specifies the SCTP protocol. | - | 
| protocol-number6 | Specifies an SCTP number for a target flow. | The value is 132. | 
| protocol-number7 | Specifies a protocol number for a target flow. | The value is an integer ranging from 18 to 131. | 
| protocol-number8 | Specifies a protocol number for a target flow. | The value is an integer ranging from 133 to 254. | 
| gtp | Specifies the GTP protocol. | - | 
| gtp-te-id te-id-value | Specifies the TEID of the GTP protocol. | The value is an integer ranging from 1 to 4294967295. | 
| dscp dscp-value | Specifies a DSCP value. | The value is an integer ranging from 0 to 63. | 
| source-ipv6 src-ipv6-address | Specifies a source IPv6 address. | The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. | 
| src6-mask-length | Specifies a mask length for the source IPv6 address of a target flow. | The value is an integer ranging from 32 to 128. | 
| destination-ipv6 dest-ipv6-address | Specifies a destination IPv6 address. | The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. | 
| dest6-mask-length | Specifies a mask length for the destination IPv6 address of a target flow. | The value is an integer ranging from 32 to 128. | 
| any | Specifies any addresses. | - | 
| evpl-instance evpl-instance-value | Specifies the name of an EVPL instance. | For details about the value range, see the evpl instance (System view) command. | 
| peer-ip peer-ip-address | Specifies the next-hop IP address of a target flow. | The value is in dotted decimal notation. | 
| peer-locator locator-ipv6-prefix | Specifies the next-hop locator prefix of a target flow. | The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. | 
| locator-prefix-length | Specifies the mask length of the next-hop locator prefix of a target flow. | The value is an integer ranging from 32 to 120. | 
Usage Scenario
A target flow is a key element in iFIT and must be configured. To configure a target flow in an iFIT instance, run the flow command.
Precautions
<HUAWEI> system-view [~HUAWEI] evpl instance 1 [*HUAWEI-evpl-srv6-1] commit [~HUAWEI-evpl-srv6-1] quit [~HUAWEI] ifit [*HUAWEI-ifit] node-id 1 [*HUAWEI-ifit] instance 1 [*HUAWEI-ifit-instance-1] flow unidirectional evpl-instance 1 peer-locator 2001:db8:1::1 32
<HUAWEI> system-view [~HUAWEI] evpl instance 1 [*HUAWEI-evpl-mpls1] commit [~HUAWEI-evpl-mpls1] quit [~HUAWEI] ifit [*HUAWEI-ifit] node-id 1 [*HUAWEI-ifit] instance 1 [*HUAWEI-ifit-instance-1] flow unidirectional evpl-instance 1 peer-ip 10.1.1.1
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv6-family [*HUAWEI-vpn-instance-vpn1-af-ipv6] commit [~HUAWEI-vpn-instance-vpn1-af-ipv6] quit [~HUAWEI-vpn-instance-vpn1] quit [~HUAWEI] ifit [*HUAWEI-ifit] node-id 1 [*HUAWEI-ifit] instance 1 [*HUAWEI-ifit-instance-1] flow unidirectional source-ipv6 2001:db8:1::1 destination-ipv6 2001:db8:2::1 vpn-instance vpn1
<HUAWEI> system-view [~HUAWEI] ip vpn-instance 123 [*HUAWEI-vpn-instance-123] ipv4-family [*HUAWEI-vpn-instance-123-af-ipv4] commit [~HUAWEI-vpn-instance-123-af-ipv4] quit [~HUAWEI-vpn-instance-123] quit [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ip binding vpn-instance 123 [*HUAWEI-GigabitEthernet0/1/0] commit [~HUAWEI-GigabitEthernet0/1/0] quit [~HUAWEI] ifit [*HUAWEI-ifit] instance abc [*HUAWEI-ifit-instance-abc] flow unidirectional source any destination any vpn-instance 123 peer-locator 2001:db8:1::1 64
<HUAWEI> system-view [~HUAWEI] ip vpn-instance 123 [*HUAWEI-vpn-instance-123] ipv4-family [*HUAWEI-vpn-instance-123-af-ipv4] commit [~HUAWEI-vpn-instance-123-af-ipv4] quit [~HUAWEI-vpn-instance-123] quit [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ip binding vpn-instance 123 [*HUAWEI-GigabitEthernet0/1/0] commit [~HUAWEI-GigabitEthernet0/1/0] quit [~HUAWEI] ifit [*HUAWEI-ifit] instance abc [*HUAWEI-ifit-instance-abc] flow unidirectional source any destination any vpn-instance 123 peer-ip 10.1.1.1
<HUAWEI> system-view [~HUAWEI] ifit [*HUAWEI-ifit] instance abc [*HUAWEI-ifit-instance-abc] undo flow unidirectional source 10.1.1.1 32 destination 10.2.2.2 16 vpn-instance 123
<HUAWEI> system-view [~HUAWEI] ip vpn-instance 123 [*HUAWEI-vpn-instance-123] ipv4-family [*HUAWEI-vpn-instance-123-af-ipv4] commit [~HUAWEI-vpn-instance-123-af-ipv4] quit [~HUAWEI-vpn-instance-123] quit [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] ip binding vpn-instance 123 [*HUAWEI-GigabitEthernet0/1/0] commit [~HUAWEI-GigabitEthernet0/1/0] quit [~HUAWEI] ifit [*HUAWEI-ifit] instance abc [*HUAWEI-ifit-instance-abc] flow unidirectional source 10.10.10.1 24 destination 10.10.10.2 24 vpn-instance 123
<HUAWEI> system-view [~HUAWEI] ip vpn-instance 123 [*HUAWEI-vpn-instance-123] ipv4-family [*HUAWEI-vpn-instance-123-af-ipv4] commit [~HUAWEI-vpn-instance-123-af-ipv4] quit [~HUAWEI-vpn-instance-123] quit [~HUAWEI] interface Ethernet 0/1/0 [~HUAWEI-Ethernet0/1/0] ip binding vpn-instance 123 [*HUAWEI-Ethernet0/1/0] commit [~HUAWEI-Ethernet0/1/0] quit [~HUAWEI] ifit [*HUAWEI-ifit] instance abc [*HUAWEI-ifit-instance-abc] flow bidirectional source 10.1.2.0 24 destination 10.2.2.0 24 vpn-instance 123
<HUAWEI> system-view [~HUAWEI] ifit [*HUAWEI-ifit] node-id 1 [*HUAWEI-ifit] instance 1 [*HUAWEI-ifit-instance-1] flow unidirectional source any destination any peer-locator 2001:db8:1::1 32