Published 6月 15, 2018 by with 0 comment

JNCIP-SP Lab: Configuring LDP Signaling for MPLS - Ver. 2



Due to the "JNCIP-SP Lab: Configuring LDP Signaling for MPLS - Part 1" is too complex, so I do another lab.

For MPLS:
In the Junos OS implementation of MPLS, the default behavior makes BGP the only protocol that is aware of the presence of LSPs, and only then when BGP attempts to resolve the next hops associated with advertised prefixes.

For BGP:
BGP peering need IGP.

For LDP:
The LDP assigne MPLS Labels.
LDP always follow the IGP best path.
Do not support engineeded paths.

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 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 lo0 unit 2 family inet address 10.200.1.2/32

set logical-systems R3 interfaces ge-0/0/1 unit 34 description TO_R4
set logical-systems R3 interfaces ge-0/0/1 unit 34 vlan-id 34
set logical-systems R3 interfaces ge-0/0/1 unit 34 family inet address 10.10.34.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 lo0 unit 3 family inet address 10.200.1.3/32

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


2. IS-IS setting:
set logical-systems R1 interfaces ge-0/0/1 unit 12 family iso
set logical-systems R1 interfaces lo0 unit 1 family iso address 49.0001.0000.0001.00
set logical-systems R1 protocols isis interface all
set logical-systems R1 protocols isis level 1 disable

set logical-systems R2 interfaces ge-0/0/1 unit 23 family iso
set logical-systems R2 interfaces ge-0/0/2 unit 12 family iso
set logical-systems R2 interfaces lo0 unit 2 family iso address 49.0001.0000.0002.00
set logical-systems R2 protocols isis interface all
set logical-systems R2 protocols isis level 1 disable  


set logical-systems R3 interfaces ge-0/0/1 unit 34 family iso
set logical-systems R3 interfaces ge-0/0/2 unit 23 family iso
set logical-systems R3 interfaces lo0 unit 3 family iso address 49.0001.0000.0003.00
set logical-systems R3 protocols isis interface all
set logical-systems R3 protocols isis level 1 disable

set logical-systems R4 interfaces ge-0/0/2 unit 34 family iso  
set logical-systems R4 interfaces lo0 unit 4 family iso address 49.0001.0000.0004.00
set logical-systems R4 protocols isis interface all
set logical-systems R4 protocols isis level 1 disable


Check:
[edit]
root@vMX-1# run show isis adjacency logical-system R1 
Interface             System         L State        Hold (secs) SNPA
ge-0/0/1.12           vMX-1-R2       2  Up                    8  0:5:86:71:5f:2

[edit]
root@vMX-1#

[edit]
root@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:5f:2
ge-0/0/2.12           vMX-1-R1       2  Up                   23  0:5:86:71:5f:1

[edit]
root@vMX-1#                                             

[edit]
root@vMX-1# run show isis adjacency logical-system R3   
Interface             System         L State        Hold (secs) SNPA
ge-0/0/1.34           vMX-1-R4       2  Up                    8  0:5:86:71:5f:2
ge-0/0/2.23           vMX-1-R2       2  Up                   19  0:5:86:71:5f:1

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show isis adjacency logical-system R4   
Interface             System         L State        Hold (secs) SNPA
ge-0/0/2.34           vMX-1-R3       2  Up                   20  0:5:86:71:5f:1

[edit]
root@vMX-1#
[edit]
root@vMX-1# run ping 10.200.1.4 logical-system R1                     
PING 10.200.1.4 (10.200.1.4): 56 data bytes
64 bytes from 10.200.1.4: icmp_seq=0 ttl=62 time=3.327 ms
64 bytes from 10.200.1.4: icmp_seq=1 ttl=62 time=3.353 ms
^C
--- 10.200.1.4 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 3.327/3.340/3.353/0.013 ms

[edit]
root@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 neighbor 10.200.1.1
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.2
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 from route-filter 172.16.1.1/32 exact
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 from route-filter 172.16.1.4/32 exact
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]
root@vMX-1# run show bgp summary logical-system R1
Groups: 1 Peers: 1 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0              
                       1          1          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.200.1.2            65001         59         58       0       2       24:51 1/1/1/0              0/0/0/0

[edit]
root@vMX-1#

[edit]
root@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         57         59       0       0       24:53 1/1/1/0              0/0/0/0
10.200.1.3            65001         56         58       0       0       24:49 0/0/0/0              0/0/0/0
10.200.1.4            65001         58         57       0       0       24:45 1/1/1/0              0/0/0/0

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show bgp summary logical-system R3   
Groups: 1 Peers: 1 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.2            65001         58         57       0       2       24:52 2/2/2/0              0/0/0/0

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show bgp summary logical-system R4   
Groups: 1 Peers: 1 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0              
                       1          1          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.200.1.2            65001         57         59       0       2       24:49 1/1/1/0              0/0/0/0

[edit]
root@vMX-1#

[edit]
root@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)  2.983 ms  1.803 ms  2.208 ms
 2  10.10.23.3 (10.10.23.3)  8.459 ms  4.718 ms  4.228 ms
 3  10.10.34.4 (10.10.34.4)  7.958 ms !N  4.151 ms !N  9.888 ms !N

[edit]
root@vMX-1#

[edit]
root@vMX-1# run traceroute 172.16.1.1 logical-system R4   
traceroute to 172.16.1.1 (172.16.1.1), 30 hops max, 40 byte packets
 1  10.10.34.3 (10.10.34.3)  1.360 ms  1.852 ms  1.172 ms
 2  10.10.23.2 (10.10.23.2)  4.720 ms  5.732 ms  1.866 ms
 3  10.10.12.1 (10.10.12.1)  4.418 ms !N  4.150 ms !N  5.327 ms !N

[edit]
root@vMX-1#


4. MPLS setting:

set logical-systems R1 interfaces ge-0/0/1 unit 12 family mpls
set logical-systems R1 protocols mpls interface all

set logical-systems R2 interfaces ge-0/0/1 unit 23 family mpls
set logical-systems R2 interfaces ge-0/0/2 unit 12 family mpls
set logical-systems R2 protocols mpls interface all   

set logical-systems R3 interfaces ge-0/0/1 unit 34 family mpls
set logical-systems R3 interfaces ge-0/0/2 unit 23 family mpls
set logical-systems R3 protocols mpls interface all   

set logical-systems R4 interfaces ge-0/0/2 unit 34 family mpls
set logical-systems R4 protocols mpls interface all   

Check:
[edit]
root@vMX-1# run show mpls interface logical-system R1
Interface        State       Administrative groups (x: extended)
ge-0/0/1.12      Up        

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show mpls interface logical-system R2   
Interface        State       Administrative groups (x: extended)
ge-0/0/1.23      Up        
ge-0/0/2.12      Up        

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show mpls interface logical-system R3   
Interface        State       Administrative groups (x: extended)
ge-0/0/1.34      Up        
ge-0/0/2.23      Up        

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show mpls interface logical-system R4   
Interface        State       Administrative groups (x: extended)
ge-0/0/2.34      Up        

[edit]
root@vMX-1#


5. LDP setting:
set logical-systems R1 protocols ldp interface all
set logical-systems R2 protocols ldp interface all   
set logical-systems R3 protocols ldp interface all   
set logical-systems R4 protocols ldp interface all  

Check:
[edit]
root@vMX-1# run show ldp database logical-system R1
Input label database, 10.200.1.1:0--10.200.1.2:0
  Label     Prefix
 299872      10.200.1.1/32
      3      10.200.1.2/32
 299888      10.200.1.3/32
 299904      10.200.1.4/32

Output label database, 10.200.1.1:0--10.200.1.2:0
  Label     Prefix
      3      10.200.1.1/32
 299872      10.200.1.2/32
 299888      10.200.1.3/32
 299904      10.200.1.4/32

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ldp database logical-system R2   
Input label database, 10.200.1.2:0--10.200.1.1:0
  Label     Prefix
      3      10.200.1.1/32
 299872      10.200.1.2/32
 299888      10.200.1.3/32
 299904      10.200.1.4/32

Output label database, 10.200.1.2:0--10.200.1.1:0
  Label     Prefix
 299872      10.200.1.1/32
      3      10.200.1.2/32
 299888      10.200.1.3/32
 299904      10.200.1.4/32

Input label database, 10.200.1.2:0--10.200.1.3:0
  Label     Prefix
 299904      10.200.1.1/32
 299888      10.200.1.2/32
      3      10.200.1.3/32
 299872      10.200.1.4/32

Output label database, 10.200.1.2:0--10.200.1.3:0
  Label     Prefix
 299872      10.200.1.1/32             
      3      10.200.1.2/32
 299888      10.200.1.3/32
 299904      10.200.1.4/32

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ldp database logical-system R3   
Input label database, 10.200.1.3:0--10.200.1.2:0
  Label     Prefix
 299872      10.200.1.1/32
      3      10.200.1.2/32
 299888      10.200.1.3/32
 299904      10.200.1.4/32

Output label database, 10.200.1.3:0--10.200.1.2:0
  Label     Prefix
 299904      10.200.1.1/32
 299888      10.200.1.2/32
      3      10.200.1.3/32
 299872      10.200.1.4/32

Input label database, 10.200.1.3:0--10.200.1.4:0
  Label     Prefix
 299904      10.200.1.1/32
 299888      10.200.1.2/32
 299872      10.200.1.3/32
      3      10.200.1.4/32

Output label database, 10.200.1.3:0--10.200.1.4:0
  Label     Prefix
 299904      10.200.1.1/32             
 299888      10.200.1.2/32
      3      10.200.1.3/32
 299872      10.200.1.4/32

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ldp database logical-system R4   
Input label database, 10.200.1.4:0--10.200.1.3:0
  Label     Prefix
 299904      10.200.1.1/32
 299888      10.200.1.2/32
      3      10.200.1.3/32
 299872      10.200.1.4/32

Output label database, 10.200.1.4:0--10.200.1.3:0
  Label     Prefix
 299904      10.200.1.1/32
 299888      10.200.1.2/32
 299872      10.200.1.3/32
      3      10.200.1.4/32

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R1   

inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.10.12.0/24      *[Direct/0] 03:08:46
                    > via ge-0/0/1.12
10.10.12.1/32      *[Local/0] 03:08:46
                      Local via ge-0/0/1.12
10.10.23.0/24      *[IS-IS/18] 02:30:47, metric 20
                    > to 10.10.12.2 via ge-0/0/1.12
10.10.34.0/24      *[IS-IS/18] 02:30:21, metric 30
                    > to 10.10.12.2 via ge-0/0/1.12
10.200.1.1/32      *[Direct/0] 02:35:45
                    > via lo0.1
10.200.1.2/32      *[IS-IS/18] 02:30:47, metric 10
                    > to 10.10.12.2 via ge-0/0/1.12
10.200.1.3/32      *[IS-IS/18] 02:30:21, metric 20
                    > to 10.10.12.2 via ge-0/0/1.12
10.200.1.4/32      *[IS-IS/18] 02:30:21, metric 30
                    > to 10.10.12.2 via ge-0/0/1.12
172.16.1.1/32      *[Static/5] 00:54:30
                      Reject
172.16.1.4/32      *[BGP/170] 01:08:54, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.10.12.2 via ge-0/0/1.12, Push 299904

inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.2/32      *[LDP/9] 00:30:36, metric 1
                    > to 10.10.12.2 via ge-0/0/1.12
10.200.1.3/32      *[LDP/9] 00:30:36, metric 1
                    > to 10.10.12.2 via ge-0/0/1.12, Push 299888
10.200.1.4/32      *[LDP/9] 00:30:36, metric 1
                    > to 10.10.12.2 via ge-0/0/1.12, Push 299904

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

49.0001.0000.0001/56               
                   *[Direct/0] 02:35:45
                    > via lo0.1

mpls.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 00:30:37, metric 1
                      Receive          
1                  *[MPLS/0] 00:30:37, metric 1
                      Receive
2                  *[MPLS/0] 00:30:37, metric 1
                      Receive
13                 *[MPLS/0] 00:30:37, metric 1
                      Receive
299872             *[LDP/9] 00:30:36, metric 1
                    > to 10.10.12.2 via ge-0/0/1.12, Pop     
299872(S=0)        *[LDP/9] 00:30:36, metric 1
                    > to 10.10.12.2 via ge-0/0/1.12, Pop     
299888             *[LDP/9] 00:30:36, metric 1
                    > to 10.10.12.2 via ge-0/0/1.12, Swap 299888
299904             *[LDP/9] 00:30:36, metric 1
                    > to 10.10.12.2 via ge-0/0/1.12, Swap 299904

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R4   

inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.10.12.0/24      *[IS-IS/18] 02:30:26, metric 30
                    > to 10.10.34.3 via ge-0/0/2.34
10.10.23.0/24      *[IS-IS/18] 02:30:51, metric 20
                    > to 10.10.34.3 via ge-0/0/2.34
10.10.34.0/24      *[Direct/0] 03:08:51
                    > via ge-0/0/2.34
10.10.34.4/32      *[Local/0] 03:08:51
                      Local via ge-0/0/2.34
10.200.1.1/32      *[IS-IS/18] 02:30:16, metric 30
                    > to 10.10.34.3 via ge-0/0/2.34
10.200.1.2/32      *[IS-IS/18] 02:30:26, metric 20
                    > to 10.10.34.3 via ge-0/0/2.34
10.200.1.3/32      *[IS-IS/18] 02:30:51, metric 10
                    > to 10.10.34.3 via ge-0/0/2.34
10.200.1.4/32      *[Direct/0] 02:35:50
                    > via lo0.4
172.16.1.1/32      *[BGP/170] 00:54:35, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.10.34.3 via ge-0/0/2.34, Push 299904
172.16.1.4/32      *[Static/5] 01:08:59
                      Reject

inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.1/32      *[LDP/9] 00:30:41, metric 1
                    > to 10.10.34.3 via ge-0/0/2.34, Push 299904
10.200.1.2/32      *[LDP/9] 00:30:41, metric 1
                    > to 10.10.34.3 via ge-0/0/2.34, Push 299888
10.200.1.3/32      *[LDP/9] 00:30:41, metric 1
                    > to 10.10.34.3 via ge-0/0/2.34

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

49.0001.0000.0004/56               
                   *[Direct/0] 02:35:50
                    > via lo0.4

mpls.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 00:30:42, metric 1
                      Receive
1                  *[MPLS/0] 00:30:42, metric 1
                      Receive
2                  *[MPLS/0] 00:30:42, metric 1
                      Receive
13                 *[MPLS/0] 00:30:42, metric 1
                      Receive
299872             *[LDP/9] 00:30:41, metric 1
                    > to 10.10.34.3 via ge-0/0/2.34, Pop     
299872(S=0)        *[LDP/9] 00:30:41, metric 1
                    > to 10.10.34.3 via ge-0/0/2.34, Pop     
299888             *[LDP/9] 00:30:41, metric 1
                    > to 10.10.34.3 via ge-0/0/2.34, Swap 299888
299904             *[LDP/9] 00:30:41, metric 1
                    > to 10.10.34.3 via ge-0/0/2.34, Swap 299904

[edit]
root@vMX-1#

[edit]
root@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)  2.645 ms  1.410 ms  2.754 ms
     MPLS Label=299904 CoS=0 TTL=1 S=1
 2  10.10.23.3 (10.10.23.3)  4.047 ms  3.915 ms  3.021 ms
     MPLS Label=299872 CoS=0 TTL=1 S=1
 3  10.10.34.4 (10.10.34.4)  4.656 ms !N  4.330 ms !N  4.058 ms !N

[edit]
root@vMX-1#

[edit]
root@vMX-1# run traceroute 172.16.1.1 logical-system R4   
traceroute to 172.16.1.1 (172.16.1.1), 30 hops max, 40 byte packets
 1  10.10.34.3 (10.10.34.3)  1.693 ms  4.549 ms  1.994 ms
     MPLS Label=299904 CoS=0 TTL=1 S=1
 2  10.10.23.2 (10.10.23.2)  2.462 ms  6.958 ms  3.473 ms
     MPLS Label=299872 CoS=0 TTL=1 S=1
 3  10.10.12.1 (10.10.12.1)  2.922 ms !N  2.661 ms !N  3.854 ms !N

[edit]
root@vMX-1#


Final configuration:
[edit]
root@vMX-1# show | display set
set version 14.1R1.10
set system host-name vMX-1
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/1 unit 12 family iso
set logical-systems R1 interfaces ge-0/0/1 unit 12 family mpls
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 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 protocols ldp 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 from route-filter 172.16.1.1/32 exact
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 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/1 unit 23 family iso
set logical-systems R2 interfaces ge-0/0/1 unit 23 family mpls
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/2 unit 12 family iso
set logical-systems R2 interfaces ge-0/0/2 unit 12 family mpls
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.0001.0000.0002.00
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 protocols ldp interface all
set logical-systems R2 routing-options autonomous-system 65001
set logical-systems R3 interfaces ge-0/0/1 unit 34 description TO_R4
set logical-systems R3 interfaces ge-0/0/1 unit 34 vlan-id 34
set logical-systems R3 interfaces ge-0/0/1 unit 34 family inet address 10.10.34.3/24
set logical-systems R3 interfaces ge-0/0/1 unit 34 family iso
set logical-systems R3 interfaces ge-0/0/1 unit 34 family mpls
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/2 unit 23 family iso
set logical-systems R3 interfaces ge-0/0/2 unit 23 family mpls
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.0001.0000.0003.00
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 protocols ldp interface all
set logical-systems R3 routing-options autonomous-system 65001
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/2 unit 34 family iso
set logical-systems R4 interfaces ge-0/0/2 unit 34 family mpls
set logical-systems R4 interfaces lo0 unit 4 family inet address 10.200.1.4/32
set logical-systems R4 interfaces lo0 unit 4 family iso address 49.0001.0000.0004.00
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 protocols ldp 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 from route-filter 172.16.1.4/32 exact
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

[edit]
root@vMX-1#


Reference:
JNCIP-SP Lab: Configuring LDP Signaling for MPLS - Ver. 1
http://juilin77.blogspot.com/2018/06/jncip-sp-lab-configuring-ldp-signaling_15.html


最初發表 / 最後更新: 2015.09.04 / 2018.06.15

0 comments:

張貼留言