Option: Applying Traffic Engineering to a Layer 2 Circuit
To traffic engineer Layer 2 circuits over multiple LSPs, you must create a community, assign a set of Layer 2 circuits to that community, define a policy to send the community traffic over a desired LSP, and apply the policy to the forwarding table.
To create a community, include the community
community-name
statement at the [edit policy-options]
hierarchy level. To assign a Layer 2
circuit to a community, include the community community-name
statement at the [edit protocols l2circuit neighbor ip-address interface interface-name]
hierarchy level. To create a policy that sends community
traffic over a specific LSP, include the community community-name
statement at the [edit policy-options
policy-statement policy-name term term-name from]
hierarchy level and the install-next-hop lsp lsp-name
statement at the [edit policy-options
policy-statement policy-name term term-name then]
hierarchy level. To apply the policy to the forwarding
table, include the export
policy-name
statement at the [edit routing-options forwarding-table]
hierarchy level.
[edit] routing-options { forwarding-table { exportpolicy-name
; } } protocols { l2circuit { neighborip-address
{ interfaceinterface-name
{ virtual-circuit-ididentifier
; communitycommunity-name
; } } } } policy-options { policy-statementpolicy-name
{ from communitycommunity-name
; then { install-nexthop lsplsp-name
; accept; } } } communitycommunity-name
membersvalue
;