route-map

protocols route-map <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Route-map

Values:
  • txt – Route-map name

Instances:

Multiple

Required:

protocols route-map <txt> description <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE
Values:
  • txt – Description for this route-map

protocols route-map <txt> rule <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Rule for this route-map

Values:
  • u32 – Route-map rule number (1-65535)

Instances:

Multiple

Required:

protocols route-map <txt> rule <u32> action <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Action to take on prefixes matching this rule

Values:
  • permit – Permit matching prefixes

  • deny – Deny matching prefixes

protocols route-map <txt> rule <u32> advisor <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Advisor to enable or disable route-map

Reference:

system advisor <txt>

protocols route-map <txt> rule <u32> call <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Jump to another Route-Map after match+set

Reference:

protocols route-map <txt>

protocols route-map <txt> rule <u32> description <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE
Values:
  • txt – Description for this rule

protocols route-map <txt> rule <u32> match
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match values from routing table

protocols route-map <txt> rule <u32> match as-path <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match as-path access-list

Values:
  • u32 – Tag value (1-4294967295)

Reference:

protocols bgp <u32> as-path access-list <u32>

protocols route-map <txt> rule <u32> match community
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match BGP community list

Required:

protocols route-map <txt> rule <u32> match community exact-match
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Do exact matching of communities

protocols route-map <txt> rule <u32> match community list <id|u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP community list

Values:
  • u32 – Community-list number (standard) (1-99)

  • u32 – Community-list number (expanded) (100-500)

  • id – Community-list name

protocols route-map <txt> rule <u32> match interface <ifc>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE
Values:
  • ifc – Match first hop interface of route

protocols route-map <txt> rule <u32> match ip
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IP information

protocols route-map <txt> rule <u32> match ip address
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match address of route

protocols route-map <txt> rule <u32> match ip address prefix-len <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match prefix length of ip address

Values:
  • u32 – Prefix length (0-32)

protocols route-map <txt> rule <u32> match ip address prefix-list <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match entries of prefix-lists

Reference:

protocols ip prefix-list <txt>

protocols route-map <txt> rule <u32> match ip nexthop
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match next-hop address of route

protocols route-map <txt> rule <u32> match ip nexthop prefix-len <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match prefixlen of given nexthop

Values:
  • u32 – Prefix length (0-32)

protocols route-map <txt> rule <u32> match ip nexthop prefix-list <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IP prefix-list to match

Reference:

protocols ip prefix-list <txt>

protocols route-map <txt> rule <u32> match ip nexthop type
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match entries by type

protocols route-map <txt> rule <u32> match ip nexthop type blackhole
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Blackhole

protocols route-map <txt> rule <u32> match ip route-source
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match advertising source address of route

protocols route-map <txt> rule <u32> match ip route-source prefix-list <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match entries of prefix-lists

Reference:

protocols ip prefix-list <txt>

protocols route-map <txt> rule <u32> match ipv6
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IPv6 information

protocols route-map <txt> rule <u32> match ipv6 address
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match IPv6 address of route

protocols route-map <txt> rule <u32> match ipv6 address prefix-len <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match prefix length of ipv6 address

Values:
  • u32 – Prefix length (0-128)

protocols route-map <txt> rule <u32> match ipv6 address prefix-list <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match entries of prefix-lists6

Reference:

protocols ipv6 prefix-list <txt>

protocols route-map <txt> rule <u32> match ipv6 nexthop
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match IPv6 next-hop address of route

protocols route-map <txt> rule <u32> match ipv6 nexthop address <ipv6>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE
Values:
  • ipv6 – IPv6 address of next hop

protocols route-map <txt> rule <u32> match ipv6 nexthop type
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match entries by type

protocols route-map <txt> rule <u32> match ipv6 nexthop type blackhole
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Blackhole

protocols route-map <txt> rule <u32> match local-preference <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match local-preference of route

Values:
  • u32 – Metric value (0-4294967295)

protocols route-map <txt> rule <u32> match metric <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Metric of route to match

Values:
  • u32 – Metric value (1-4294967295)

protocols route-map <txt> rule <u32> match origin <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP origin code

Values:
  • egp – Exterior gateway protocol origin

  • igp – Interior gateway protocol origin

  • incomplete – Incomplete origin

protocols route-map <txt> rule <u32> match peer
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match peer address

protocols route-map <txt> rule <u32> match peer interface <ifc>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE
Values:
  • ifc – Interface name of peer

protocols route-map <txt> rule <u32> match peer ip-address <ipv4|ipv6>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE
Values:
  • ipv4 – Peer IPv4/IPv6 address

  • ipv6 – Peer IPv4/IPv6 address

protocols route-map <txt> rule <u32> match peer local
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Static or Redistributed routes

protocols route-map <txt> rule <u32> match source-instance <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match the protocol’s instance number

Values:
  • u32 – The instance number (0-255)

protocols route-map <txt> rule <u32> match source-protocol <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match protocol via which the route was learnt

Values:
  • bgp – BGP protocol

  • connected – Routes from directly connected peer

  • kernel – Routes from kernel

  • nhrp – NHRP protocol

  • ospf – OSPF protocol

  • ospf6 – OSPF6 protocol

  • rip – RIP protocol

  • ripng – RIPNG protocol

  • static – Statically configured routes

  • system – Routes from system configuration

protocols route-map <txt> rule <u32> match source-vrf <id>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match source vrf

Reference:

system vrf <id>

protocols route-map <txt> rule <u32> match tag <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match tag of route

Values:
  • u32 – Tag value (1-4294967295)

protocols route-map <txt> rule <u32> match vrf-as-path <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Match as-path access-list (using a VRF)

Values:
  • u32 – Tag value (1-4294967295)

Reference:

protocols vrf <id> bgp <u32> as-path access-list <u32>

protocols route-map <txt> rule <u32> on-match
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Exit policy on matches

protocols route-map <txt> rule <u32> on-match goto <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Goto rule number

Values:
  • u32 – Rule number (1-65535)

protocols route-map <txt> rule <u32> on-match next
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Goto the next rule number

protocols route-map <txt> rule <u32> set
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Route parameters

protocols route-map <txt> rule <u32> set aggregator
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP aggregator attribute

Required:

Required:

protocols route-map <txt> rule <u32> set aggregator as <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

AS number of aggregator

Values:
  • u32 – BGP AS number (1-4294967295)

protocols route-map <txt> rule <u32> set aggregator ip <ipv4>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IP address of aggregator

Values:
  • ipv4 – IP address

protocols route-map <txt> rule <u32> set as-path
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Transform BGP AS-path attribute

protocols route-map <txt> rule <u32> set as-path exclude <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Exclude from the as-path

Values:
  • u32 – AS number (1-4294967295)

Instances:

List of values

protocols route-map <txt> rule <u32> set as-path prepend <id>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE
Values:
  • id

    Prepend to the as-path

    The AS path format must be <1-4294967295>,<1-4294967295>,…

protocols route-map <txt> rule <u32> set atomic-aggregate
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP atomic aggregate attribute

protocols route-map <txt> rule <u32> set comm-list <u32|id>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

set BGP community list (for deletion)

Reference:

protocols community-list standard <u32|id>

Instances:

Multiple

Required:

protocols route-map <txt> rule <u32> set comm-list <u32|id> delete
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Delete matching communities

protocols route-map <txt> rule <u32> set community
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP community attribute

protocols route-map <txt> rule <u32> set community additive
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Enable communities addition

protocols route-map <txt> rule <u32> set community internet
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Symbolic Internet community 0

protocols route-map <txt> rule <u32> set community local-AS
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Advertise communities in local AS only (NO_EXPORT_SUBCONFED)

protocols route-map <txt> rule <u32> set community no-advertise
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Don’t advertise this route to any peer (NO_ADVERTISE)

protocols route-map <txt> rule <u32> set community no-export
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Don’t advertise outside of this AS of confederation boundry (NO_EXPORT)

protocols route-map <txt> rule <u32> set community none
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

No community attribute

protocols route-map <txt> rule <u32> set community value <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Community values

Values:
  • txt – Community value in AA:NN format (where AA and NN are (0-65535))

Instances:

Multiple

protocols route-map <txt> rule <u32> set distance <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP Administrative Distance to use

Values:
  • u32 – Distance value (0-255)

protocols route-map <txt> rule <u32> set forwarding-address <ipv6>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Forwarding Address

Values:
  • ipv6 – IPv6 Address

protocols route-map <txt> rule <u32> set ip
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IP information

protocols route-map <txt> rule <u32> set ip next-hop <id|ipv4>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Next hop address

Values:
  • ipv4 – IP address of next hop

  • peer-address – Use peer address (for BGP only)

  • unchanged – Don’t modify existing Next hop address

protocols route-map <txt> rule <u32> set ipv6
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IPv6 information

protocols route-map <txt> rule <u32> set ipv6 next-hop
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IPv6 next-hop address

protocols route-map <txt> rule <u32> set ipv6 next-hop global <ipv6>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IPv6 global address

Values:
  • ipv6 – IPv6 address of next hop

protocols route-map <txt> rule <u32> set ipv6 next-hop local <ipv6>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

IPv6 local address

Values:
  • ipv6 – IPv6 address of next hop

protocols route-map <txt> rule <u32> set ipv6 next-hop peer-address
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Use peer address (for BGP only)

protocols route-map <txt> rule <u32> set ipv6 next-hop prefer-global
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Prefer global over link-local if both exist

protocols route-map <txt> rule <u32> set local-preference <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP local preference path attribute

Values:
  • u32 – Local preference value (0-4294967295)

protocols route-map <txt> rule <u32> set metric <id>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Metric value for destination routing protocol

Values:
  • int – Metric value or increment [+-](-4294967295,4294967295)

  • +rtt – Add round trip time

  • -rtt – Subtract round trip time

  • rtt – Assign round trip time

protocols route-map <txt> rule <u32> set metric-type <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

OSPFv3 external metric-type

Values:
  • type-1 – OSPFv6 external type 1 metric

  • type-2 – OSPFv6 external type 2 metric

protocols route-map <txt> rule <u32> set origin <txt>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP origin code

Values:
  • igp – Interior gateway protocol origin

  • egp – Exterior gateway protocol origin

  • incomplete – Incomplete origin

protocols route-map <txt> rule <u32> set originator-id <ipv4>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP originator ID attribute

Values:
  • ipv4 – IP address of originator

protocols route-map <txt> rule <u32> set src <ipv4|ipv6>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Source address for route

Values:
  • ipv4 – IPv4 source address

  • ipv6 – IPv6 source address

Local IP address:

protocols route-map <txt> rule <u32> set table <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Export route to non-main kernel table

Values:
  • u32 – Kernel routing table id (1-4294967295)

protocols route-map <txt> rule <u32> set tag <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

Tag value for routing protocol

Values:
  • u32 – Tag value (1-4294967295)

protocols route-map <txt> rule <u32> set weight <u32>
AresC640 Atlas840 M10-Smart M2 RS420 RXL15000 SDE

BGP weight for routing table

Values:
  • u32 – Weight value (0-4294967295)