Configuring Policy To Prepend The As Path - Juniper J2300 User Manual

J-series services router
Hide thumbs Also See for J2300:
Table of Contents

Advertisement

Table 148: Creating a Policy to Group Source and Destination Prefixes in a Forwarding Class
Task
Navigate to the Term level in the
configuration hierarchy.
Specify the routes to include in the
route filter.
Group the source and destination
prefixes.
Navigate to the Forwarding table level
in the configuration hierarchy.
Apply the policy to the forwarding table.

Configuring Policy to Prepend the AS Path

You can prepend or add one or more autonomous system (AS) numbers at the
beginning of an AS path. The AS numbers are added after the local AS number
has been added to the path. Prepending an AS path makes a shorter AS path look
longer and therefore less preferable to the Border Gateway Protocol (BGP).
J-Web Configuration Editor
In the J-Web configuration editor
hierarchy, select Policy options>Policy
statement>Term.
1.
In the From option, click Configure.
2.
In the Route filter box, click Add
new entry.
3.
In the Value box, enter the source
and destination prefixes.
4.
Click OK.
1.
In the configuration
editor hierarchy, select
Policy options>Policy
statement>Term.
2.
In the Then option, click Configure.
3.
In the Forwarding class box, enter
the forwarding class name.
4.
Click OK.
In the J-Web configuration
editor hierarchy, select Routing
options>Forwarding table.
1.
In the Export box, click Add new
entry.
2.
In the Value box, enter the name
of the policy.
3.
Click OK.
The routing policy is evaluated when
routes are being exported from the
routing table into the forwarding table.
Only active routes are exported from
the routing table.
Configuring a Routing Policy with a Configuration Editor
Configuring Routing Policies
CLI Configuration Editor
From the top of the CLI configuration
hierarchy, enter
edit policy-options policy-statement
policy1 term term1
1.
Specify source routes
10.210.0.0/16 or longer:
set from route-filter
10.210.0.0/16 orlonger
2.
Specify destination routes
10.215.0.0/16 or longer:
set from route-filter
10.215.0.0/16 orlonger
Specify the forwarding class name:
set then forwarding class
forwarding-class-name1
From the top of the CLI configuration
hierarchy, enter
edit routing-options forwarding-table
Specify source routes 10.210.0.0/16
or longer:
set export policy1
You can refer to the same routing policy
one or more times in the same or a
different export statement.
383

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

J2350J2320J4300J6300J6350J4350

Table of Contents