home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

policy route pbr <name> rule <rule-number> icmpv6 <icmpv6>

Creates a routing policy rule to match Internet Control Message Protocol (ICMP) IPv6 packets.

set policy route pbr name rule rule-number icmpv6 { type type-number [ code code-number ] | name name }
delete policy route pbr name rule rule-number icmpv6 [ type [ number code ] | name ]
show policy route pbr name rule rule-number icmpv6 [ type [ number code ] | name ]

The rule is enabled.

name
Name of a PBR group. The PBR group must be unique and must not be used with other PBR policy commands.
rule-number

The numeric identifier of the rule. Rule numbers determine the order in which rules are executed. Each rule must have a unique rule number. The numbers range from 1 through 9999.

You can define multiple rules by creating more than one rule configuration node.

icmpv6
The ICMPv6 packet that matches the routing policy rule. The ICMPv6 packet identifiers are type, code, and name.
type-number
An IPv6 ICMP type number. Values range from 0 through 255.
code-number
An IPv6 ICMP code number. Values range from 0 through 255.
name

Specifies matching for ICMPv6 type names. The default name is any.

Configuration mode


policy {
    route {
        pbr name {
            rule rule-number {
                icmpv6 {
                    type type-number {
                        code code-number
                    }
                    name name
                }
            }
        }
    }
}

You must specify the address-family, action, and table leaf nodes to configure a routing policy. It is recommended to use the delete policy route pbr name rule number command to delete a routing policy.

Note: As ICMP is an IPv4 protocol and ICMPv6 is an IPv6 protocol, configuring a routing policy rule to match ICMPv6 packets when address-family ipv4 is configured or vice versa are unlikely to be useful and probably will not behave as you are expecting it to behave.

You can specify an ICMPv6 type code by type; for example, 128 (echo-request), or by a type and code pair; for example, type 1 and code 4 (port-unreachable). Alternatively, you can specify the ICMPv6 type code explicitly by using the name name parameter; for example, name echo-request.

For a list of ICMPv6 codes and types, refer to ICMPv6 Types.

Use the set form of this command to create a rule to match ICMPv6 packets.

Use the delete form of this command to delete a rule that matches ICMPv6 packets.

Use the show form of this command to view a rule that matches ICMPv6 packets.