Primary path is optional: zero or one primary path
Secondary paths are also optional, By default a secondary path become active when a primary or other secondary, physical path fails.
Secondary paths (Standby option): Eliminates LSP signaling delay when active path fails. Additional state information must be maintained.
In this lab,
Step 1. I will setup a primary and check traceroute.
Step 2. setup a secondary path and shutdown the physical path. So the secondary path should be up.
Step 3. active interface.
Step 4. Setup a secondary standby path and do interface down and check.
For VMware setting:
1. Setting interface IP address:
set logical-systems R1 interfaces ge-0/0/1 unit 12 description TO_R2
set logical-systems R1 interfaces ge-0/0/1 unit 12 vlan-id 12
set logical-systems R1 interfaces ge-0/0/1 unit 12 family inet address 10.10.12.1/24
set logical-systems R1 interfaces ge-0/0/2 unit 13 description TO_R3
set logical-systems R1 interfaces ge-0/0/2 unit 13 vlan-id 13
set logical-systems R1 interfaces ge-0/0/2 unit 13 family inet address 10.10.13.1/24
set logical-systems R1 interfaces lo0 unit 1 family inet address 10.200.1.1/32
set logical-systems R2 interfaces ge-0/0/1 unit 23 description TO_R3
set logical-systems R2 interfaces ge-0/0/1 unit 23 vlan-id 23
set logical-systems R2 interfaces ge-0/0/1 unit 23 family inet address 10.10.23.2/24
set logical-systems R2 interfaces ge-0/0/2 unit 12 description TO_R1
set logical-systems R2 interfaces ge-0/0/2 unit 12 vlan-id 12
set logical-systems R2 interfaces ge-0/0/2 unit 12 family inet address 10.10.12.2/24
set logical-systems R2 interfaces ge-0/0/3 unit 24 description TO_R4
set logical-systems R2 interfaces ge-0/0/3 unit 24 vlan-id 24
set logical-systems R2 interfaces ge-0/0/3 unit 24 family inet address 10.10.24.2/24
set logical-systems R2 interfaces lo0 unit 2 family inet address 10.200.1.2/32
set logical-systems R3 interfaces ge-0/0/1 unit 13 description TO_R1
set logical-systems R3 interfaces ge-0/0/1 unit 13 vlan-id 13
set logical-systems R3 interfaces ge-0/0/1 unit 13 family inet address 10.10.13.3/24
set logical-systems R3 interfaces ge-0/0/2 unit 23 description TO_R2
set logical-systems R3 interfaces ge-0/0/2 unit 23 vlan-id 23
set logical-systems R3 interfaces ge-0/0/2 unit 23 family inet address 10.10.23.3/24
set logical-systems R3 interfaces ge-0/0/3 unit 34 description TO_R4
set logical-systems R3 interfaces ge-0/0/3 unit 34 vlan-id 34
set logical-systems R3 interfaces ge-0/0/3 unit 34 family inet address 10.10.34.3/24
set logical-systems R3 interfaces lo0 unit 3 family inet address 10.200.1.3/32
set logical-systems R4 interfaces ge-0/0/1 unit 24 description TO_R2
set logical-systems R4 interfaces ge-0/0/1 unit 24 vlan-id 24
set logical-systems R4 interfaces ge-0/0/1 unit 24 family inet address 10.10.24.4/24
set logical-systems R4 interfaces ge-0/0/2 unit 34 description TO_R3
set logical-systems R4 interfaces ge-0/0/2 unit 34 vlan-id 34
set logical-systems R4 interfaces ge-0/0/2 unit 34 family inet address 10.10.34.4/24
set logical-systems R4 interfaces lo0 unit 4 family inet address 10.200.1.4/32
set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/2 vlan-tagging
set interfaces ge-0/0/3 vlan-tagging
2. IS-IS setting:
set groups INTERFACE logical-systems
set logical-systems R1 interfaces apply-groups INTERFACE
set logical-systems R1 interfaces lo0 unit 1 family iso address 49.0001.0000.0001.00
set logical-systems R1 protocols isis level 1 disable
set logical-systems R1 protocols isis interface all
set logical-systems R2 interfaces apply-groups INTERFACE
set logical-systems R2 interfaces lo0 unit 2 family iso address 49.0002.0000.0002.00
set logical-systems R2 protocols isis level 1 disable
set logical-systems R2 protocols isis interface all
set logical-systems R3 interfaces apply-groups INTERFACE
set logical-systems R3 interfaces lo0 unit 3 family iso address 49.0003.0000.0003.00
set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface all
set logical-systems R4 interfaces apply-groups INTERFACE
set logical-systems R4 interfaces lo0 unit 4 family iso address 49.0004.0000.0004.00
set logical-systems R4 protocols isis level 1 disable
set logical-systems R4 protocols isis interface all
Check:
[edit]
lab@vMX-1# run show isis adjacency logical-system R2
Interface System L State Hold (secs) SNPA
ge-0/0/1.23 vMX-1-R3 2 Up 7 0:5:86:71:e2:2
ge-0/0/2.12 vMX-1-R1 2 Up 20 0:5:86:71:e2:1
ge-0/0/3.24 vMX-1-R4 2 Up 20 0:5:86:71:e2:1
[edit]
lab@vMX-1#
3. BGP Setting:
R1, R2 R3 R4 is iBGP peering and R2 is a RR.
In R1 and R4, I redistribute a static route into BGP.
So R1 will advertise a route (172.16.1.1) via BGP.
So R4 will advertise a route (172.16.1.4) via BGP.
set logical-systems R1 protocols bgp group TO_RR type internal
set logical-systems R1 protocols bgp group TO_RR local-address 10.200.1.1
set logical-systems R1 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R1 routing-options autonomous-system 65001
set logical-systems R2 protocols bgp group RR type internal
set logical-systems R2 protocols bgp group RR local-address 10.200.1.2
set logical-systems R2 protocols bgp group RR cluster 10.200.1.2
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.1s
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.3
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.4
set logical-systems R2 routing-options autonomous-system 65001
set logical-systems R3 protocols bgp group TO_RR type internal
set logical-systems R3 protocols bgp group TO_RR local-address 10.200.1.3
set logical-systems R3 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R3 routing-options autonomous-system 65001
set logical-systems R4 protocols bgp group TO_RR type internal
set logical-systems R4 protocols bgp group TO_RR local-address 10.200.1.4
set logical-systems R4 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R4 routing-options autonomous-system 65001
set logical-systems R1 routing-options static route 172.16.1.1/32 reject
set logical-systems R1 policy-options policy-statement BGP_OUT term 1 from protocol static
set logical-systems R1 policy-options policy-statement BGP_OUT term 1 then accept
set logical-systems R1 protocols bgp group TO_RR export BGP_OUT
set logical-systems R4 routing-options static route 172.16.1.4/32 reject
set logical-systems R4 policy-options policy-statement BGP_OUT term 1 from protocol static
set logical-systems R4 policy-options policy-statement BGP_OUT term 1 then accept
set logical-systems R4 protocols bgp group TO_RR export BGP_OUT
Check:
[edit]
lab@vMX-1# run show bgp summary logical-system R2
Groups: 1 Peers: 3 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
2 2 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.200.1.1 65001 4 4 0 2 6 1/1/1/0 0/0/0/0
10.200.1.3 65001 3 4 0 2 6 0/0/0/0 0/0/0/0
10.200.1.4 65001 4 3 0 3 6 1/1/1/0 0/0/0/0
[edit]
lab@vMX-1#
4. MPLS setting
set groups INTERFACE logical-systems
set logical-systems R1 interfaces apply-groups INTERFACE
set logical-systems R1 protocols mpls interface all
set logical-systems R2 interfaces apply-groups INTERFACE
set logical-systems R2 protocols mpls interface all
set logical-systems R3 interfaces apply-groups INTERFACE
set logical-systems R3 protocols mpls interface all
set logical-systems R4 interfaces apply-groups INTERFACE
set logical-systems R4 protocols mpls interface all
5. RSVP setting:
set logical-systems R1 protocols rsvp interface all
set logical-systems R2 protocols rsvp interface all
set logical-systems R3 protocols rsvp interface all
set logical-systems R4 protocols rsvp interface all
6. Setup a primary path.
It will from R1 to R4 via R3 and R2
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 to 10.200.1.4
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 primary PATH_R1_R3_R2_R4
set logical-systems R1 protocols mpls path PATH_R1_R3_R2_R4 10.10.13.3 strict
set logical-systems R1 protocols mpls path PATH_R1_R3_R2_R4 10.10.23.2 strict
set logical-systems R1 protocols mpls path PATH_R1_R3_R2_R4 10.10.24.4 strict
Check:
We will see this PATH_R1_R3_R2_R4 is primary and state is up.
[edit]
lab@vMX-1# run show mpls lsp ingress extensive logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
5 Sep 9 16:36:28.847 Selected as active path
4 Sep 9 16:36:28.846 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
3 Sep 9 16:36:28.844 Up
2 Sep 9 16:36:28.697 Originate Call
1 Sep 9 16:36:28.696 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
Created: Wed Sep 9 16:36:28 2015
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run traceroute 172.16.1.4 logical-system R1
traceroute to 172.16.1.4 (172.16.1.4), 30 hops max, 40 byte packets
1 10.10.13.3 (10.10.13.3) 10.417 ms 3.865 ms 2.386 ms
MPLS Label=299776 CoS=0 TTL=1 S=1
2 10.10.23.2 (10.10.23.2) 6.882 ms 6.970 ms 3.150 ms
MPLS Label=299776 CoS=0 TTL=1 S=1
3 10.10.24.4 (10.10.24.4) 11.086 ms !N 5.244 ms !N 6.422 ms !N
[edit]
lab@vMX-1#
7. Setup secondary.
In noromal state. this secondary path (PATH_R1_R2_R4) state is down.
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 secondary PATH_R1_R2_R4
set logical-systems R1 protocols mpls path PATH_R1_R2_R4 10.10.12.2 strict
set logical-systems R1 protocols mpls path PATH_R1_R2_R4 10.10.24.4 strict
Check:
[edit]
lab@vMX-1# run show mpls lsp ingress detail logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
8. Secondary path testing
deactivate logical-systems R2 interfaces ge-0/0/1 unit 23
Check:
When Primary path (PATH_R1_R3_R2_R4) is down, this secondary path (PATH_R1_R2_R4) will up and traffic will from R1 to R4 via R2.
[edit]
lab@vMX-1# run show mpls lsp logical-system R1
Ingress LSP: 1 sessions
To From State Rt P ActivePath LSPname
10.200.1.4 10.200.1.1 Up 0 PATH_R1_R2_R4 R1_TO_R4
Total 1 displayed, Up 1, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress detail logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R2_R4 (secondary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
Primary PATH_R1_R3_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
Will be enqueued for recomputation in 23 second(s).
13 Sep 9 16:46:41.251 CSPF failed: no route toward 10.10.13.3[5 times]
*Secondary PATH_R1_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.12.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.12.2 10.10.24.4
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress extensive logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R2_R4 (secondary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
Primary PATH_R1_R3_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
Will be enqueued for recomputation in 15 second(s).
13 Sep 9 16:46:41.251 CSPF failed: no route toward 10.10.13.3[5 times]
12 Sep 9 16:44:48.552 Clear Call: CSPF computation failed
11 Sep 9 16:44:48.552 CSPF: link down/deleted: 0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)->0.0.0.0(0.0.0.0:0)(vMX-1-R2.00/10.200.1.2)
10 Sep 9 16:44:48.545 Deselected as active
9 Sep 9 16:44:48.545 ResvTear received
8 Sep 9 16:44:48.545 10.10.13.1: Down
7 Sep 9 16:44:48.544 CSPF failed: no route toward 10.10.13.3
6 Sep 9 16:44:48.544 10.10.13.3: Session preempted
5 Sep 9 16:36:28.847 Selected as active path
4 Sep 9 16:36:28.846 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
3 Sep 9 16:36:28.844 Up
2 Sep 9 16:36:28.697 Originate Call
1 Sep 9 16:36:28.696 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
*Secondary PATH_R1_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.12.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.12.2 10.10.24.4
5 Sep 9 16:44:48.588 Selected as active path
4 Sep 9 16:44:48.576 Record Route: 10.10.12.2 10.10.24.4
3 Sep 9 16:44:48.576 Up
2 Sep 9 16:44:48.545 Originate Call
1 Sep 9 16:44:48.545 CSPF: computation result accepted 10.10.12.2 10.10.24.4
Created: Wed Sep 9 16:36:28 2015
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run traceroute 172.16.1.4 logical-system R1
traceroute to 172.16.1.4 (172.16.1.4), 30 hops max, 40 byte packets
1 10.10.12.2 (10.10.12.2) 3.566 ms 4.422 ms 4.892 ms
MPLS Label=299792 CoS=0 TTL=1 S=1
2 10.10.24.4 (10.10.24.4) 4.942 ms !N 6.702 ms !N 3.949 ms !N
[edit]
lab@vMX-1#
9. Recover
Recover interface and check traffic is go back primary path (PATH_R1_R3_R2_R4)
activate logical-systems R2 interfaces ge-0/0/1 unit 23
Check:
[edit]
lab@vMX-1# run show mpls lsp logical-system R1
Ingress LSP: 1 sessions
To From State Rt P ActivePath LSPname
10.200.1.4 10.200.1.1 Up 0 * PATH_R1_R3_R2_R4 R1_TO_R4
Total 1 displayed, Up 1, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress detail logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress extensive logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
18 Sep 9 16:50:11.953 Selected as active path: due to 'primary'
17 Sep 9 16:49:10.065 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
16 Sep 9 16:49:10.065 Up
15 Sep 9 16:49:09.952 Originate Call
14 Sep 9 16:49:09.952 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
13 Sep 9 16:48:40.143 CSPF failed: no route toward 10.10.13.3[9 times]
12 Sep 9 16:44:48.552 Clear Call: CSPF computation failed
11 Sep 9 16:44:48.552 CSPF: link down/deleted: 0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)->0.0.0.0(0.0.0.0:0)(vMX-1-R2.00/10.200.1.2)
10 Sep 9 16:44:48.545 Deselected as active
9 Sep 9 16:44:48.545 ResvTear received
8 Sep 9 16:44:48.545 10.10.13.1: Down
7 Sep 9 16:44:48.544 CSPF failed: no route toward 10.10.13.3
6 Sep 9 16:44:48.544 10.10.13.3: Session preempted
5 Sep 9 16:36:28.847 Selected as active path
4 Sep 9 16:36:28.846 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
3 Sep 9 16:36:28.844 Up
2 Sep 9 16:36:28.697 Originate Call
1 Sep 9 16:36:28.696 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
6 Sep 9 16:50:11.953 Deselected as active: due to 'primary'
5 Sep 9 16:44:48.588 Selected as active path
4 Sep 9 16:44:48.576 Record Route: 10.10.12.2 10.10.24.4
3 Sep 9 16:44:48.576 Up
2 Sep 9 16:44:48.545 Originate Call
1 Sep 9 16:44:48.545 CSPF: computation result accepted 10.10.12.2 10.10.24.4
Created: Wed Sep 9 16:36:28 2015
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run traceroute 172.16.1.4 logical-system R1
traceroute to 172.16.1.4 (172.16.1.4), 30 hops max, 40 byte packets
1 10.10.13.3 (10.10.13.3) 3.574 ms 3.574 ms 5.363 ms
MPLS Label=299792 CoS=0 TTL=1 S=1
2 10.10.23.2 (10.10.23.2) 4.921 ms 7.320 ms 4.308 ms
MPLS Label=299808 CoS=0 TTL=1 S=1
3 10.10.24.4 (10.10.24.4) 6.479 ms !N 9.513 ms !N 4.288 ms !N
[edit]
lab@vMX-1#
10. Setup another secondary path with standby option
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 secondary PATH_R1_R3_R4 standby
set logical-systems R1 protocols mpls path PATH_R1_R3_R4 10.10.13.3 strict
set logical-systems R1 protocols mpls path PATH_R1_R3_R4 10.10.34.4 strict
Check:
When setup secondary paht with standby option. This secodnary path state will be up, even primary path is up.
[edit]
lab@vMX-1# run show mpls lsp logical-system R1
Ingress LSP: 1 sessions
To From State Rt P ActivePath LSPname
10.200.1.4 10.200.1.1 Up 0 * PATH_R1_R3_R2_R4 R1_TO_R4
Total 1 displayed, Up 1, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress detail logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
Standby PATH_R1_R3_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.13.3 S 10.10.34.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.34.4
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress extensive logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
18 Sep 9 16:50:11.953 Selected as active path: due to 'primary'
17 Sep 9 16:49:10.065 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
16 Sep 9 16:49:10.065 Up
15 Sep 9 16:49:09.952 Originate Call
14 Sep 9 16:49:09.952 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
13 Sep 9 16:48:40.143 CSPF failed: no route toward 10.10.13.3[9 times]
12 Sep 9 16:44:48.552 Clear Call: CSPF computation failed
11 Sep 9 16:44:48.552 CSPF: link down/deleted: 0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)->0.0.0.0(0.0.0.0:0)(vMX-1-R2.00/10.200.1.2)
10 Sep 9 16:44:48.545 Deselected as active
9 Sep 9 16:44:48.545 ResvTear received
8 Sep 9 16:44:48.545 10.10.13.1: Down
7 Sep 9 16:44:48.544 CSPF failed: no route toward 10.10.13.3
6 Sep 9 16:44:48.544 10.10.13.3: Session preempted
5 Sep 9 16:36:28.847 Selected as active path
4 Sep 9 16:36:28.846 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
3 Sep 9 16:36:28.844 Up
2 Sep 9 16:36:28.697 Originate Call
1 Sep 9 16:36:28.696 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
6 Sep 9 16:50:11.953 Deselected as active: due to 'primary'
5 Sep 9 16:44:48.588 Selected as active path
4 Sep 9 16:44:48.576 Record Route: 10.10.12.2 10.10.24.4
3 Sep 9 16:44:48.576 Up
2 Sep 9 16:44:48.545 Originate Call
1 Sep 9 16:44:48.545 CSPF: computation result accepted 10.10.12.2 10.10.24.4
Standby PATH_R1_R3_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.13.3 S 10.10.34.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.34.4
4 Sep 9 16:58:49.711 Record Route: 10.10.13.3 10.10.34.4
3 Sep 9 16:58:49.710 Up
2 Sep 9 16:58:49.614 Originate Call
1 Sep 9 16:58:49.614 CSPF: computation result accepted 10.10.13.3 10.10.34.4
Created: Wed Sep 9 16:36:28 2015
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
11. Standby secondary path (PATH_R1_R3_R4) testing
Shutdown interface.
deactivate logical-systems R2 interfaces ge-0/0/1 unit 23
Check:
When we shutdown interface, standby secondary path (PATH_R1_R3_R4) will take traffic immediately.
[edit]
lab@vMX-1# run show mpls lsp logical-system R1
Ingress LSP: 1 sessions
To From State Rt P ActivePath LSPname
10.200.1.4 10.200.1.1 Up 0 PATH_R1_R3_R4 R1_TO_R4
Total 1 displayed, Up 1, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress detail logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R4 (secondary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
Primary PATH_R1_R3_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
Will be enqueued for recomputation in 14 second(s).
28 Sep 9 17:01:47.817 CSPF failed: no route toward 10.10.13.3
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
*Standby PATH_R1_R3_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.13.3 S 10.10.34.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.34.4
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress extensive logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R4 (secondary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
Primary PATH_R1_R3_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
Will be enqueued for recomputation in 2 second(s).
28 Sep 9 17:01:47.817 CSPF failed: no route toward 10.10.13.3
27 Sep 9 17:01:47.817 Clear Call: CSPF computation failed
26 Sep 9 17:01:47.817 CSPF: link down/deleted: 10.10.23.3(10.200.1.3:356)(vMX-1-R3.00/10.200.1.3)->0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)
25 Sep 9 17:01:47.796 ResvTear received
24 Sep 9 17:01:47.796 10.10.13.1: Down
23 Sep 9 17:01:47.795 CSPF failed: no route toward 10.10.13.3
22 Sep 9 17:01:47.795 Deselected as active
21 Sep 9 17:01:47.795 10.10.13.3: Session preempted
20 Sep 9 17:01:47.793 CSPF failed: no route toward 10.10.13.3
19 Sep 9 17:01:47.793 CSPF: link down/deleted: 0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)->0.0.0.0(10.200.1.2:0)(vMX-1-R2.00/10.200.1.2)
18 Sep 9 16:50:11.953 Selected as active path: due to 'primary'
17 Sep 9 16:49:10.065 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
16 Sep 9 16:49:10.065 Up
15 Sep 9 16:49:09.952 Originate Call
14 Sep 9 16:49:09.952 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
13 Sep 9 16:48:40.143 CSPF failed: no route toward 10.10.13.3[9 times]
12 Sep 9 16:44:48.552 Clear Call: CSPF computation failed
11 Sep 9 16:44:48.552 CSPF: link down/deleted: 0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)->0.0.0.0(0.0.0.0:0)(vMX-1-R2.00/10.200.1.2)
10 Sep 9 16:44:48.545 Deselected as active
9 Sep 9 16:44:48.545 ResvTear received
8 Sep 9 16:44:48.545 10.10.13.1: Down
7 Sep 9 16:44:48.544 CSPF failed: no route toward 10.10.13.3
6 Sep 9 16:44:48.544 10.10.13.3: Session preempted
5 Sep 9 16:36:28.847 Selected as active path
4 Sep 9 16:36:28.846 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
3 Sep 9 16:36:28.844 Up
2 Sep 9 16:36:28.697 Originate Call
1 Sep 9 16:36:28.696 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
6 Sep 9 16:50:11.953 Deselected as active: due to 'primary'
5 Sep 9 16:44:48.588 Selected as active path
4 Sep 9 16:44:48.576 Record Route: 10.10.12.2 10.10.24.4
3 Sep 9 16:44:48.576 Up
2 Sep 9 16:44:48.545 Originate Call
1 Sep 9 16:44:48.545 CSPF: computation result accepted 10.10.12.2 10.10.24.4
*Standby PATH_R1_R3_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.13.3 S 10.10.34.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.34.4
5 Sep 9 17:01:47.795 Selected as active path
4 Sep 9 16:58:49.711 Record Route: 10.10.13.3 10.10.34.4
3 Sep 9 16:58:49.710 Up
2 Sep 9 16:58:49.614 Originate Call
1 Sep 9 16:58:49.614 CSPF: computation result accepted 10.10.13.3 10.10.34.4
Created: Wed Sep 9 16:36:28 2015
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run traceroute 172.16.1.4 logical-system R1
traceroute to 172.16.1.4 (172.16.1.4), 30 hops max, 40 byte packets
1 10.10.13.3 (10.10.13.3) 3.964 ms 4.155 ms 3.517 ms
MPLS Label=299808 CoS=0 TTL=1 S=1
2 10.10.34.4 (10.10.34.4) 7.658 ms !N 5.970 ms !N 6.425 ms !N
[edit]
lab@vMX-1#
12. Recover
Recover interface and check traffic is go back primary path (PATH_R1_R3_R2_R4)
activate logical-systems R2 interfaces ge-0/0/1 unit 23
Check:
[edit]
lab@vMX-1# run show mpls lsp logical-system R1
Ingress LSP: 1 sessions
To From State Rt P ActivePath LSPname
10.200.1.4 10.200.1.1 Up 0 * PATH_R1_R3_R2_R4 R1_TO_R4
Total 1 displayed, Up 1, Down 0
Egress LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress detail logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
Standby PATH_R1_R3_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.13.3 S 10.10.34.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.34.4
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run show mpls lsp ingress extensive logical-system R1
Ingress LSP: 1 sessions
10.200.1.4
From: 10.200.1.1, State: Up, ActiveRoute: 0, LSPname: R1_TO_R4
ActivePath: PATH_R1_R3_R2_R4 (primary)
LSPtype: Static Configured, Penultimate hop popping
LoadBalance: Random
Encoding type: Packet, Switching type: Packet, GPID: IPv4
*Primary PATH_R1_R3_R2_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 30)
10.10.13.3 S 10.10.23.2 S 10.10.24.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.23.2 10.10.24.4
33 Sep 9 17:06:42.981 Selected as active path: due to 'primary'
32 Sep 9 17:05:41.490 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
31 Sep 9 17:05:41.490 Up
30 Sep 9 17:05:41.370 Originate Call
29 Sep 9 17:05:41.369 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
28 Sep 9 17:05:12.184 CSPF failed: no route toward 10.10.13.3[8 times]
27 Sep 9 17:01:47.817 Clear Call: CSPF computation failed
26 Sep 9 17:01:47.817 CSPF: link down/deleted: 10.10.23.3(10.200.1.3:356)(vMX-1-R3.00/10.200.1.3)->0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)
25 Sep 9 17:01:47.796 ResvTear received
24 Sep 9 17:01:47.796 10.10.13.1: Down
23 Sep 9 17:01:47.795 CSPF failed: no route toward 10.10.13.3
22 Sep 9 17:01:47.795 Deselected as active
21 Sep 9 17:01:47.795 10.10.13.3: Session preempted
20 Sep 9 17:01:47.793 CSPF failed: no route toward 10.10.13.3
19 Sep 9 17:01:47.793 CSPF: link down/deleted: 0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)->0.0.0.0(10.200.1.2:0)(vMX-1-R2.00/10.200.1.2)
18 Sep 9 16:50:11.953 Selected as active path: due to 'primary'
17 Sep 9 16:49:10.065 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
16 Sep 9 16:49:10.065 Up
15 Sep 9 16:49:09.952 Originate Call
14 Sep 9 16:49:09.952 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
13 Sep 9 16:48:40.143 CSPF failed: no route toward 10.10.13.3[9 times]
12 Sep 9 16:44:48.552 Clear Call: CSPF computation failed
11 Sep 9 16:44:48.552 CSPF: link down/deleted: 0.0.0.0(0.0.0.0:0)(vMX-1-R3.03/0.0.0.0)->0.0.0.0(0.0.0.0:0)(vMX-1-R2.00/10.200.1.2)
10 Sep 9 16:44:48.545 Deselected as active
9 Sep 9 16:44:48.545 ResvTear received
8 Sep 9 16:44:48.545 10.10.13.1: Down
7 Sep 9 16:44:48.544 CSPF failed: no route toward 10.10.13.3
6 Sep 9 16:44:48.544 10.10.13.3: Session preempted
5 Sep 9 16:36:28.847 Selected as active path
4 Sep 9 16:36:28.846 Record Route: 10.10.13.3 10.10.23.2 10.10.24.4
3 Sep 9 16:36:28.844 Up
2 Sep 9 16:36:28.697 Originate Call
1 Sep 9 16:36:28.696 CSPF: computation result accepted 10.10.13.3 10.10.23.2 10.10.24.4
Secondary PATH_R1_R2_R4 State: Dn
Priorities: 7 0
SmartOptimizeTimer: 180
No computed ERO.
7 Sep 9 16:51:40.528 Clear Call
6 Sep 9 16:50:11.953 Deselected as active: due to 'primary'
5 Sep 9 16:44:48.588 Selected as active path
4 Sep 9 16:44:48.576 Record Route: 10.10.12.2 10.10.24.4
3 Sep 9 16:44:48.576 Up
2 Sep 9 16:44:48.545 Originate Call
1 Sep 9 16:44:48.545 CSPF: computation result accepted 10.10.12.2 10.10.24.4
Standby PATH_R1_R3_R4 State: Up
Priorities: 7 0
SmartOptimizeTimer: 180
Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20)
10.10.13.3 S 10.10.34.4 S
Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID):
10.10.13.3 10.10.34.4
6 Sep 9 17:06:42.981 Deselected as active: due to 'primary'
5 Sep 9 17:01:47.795 Selected as active path
4 Sep 9 16:58:49.711 Record Route: 10.10.13.3 10.10.34.4
3 Sep 9 16:58:49.710 Up
2 Sep 9 16:58:49.614 Originate Call
1 Sep 9 16:58:49.614 CSPF: computation result accepted 10.10.13.3 10.10.34.4
Created: Wed Sep 9 16:36:27 2015
Total 1 displayed, Up 1, Down 0
[edit]
lab@vMX-1#
[edit]
lab@vMX-1# run traceroute 172.16.1.4 logical-system R1
traceroute to 172.16.1.4 (172.16.1.4), 30 hops max, 40 byte packets
1 10.10.13.3 (10.10.13.3) 17.022 ms 2.624 ms 2.434 ms
MPLS Label=299824 CoS=0 TTL=1 S=1
2 10.10.23.2 (10.10.23.2) 10.104 ms 4.364 ms 3.011 ms
MPLS Label=299824 CoS=0 TTL=1 S=1
3 10.10.24.4 (10.10.24.4) 12.579 ms !N 4.333 ms !N 12.235 ms !N
[edit]
lab@vMX-1#
Final configuration:
set groups INTERFACE logical-systems
set groups INTERFACE logical-systems
set logical-systems R1 interfaces apply-groups INTERFACE
set logical-systems R1 interfaces ge-0/0/1 unit 12 description TO_R2
set logical-systems R1 interfaces ge-0/0/1 unit 12 vlan-id 12
set logical-systems R1 interfaces ge-0/0/1 unit 12 family inet address 10.10.12.1/24
set logical-systems R1 interfaces ge-0/0/2 unit 13 description TO_R3
set logical-systems R1 interfaces ge-0/0/2 unit 13 vlan-id 13
set logical-systems R1 interfaces ge-0/0/2 unit 13 family inet address 10.10.13.1/24
set logical-systems R1 interfaces ge-0/0/3 apply-groups-except INTERFACE
set logical-systems R1 interfaces lo0 unit 1 family inet address 10.200.1.1/32
set logical-systems R1 interfaces lo0 unit 1 family iso address 49.0001.0000.0001.00
set logical-systems R1 protocols rsvp interface all
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 to 10.200.1.4
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 primary PATH_R1_R3_R2_R4
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 secondary PATH_R1_R2_R4
set logical-systems R1 protocols mpls label-switched-path R1_TO_R4 secondary PATH_R1_R3_R4 standby
set logical-systems R1 protocols mpls path PATH_R1_R3_R2_R4 10.10.13.3 strict
set logical-systems R1 protocols mpls path PATH_R1_R3_R2_R4 10.10.23.2 strict
set logical-systems R1 protocols mpls path PATH_R1_R3_R2_R4 10.10.24.4 strict
set logical-systems R1 protocols mpls path PATH_R1_R2_R4 10.10.12.2 strict
set logical-systems R1 protocols mpls path PATH_R1_R2_R4 10.10.24.4 strict
set logical-systems R1 protocols mpls path PATH_R1_R3_R4 10.10.13.3 strict
set logical-systems R1 protocols mpls path PATH_R1_R3_R4 10.10.34.4 strict
set logical-systems R1 protocols mpls interface all
set logical-systems R1 protocols bgp group TO_RR type internal
set logical-systems R1 protocols bgp group TO_RR local-address 10.200.1.1
set logical-systems R1 protocols bgp group TO_RR export BGP_OUT
set logical-systems R1 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R1 protocols isis level 1 disable
set logical-systems R1 protocols isis interface all
set logical-systems R1 policy-options policy-statement BGP_OUT term 1 from protocol static
set logical-systems R1 policy-options policy-statement BGP_OUT term 1 then accept
set logical-systems R1 routing-options static route 172.16.1.1/32 reject
set logical-systems R1 routing-options autonomous-system 65001
set logical-systems R2 interfaces apply-groups INTERFACE
set logical-systems R2 interfaces ge-0/0/1 unit 23 description TO_R3
set logical-systems R2 interfaces ge-0/0/1 unit 23 vlan-id 23
set logical-systems R2 interfaces ge-0/0/1 unit 23 family inet address 10.10.23.2/24
set logical-systems R2 interfaces ge-0/0/2 unit 12 description TO_R1
set logical-systems R2 interfaces ge-0/0/2 unit 12 vlan-id 12
set logical-systems R2 interfaces ge-0/0/2 unit 12 family inet address 10.10.12.2/24
set logical-systems R2 interfaces ge-0/0/3 unit 24 description TO_R4
set logical-systems R2 interfaces ge-0/0/3 unit 24 vlan-id 24
set logical-systems R2 interfaces ge-0/0/3 unit 24 family inet address 10.10.24.2/24
set logical-systems R2 interfaces lo0 unit 2 family inet address 10.200.1.2/32
set logical-systems R2 interfaces lo0 unit 2 family iso address 49.0002.0000.0002.00
set logical-systems R2 protocols rsvp interface all
set logical-systems R2 protocols mpls interface all
set logical-systems R2 protocols bgp group RR type internal
set logical-systems R2 protocols bgp group RR local-address 10.200.1.2
set logical-systems R2 protocols bgp group RR cluster 10.200.1.2
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.1
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.3
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.4
set logical-systems R2 protocols isis level 1 disable
set logical-systems R2 protocols isis interface all
set logical-systems R2 routing-options autonomous-system 65001
set logical-systems R3 interfaces apply-groups INTERFACE
set logical-systems R3 interfaces ge-0/0/1 unit 13 description TO_R1
set logical-systems R3 interfaces ge-0/0/1 unit 13 vlan-id 13
set logical-systems R3 interfaces ge-0/0/1 unit 13 family inet address 10.10.13.3/24
set logical-systems R3 interfaces ge-0/0/2 unit 23 description TO_R2
set logical-systems R3 interfaces ge-0/0/2 unit 23 vlan-id 23
set logical-systems R3 interfaces ge-0/0/2 unit 23 family inet address 10.10.23.3/24
set logical-systems R3 interfaces ge-0/0/3 unit 34 description TO_R4
set logical-systems R3 interfaces ge-0/0/3 unit 34 vlan-id 34
set logical-systems R3 interfaces ge-0/0/3 unit 34 family inet address 10.10.34.3/24
set logical-systems R3 interfaces lo0 unit 3 family inet address 10.200.1.3/32
set logical-systems R3 interfaces lo0 unit 3 family iso address 49.0003.0000.0003.00
set logical-systems R3 protocols rsvp interface all
set logical-systems R3 protocols mpls interface all
set logical-systems R3 protocols bgp group TO_RR type internal
set logical-systems R3 protocols bgp group TO_RR local-address 10.200.1.3
set logical-systems R3 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface all
set logical-systems R3 routing-options autonomous-system 65001
set logical-systems R4 interfaces apply-groups INTERFACE
set logical-systems R4 interfaces ge-0/0/1 unit 24 description TO_R2
set logical-systems R4 interfaces ge-0/0/1 unit 24 vlan-id 24
set logical-systems R4 interfaces ge-0/0/1 unit 24 family inet address 10.10.24.4/24
set logical-systems R4 interfaces ge-0/0/2 unit 34 description TO_R3
set logical-systems R4 interfaces ge-0/0/2 unit 34 vlan-id 34
set logical-systems R4 interfaces ge-0/0/2 unit 34 family inet address 10.10.34.4/24
set logical-systems R4 interfaces ge-0/0/3 apply-groups-except INTERFACE
set logical-systems R4 interfaces lo0 unit 4 family inet address 10.200.1.4/24
set logical-systems R4 interfaces lo0 unit 4 family iso address 49.0004.0000.0004.00
set logical-systems R4 protocols rsvp interface all
set logical-systems R4 protocols mpls interface all
set logical-systems R4 protocols bgp group TO_RR type internal
set logical-systems R4 protocols bgp group TO_RR local-address 10.200.1.4
set logical-systems R4 protocols bgp group TO_RR export BGP_OUT
set logical-systems R4 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R4 protocols isis level 1 disable
set logical-systems R4 protocols isis interface all
set logical-systems R4 policy-options policy-statement BGP_OUT term 1 from protocol static
set logical-systems R4 policy-options policy-statement BGP_OUT term 1 then accept
set logical-systems R4 routing-options static route 172.16.1.4/32 reject
set logical-systems R4 routing-options autonomous-system 65001
set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/2 vlan-tagging
set interfaces ge-0/0/3 vlan-tagging
[edit]
lab@vMX-1#
Reference:
Junos MPLS and VPNs (JMV) Student Guide (10.a) Chapter 5
最初發表 / 最後更新: 2015.09.09 / 2018.06.15
0 comments:
張貼留言