flow (IPv6)
Syntax
flow { discard-action-for-unresolved-redir-addr; interface-group (Routing Options) group-name <exclude>; (per-route-accounting | no-per-route-accounting); route name { match { destination { ipv6-prefix; prefix-offset number; } destination-port destination-port-names; dscp value; flow-label numeric-expression; fragment fragment-value; icmp6-code icmp6-code-value; icmp6-type icmp6-type-value; packet-length packet-length; port port-names; protocol number; source { ipv6-prefix; prefix-offset number; } source-port source-port-names; tcp-flags tcp-flags; no-install; } then { accept; community name; discard; mark value; redirect IP address; next-term; rate-limit value in bits/sec; routing-instance route-target-extended-community; sample; validation { traceoptions (routing-options) { file filename <files number of files> flag(all | flash | general | normal | policy | resolution | route | state | task | timer) { detail; disable; receive; send; } } } } } }
Hierarchy Level
[edit routing-options rib inet6.0], [edit routing-instances routing-instance-name routing-options rib inet6.0]
Description
Configure the BGP flow specification for the IPv6 address family to automate coordination of traffic filtering rules and to allow propagation of traffic flow specification rules for IPv6 and IPv6 VPN in order to mitigate distributed denial-of-service attacks. Flow specification provides protection against denial-of-service attacks and restricts bad traffic that consumes bandwidth and stops it near the source.
To propagate IPv6 flow specification routes through BGP,
enable family inet6 flow
or inet6-vpn flow
at
the [edit protocols bgp family]
hierarchy level on BGP
routers in the network.
Options
discard-action-for-unresolved-redir-addr |
Configure the discard action for BGP flow specification routes that were not resolved using the redirect to IP action. |
interface-group
group<exclude> |
Exclude applying flowspec filter to traffic received on specific interfaces. Use exclude to specify the interface group where you do not want to receive the traffic. |
per-route-accounting |
Enable traffic accounting per flowspec route. |
no-per-route-accounting |
Disable traffic accounting per flowspec route. |
destination ipv6-prefix |
IP destination address field. |
destination-port destination-port-names |
TCP or User Datagram Protocol (UDP)
destination port field. You cannot specify both the In place of the numeric value, you can specify one of the following
text synonyms (the port numbers are also listed): |
dscp value |
Differentiated Services code point (DSCP). The DiffServ protocol uses the type-of-service (ToS) byte in the IP header. The most significant six bits of this byte form the DSCP.
|
flow-label numeric-expression |
The value of this field ranges from 0 through 1048575. This match condition is supported only on Junos devices with
enhanced MPCs that are configured for |
fragment fragment-value |
The keywords are grouped by the fragment type with which they are associated:
This match condition is supported only on Junos devices with
enhanced MPCs that are configured for |
icmp6-code icmp6-code-value |
ICMP6 code field. This value or
keyword provides more specific information than In place of the numeric value, you can specify one of the following text synonyms (the field values are also listed). The keywords are grouped by the ICMP type with which they are associated:
|
icmp6-type icmp6-type-value |
ICMP6 packet type field. Normally,
you specify this match in conjunction with the In place of the numeric value, you can specify one of the following
text synonyms (the field values are also listed): |
packet-length packet-length |
Total IP packet length value can range from 0 through 65535. |
port port-names |
TCP or UDP source or destination port
field. You cannot specify both the In place of the numeric value, you can specify one of the text
synonyms listed under |
prefix-offset number | (Optional) Specify the number of bits that must be skipped before Junos OS starts matching the prefix. This match condition is supported only on Junos devices with
enhanced MPCs that are configured for |
protocol number |
For IPv6, the IP protocol field is supported
only on Junos devices with MPCs that are configured for |
source ipv6-prefix |
IP source address field. |
source-port source-port-names |
TCP or UDP source port field. You
cannot specify the In place of the numeric field, you can specify one of the text
synonyms listed under |
tcp-flags tcp-flags |
TCP header format. |
no-install |
Prohibit installing received routes in the forwarding table. |
accept |
Accept a packet. This is the default value. |
community name |
Replace any communities in the route with the specified communities. |
discard |
Discard a packet silently, without sending an Internet Control Message Protocol (ICMP) message. |
mark value |
Set a DSCP value for traffic that matches this flow. Specify a value from 0 through 63. This action is supported only on Junos devices with MPCs that
are configured for Note:
Junos OS supports traffic marking extended BGP |
redirect |
Redirect (tunnel) this flow's traffic to given next-hop address. |
next-term |
Continue to the next match condition for evaluation. |
rate-limit rate-limit |
Limit the bandwidth on the flow route. Express the limit in bits per second (bps). |
routing-instance route-target-extended-community |
Specify a routing instance to which packets are forwarded. |
sample |
Sample the traffic on the flow route. |
traceoptions |
Define tracing operations that track all routing protocol functionality in the routing device. |
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 16.1.