Navigate to the Policy statement level
in the configuration hierarchy.
|
- In the J-Web interface, select Configure>CLI
Tools>Point and Click CLI.
- Next to Policy options, click Configure or Edit.
- Next to Policy statement, click Add new entry.
|
From the [edit] hierarchy level, enter
edit policy-options policy-statement
|
Create a prepend policy and term—for example, prependpolicy1 and prependterm1.
|
- In the Policy name box, type prependpolicy1.
- Next to Term, click Add new entry.
- In the Term name box, type prependterm1.
|
Enter
set prependpolicy1 term prependterm1
|
Specify the routes to prepend AS numbers to. For example:
- Routes greater than or equal to 172.16.0.0/12
- Routes greater than or equal to 192.168.0.0/16
- Routes greater than or equal to 10.0.0.0/8
|
- Next to From, click Configure.
- Next to Route filter, click Add
new entry.
- In the Value box, type 172.16.0.0/12.
- From the Modifier list, select Orlonger.
- Click OK.
|
Specify the first routes to prepend:
set from route-filter 172.16.0.0/12 orlonger
|
- Next to From, click Configure.
- Next to Route filter, click Add
new entry.
- In the Value box, type 192.168.0.0/16.
- From the Modifier list, select Orlonger.
- Click OK.
|
Specify the next routes to prepend:
set from route-filter 192.168.0.0/16 orlonger
|
- Next to From, click Configure.
- Next to Route filter, click Add
new entry.
- In the Value box, type 10.0.0.0/8.
- From the Modifier list, select Orlonger.
- Click OK until you return
to the Term page.
|
Specify the last routes to prepend:
set from route-filter 10.0.0.0/8 orlonger
|
Specify the AS numbers to prepend. Separate each AS number with
a space—for example, 1 1 1 1.
|
- Next to Then, click Configure.
- In the AS path prepend box, type 1 1 1 1.
- Click OK.
|
Specify the AS numbers to prepend, and enclose them inside double
quotation marks:
set then as-path-prepend “1 1 1 1”
|
Navigate to the Bgp level in the configuration
hierarchy.
|
- On the main Configuration page next to Protocols,
click Configure or Edit.
- Next to Bgp, click Configure or Edit.
|
From the [edit] hierarchy level, enter
edit protocols bgp
|
Apply the prependpolicy1 policy as an import policy
for all BGP routes.
The routing policy is evaluated when routes are being imported
to the routing table.
|
- Next to Import, click Add new
entry.
- In the Value box, type prependpolicy1.
- Click OK.
|
Apply the policy:
set import prependpolicy1
You can refer to the same routing policy one or more times in
the same or a different import statement.
|