1. Juniper MPLS Best Practice Part 1 Static LSP Configuration and understanding mpls.0 table Febrian Setiadi - 860063
2.
3. Lab Topology Loopbacks Jakarta : 192.168.8.1 Bandung : 192.168.12.1 Semarang : 192.168.16.1 Surabaya : 192.168.36.1 Denpasar : 192.168.40.1 Makasar : 192.168.44.1
4.
5.
6. LSP Configuration Jakarta performs label imposition (PUSH) , this label should be received by Semarang jkt@Lab:Jakarta> show configuration protocols mpls static-path inet { 192.168.44.1/32 { next-hop 10.0.11.1; push 1000001; } } interface all;
7. LSP Configuration Semarang performs label swapping 1000001 with 1000002 smg@Lab:Semarang> show configuration protocols mpls interface all; interface em1.11 { label-map 1000001 { next-hop 10.0.0.2; swap 1000002; } } smg@Lab:Semarang> show route table mpls.0 mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0 *[MPLS/0] 01:51:53, metric 1 Receive 1 *[MPLS/0] 01:51:53, metric 1 Receive 2 *[MPLS/0] 01:51:53, metric 1 Receive 1000001 *[Static/5] 01:51:53 > to 10.0.0.2 via em1.0, Swap 1000002 What’s on mpls.0 table
8. LSP Configuration Surabaya performs label swapping 100002 with 100003 sby@Lab:Surabaya> show configuration protocols mpls interface all; interface em2.0 { label-map 1000002 { next-hop 10.0.4.2; swap 1000003; } } sby@Lab:Surabaya> show route table mpls.0 mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0 *[MPLS/0] 02:07:58, metric 1 Receive 1 *[MPLS/0] 02:07:58, metric 1 Receive 2 *[MPLS/0] 02:07:58, metric 1 Receive 1000002 *[Static/5] 01:56:46 > to 10.0.4.2 via em1.4, Swap 1000003 What’s on mpls.0 table
9. LSP Configuration Denpasar performs label swapping 1000003 with 0 Penultimate Hop Popping dps@Lab:Denpasar> show configuration protocols mpls interface all; interface em1.60 { label-map 1000003 { next-hop 10.0.60.2; swap 0; } } dps@Lab:Denpasar> show route table mp mpls.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0 *[MPLS/0] 02:19:06, metric 1 Receive 1 *[MPLS/0] 02:19:06, metric 1 Receive 2 *[MPLS/0] 02:19:06, metric 1 Receive 1000003 *[Static/5] 02:04:06 > to 10.0.60.2 via em1.60, Swap 0 1000003(S=0) *[Static/5] 02:04:06 > to 10.0.60.2 via em1.60, Pop What’s on mpls.0 table
10.
11.
12.
13.
14.
15. Appendix – Complete Configuration jkt@Lab:Jakarta> show configuration interfaces { em1 { unit 80 { vlan-id 80; family inet { address 10.0.80.1/30; } family mpls; } } em2 { unit 11 { vlan-id 11; family inet { address 10.0.11.2/30; } family mpls; } } lo0 { unit 8 { family inet { address 192.168.8.1/32; } } } } protocols { mpls { static-path inet { 192.168.44.1/32 { next-hop 10.0.11.1; push 1000001; } } interface all; } ospf { area 0.0.0.0 { interface all; } } }
16. smg@Lab:Semarang> show configuration interfaces { em1 { unit 0 { vlan-id 0; family inet { address 10.0.0.1/30; } family mpls; } unit 3 { vlan-id 3; family inet { address 10.0.3.1/30; } family mpls; } unit 11 { vlan-id 11; family inet { address 10.0.11.1/30; } family mpls; } } lo0 { unit 16 { family inet { address 192.168.16.1/32; } } } } protocols { mpls { interface all; interface em1.11 { label-map 1000001 { next-hop 10.0.0.2; swap 1000002; } } } ospf { area 0.0.0.0 { interface all; } } }
17. bdg@Lab:Bandung> show configuration interfaces { em1 { unit 70 { vlan-id 70; family inet { address 10.0.70.1/30; } family mpls; } } em2 { unit 3 { vlan-id 3; family inet { address 10.0.3.2/30; } family mpls; } unit 80 { vlan-id 80; family inet { address 10.0.80.2/30; } family mpls; } } lo0 { unit 12 { family inet { address 192.168.12.1/32; } } } } protocols { mpls { interface all; interface em1.70 { label-map 1000101 { next-hop 10.0.80.1; swap 0; } } } ospf { area 0.0.0.0 { interface all; } } }
18. sby@Lab:Surabaya> show configuration interfaces { em1 { unit 4 { vlan-id 4; family inet { address 10.0.4.1/30; } family mpls; } unit 9 { vlan-id 9; family inet { address 10.0.9.1/30; } family mpls; } } em2 { unit 0 { vlan-id 0; family inet { address 10.0.0.2/30; } family mpls; } } lo0 { unit 36 { family inet { address 192.168.36.1/32; } } } } protocols { mpls { interface all; interface em2.0 { label-map 1000002 { next-hop 10.0.4.2; swap 1000003; } } } ospf { area 0.0.0.0 { interface all; } } }
19. sby@Lab:Surabaya> show configuration interfaces { em1 { unit 4 { vlan-id 4; family inet { address 10.0.4.1/30; } family mpls; } unit 9 { vlan-id 9; family inet { address 10.0.9.1/30; } family mpls; } } em2 { unit 0 { vlan-id 0; family inet { address 10.0.0.2/30; } family mpls; } } lo0 { unit 36 { family inet { address 192.168.36.1/32; } } } } protocols { mpls { interface all; interface em2.0 { label-map 1000002 { next-hop 10.0.4.2; swap 1000003; } } } ospf { area 0.0.0.0 { interface all; } } }
20. dps@Lab:Denpasar> show configuration interfaces { em1 { unit 60 { vlan-id 60; family inet { address 10.0.60.1/30; } family mpls; } } em2 { unit 4 { vlan-id 4; family inet { address 10.0.4.2/30; } family mpls; } unit 70 { vlan-id 70; family inet { address 10.0.70.2/30; } family mpls; } } lo0 { unit 40 { family inet { address 192.168.40.1/32; } } } } protocols { mpls { interface all; interface em1.60 { label-map 1000003 { next-hop 10.0.60.2; swap 0; } label-map 1000100 { next-hop 10.0.70.1; swap 1000101; } } } ospf { area 0.0.0.0 { interface all; } } }
21. mks@Lab:Makasar> show configuration interfaces { em2 { unit 9 { vlan-id 9; family inet { address 10.0.9.2/30; } family mpls; } unit 60 { vlan-id 60; family inet { address 10.0.60.2/30; } family mpls; } } lo0 { unit 44 { family inet { address 192.168.44.1/32; } } } } protocols { mpls { static-path inet { 192.168.8.1/32 { next-hop 10.0.60.1; push 1000100; } } interface all; } ospf { area 0.0.0.0 { interface all; } } }