+ All Categories
Home > Documents > Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1...

Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1...

Date post: 04-Mar-2020
Category:
Upload: others
View: 6 times
Download: 0 times
Share this document with a friend
22
APNIC SDN Workshop Lab 1 ©APNIC Created: 24 June 2014 Updated: 24 June 2014 Module 3 – Segment Routing Configuration Lab Objective: All the routers are pre-configured with basic interface and OSPF configuration according to the following topology diagram. As part of the exercise, you will need to enable Segment Routing under OSPF and observe operation with common and different SRGBs. In addition, you will need to configure a traffic-engineered Segment Routing tunnel. Prerequisites: Knowledge of IGP, EGP, MPLS and Segment Routing is required. The following will be the common topology and IP address plan used for this lab. lo 0: 172.16.1.2 lo 0: 172.16.1.3 lo 0: 172.16.1.6 lo 0: 172.16.1.5 lo 0: 172.16.1.4 lo 0: 172.16.1.1 Gi0/0/0/0 Gi0/0/0/0 Gi0/0/0/1 Gi0/0/0/0 Gi0/0/0/1 Gi0/0/0/1 Gi0/0/0/1 Gi0/0/0/1 Gi0/0/0/0 Gi0/0/0/0 Gi0/0/0/3 Gi0/0/0/3 Gi0/0/0/3 Gi0/0/0/3 Gi0/0/0/0 Gi0/0/0/1 10.1.2.0/24 R1 R2 R3 R4 R5 R6 10.1.3.0/24 10.2.4.0/24 10.3.5.0/24 10.4.6.0/24 10.5.6.0/24 .1 .1 .2 .2 .2 .2 .3 .3 .3 .3 .4 .4 .4 .4 .5 .5 .5 .5 .6 .6 10.2.3.0/24 10.4.5.0/24 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic Segment Routing lab topology comprises of 6 routers: R1, R2, R3, R4, R5 and R6. Multiple sets of identical topologies will be used. Workshop attendees will be split up into groups of 6 where each group member will be responsible for the configuration of a specific router. All routers are running Cisco IOS-XRv 6.1.2 within GNS3. Login credentials are: Username: cisco Password: cisco Please spend some time to be familiar with the network topology and addressing plan before you start building the configuration on the routers. In module 3 all required configurations are done in 3 parts.
Transcript
Page 1: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

1

©APNIC Created: 24 June 2014 Updated: 24 June 2014

Module 3 – Segment Routing Configuration Lab

Objective: All the routers are pre-configured with basic interface and OSPF configuration according to the following topology diagram. As part of the exercise, you will need to enable Segment Routing under OSPF and observe operation with common and different SRGBs. In addition, you will need to configure a traffic-engineered Segment Routing tunnel. Prerequisites: Knowledge of IGP, EGP, MPLS and Segment Routing is required. The following will be the common topology and IP address plan used for this lab.

lo0:172.16.1.2

lo0:172.16.1.3

lo0:172.16.1.6

lo0:172.16.1.5

lo0:172.16.1.4

lo0:172.16.1.1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/0

Gi0/0/0/1

10.1.2.0/24

R1

R2

R3

R4

R5

R6

10.1.3.0/24

10.2.4.0/24

10.3.5.0/24

10.4.6.0/24

10.5.6.0/24

.1

.1

.2

.2

.2

.2

.3

.3.3

.3

.4 .4

.4.4

.5 .5

.5.5

.6

.610.2.3.0/24

10.4.5.0/24

OSPFInstance1Area0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration

Lab Notes The basic Segment Routing lab topology comprises of 6 routers: R1, R2, R3, R4, R5 and R6. Multiple sets of identical topologies will be used. Workshop attendees will be split up into groups of 6 where each group member will be responsible for the configuration of a specific router. All routers are running Cisco IOS-XRv 6.1.2 within GNS3. Login credentials are: Username: cisco Password: cisco Please spend some time to be familiar with the network topology and addressing plan before you start building the configuration on the routers. In module 3 all required configurations are done in 3 parts.

Page 2: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

2

Part 1. Base Segment Routing configuration. The following figure reflects the base Segment Routing configuration.

lo0:172.16.1.2SID:16002

SRGB:16000-23999

lo0:172.16.1.3SID:16003

SRGB:16000-23999

lo0:172.16.1.6SID:16006

SRGB:16000-23999

lo0:172.16.1.5SID:16005

SRGB:16000-23999

lo0:172.16.1.4SID:16004

SRGB:16000-23999

lo0:172.16.1.1SID:16001

SRGB:16000-23999

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/0

Gi0/0/0/1

10.1.2.0/24

R1

R2

R3

R4

R5

R6

10.1.3.0/24

10.2.4.0/24

10.3.5.0/24

10.4.6.0/24

10.5.6.0/24

.1

.1

.2

.2

.2

.2

.3

.3.3

.3

.4 .4

.4.4

.5 .5

.5.5

.6

.610.2.3.0/24

10.4.5.0/24

OSPFInstance1Area0.0.0.0 After the base Segment Routing configuration there will be a number of node and adjacency SIDs allocated as per the table below:

Node SID Adjacency SID R1=> 16001 R1=>R2 R2=> 16002 R2=>R1 R3=> 16003 R1=>R3 R4=> 16004 R3=>R1 R5=> 16005 R2=>R3 R6=> 16006 R3=>R2 R2=>R4 R4=>R2 R2=>R5 R5=>R2 R3=>R4 R4=>R3 R3=>R5 R5=>R3 R4=>R5 R5=>R4 R4=>R6 R6=>R4 R5=>R6 R6=>R5

Page 3: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

3

©APNIC Created: 24 June 2014 Updated: 24 June 2014

Part 2. Using SID index values with different SRGBs on all routers The following reflects the Segment Routing configuration using SID index values and different SRGBs.

lo0:172.16.1.2

SIDindex:200SRGB:17000-17999

lo0:172.16.1.3

SIDindex:300SRGB:18000-18999

lo0:172.16.1.6

SIDindex:600SRGB:21000-

21999

lo0:172.16.1.5

SIDindex:500SRGB:20000-20999

lo0:172.16.1.4

SIDindex:400SRGB:19000-19999

lo0:172.16.1.1

SIDindex:100SRGB:16000-16999

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/0

Gi0/0/0/1

10.1.2.0/24

R1

R2

R3

R4

R5

R6

10.1.3.0/24

10.2.4.0/24

10.3.5.0/24

10.4.6.0/24

10.5.6.0/24

.1

.1

.2

.2

.2

.2

.3

.3.3

.3

.4 .4

.4.4

.5 .5

.5.5

.6

.610.2.3.0/24

10.4.5.0/24

OSPFInstance1Area0.0.0.0 In this part, we use indexes instead of absolute SID values. In addition, we configure different SRGBs on each of the routers. Part 3. Traffic-engineering Segment Routing tunnel

The following figure includes the additional configuration required for this part.

lo0:172.16.1.2

lo1:2.2.2.2/32

SIDindex:200SRGB:17000-17999

lo0:172.16.1.3

lo1:3.3.3.3/32

SIDindex:300SRGB:18000-18999

lo0:172.16.1.6

lo1:6.6.6.6/32

SIDindex:600SRGB:21000-

21999

lo0:172.16.1.5

lo1:5.5.5.5/32

SIDindex:500SRGB:20000-20999

lo0:172.16.1.4

lo1:4.4.4.4/32

SIDindex:400SRGB:19000-19999

lo0:172.16.1.1

lo1:1.1.1.1/32

SIDindex:100SRGB:16000-16999

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/0

Gi0/0/0/1

10.1.2.0/24

R1

R2

R3

R4

R5

R6

10.1.3.0/24

10.2.4.0/24

10.3.5.0/24

10.4.6.0/24

10.5.6.0/24

.1

.1

.2

.2

.2

.2

.3

.3.3

.3

.4 .4

.4.4

.5 .5

.5.5

.6

.610.2.3.0/24

10.4.5.0/24

Page 4: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

4

We configure explicitly-routed traffic-engineered paths and resolve them using Segment Routing SIDs. Each router configures a unique path as per the table below.

Router Destination Path R1 R6 R1-R2-R3-R4-R5-R6 R2 R1 R2-R4-R6-R5-R3-R1 R3 R5 R3-R1-R2-R4-R6-R5 R4 R2 R4-R6-R5-R3-R1-R2 R5 R6 R5-R3-R1-R2-R4-R6 R6 R1 R6-R4-R5-R2-R3-R1

Page 5: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

5

©APNIC Created: 24 June 2014 Updated: 24 June 2014

Lab Exercise 1. Base Segment Routing configuration:

The following figure reflects the base Segment Routing configuration.

lo0:172.16.1.2SID:16002

SRGB:16000-23999

lo0:172.16.1.3SID:16003

SRGB:16000-23999

lo0:172.16.1.6SID:16006SRGB:

16000-23999

lo0:172.16.1.5SID:16005

SRGB:16000-23999

lo0:172.16.1.4SID:16004

SRGB:16000-23999

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/2

Gi0/0/0/2Gi0/0/0/2

Gi0/0/0/2

10.1.2.0/24

R1

R2

R3

R4

R5

R6

10.1.3.0/24

10.2.4.0/24

10.3.5.0/24

10.4.6.0/24

10.5.6.0/24

10.3.4.0/24

10.2.5.0/24

.1

.1

.2

.2

.2

.2

.3

.3.3

.3

.4 .4

.4.4

.5 .5

.5.5

.6

.610.2.3.0/24

10.4.5.0/24

OSPFInstance1Area0.0.0.0

Here is an example configuration for R1 config t mpls traffic-eng ! Enables traffic engineering functionality on the node. router ospf 1 segment-routing global-block 16000 23999 ! Configure the SRGB for this node segment-routing mpls ! Enables Segment Routing using the mpls dataplane. Also enables Segment Routing on all areas and interfaces. Is also required to install SIDs received by OSPF into the forwarding table. mpls traffic-eng router-id loopback0 ! Configures loopback 0 as the traffic-engineering router identifier. area 0.0.0.0 mpls traffic-eng ! Enables traffic-engineering functionality for OSPF. interface loopback 0 prefix-sid absolute 16001 ! Assigns an absolute SID value to loopback 0 (your SID value will depend on your router as per the figure) end

Page 6: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

6

Please wait for all routers in your group to be configured before you issue the following verification commands. Please also do not move to the next part until advised to do so by your instructors.

Verify your configuration: Use the following commands to verify the operation of Segment Routing: show mpls label table detail

! Ensure you thoroughly understand each entry. show mpls label range show mpls forwarding show mpls forwarding labels 16006 detail

! Select a label value for a router other than your own. show ospf database opaque-area self-originate

! Shows contents of the opaque area-scope LSAs originated by the router in detail. show ip cef 172.16.1.6/32

! Select a loopback address for a router other than your own.

ping mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2 ! Ping a loopback prefix SID for a router other than your own. Change output interface and next-hop accordingly.

trace mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2 ! Trace a loopback prefix SID for a router other than your own. Change output interface and next-hop accordingly.

Segment Routing Debugging debug mpls packet show logging debug no debug mpls packet

Page 7: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

7

©APNIC Created: 24 June 2014 Updated: 24 June 2014

2. Using SID index values with different SRGBs on all routers The following figure includes the additional configuration required for this part.

lo0:172.16.1.2

lo1:2.2.2.2/32

SIDindex:200SRGB:17000-17999

lo0:172.16.1.3

lo1:3.3.3.3/32

SIDindex:300SRGB:18000-18999

lo0:172.16.1.6

lo1:6.6.6.6/32

SIDindex:600SRGB:21000-

21999

lo0:172.16.1.5

lo1:5.5.5.5/32

SIDindex:500SRGB:20000-20999

lo0:172.16.1.4

lo1:4.4.4.4/32

SIDindex:400SRGB:19000-19999

lo0:172.16.1.1

lo1:1.1.1.1/32

SIDindex:100SRGB:16000-16999

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/0

Gi0/0/0/1

10.1.2.0/24

R1

R2

R3

R4

R5

R6

10.1.3.0/24

10.2.4.0/24

10.3.5.0/24

10.4.6.0/24

10.5.6.0/24

.1

.1

.2

.2

.2

.2

.3

.3.3

.3

.4 .4

.4.4

.5 .5

.5.5

.6

.610.2.3.0/24

10.4.5.0/24

Here is an example configuration for R1 config t router ospf 1 area 0.0.0.0 interface loopback 0 prefix-sid index 100 ! Assigns a SID index of 100 to loopback 0 (your index will depend on your router as per the figure) exit exit segment-routing global-block 16000 16999 ! Changes the SRGB of the node to 16000-16999 (your range will depend on your router as per the figure) end Please wait for all routers in your group to be configured before you issue the following verification commands. Please also do not move to the next part until advised to do so by your instructors.

Verify your configuration: Use the following commands to verify the operation of Segment Routing: show mpls label table detail

Page 8: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

8

! Ensure you thoroughly understand each entry. show mpls label range show mpls forwarding show mpls forwarding labels 16600 detail

! Select a label value for a router other than your own. show ospf database opaque-area self-originate

! Shows contents of the opaque area-scope LSAs originated by the router in detail. show ip cef 172.16.1.6/32

! Select a loopback address for a router other than your own.

ping mpls nil-fec labels 17600 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2 ! Ping a loopback prefix SID for a router other than your own. Change output interface and next-hop accordingly.

trace mpls nil-fec labels 17600 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2 ! Trace a loopback prefix SID for a router other than your own. Change output interface and next-hop accordingly.

3. Traffic-engineering Segment Routing tunnel

The following figure includes the additional configuration required for this part.

lo0:172.16.1.2

lo1:2.2.2.2/32

SIDindex:200SRGB:17000-17999

lo0:172.16.1.3

lo1:3.3.3.3/32

SIDindex:300SRGB:18000-18999

lo0:172.16.1.6

lo1:6.6.6.6/32

SIDindex:600SRGB:21000-

21999

lo0:172.16.1.5

lo1:5.5.5.5/32

SIDindex:500SRGB:20000-20999

lo0:172.16.1.4

lo1:4.4.4.4/32

SIDindex:400SRGB:19000-19999

lo0:172.16.1.1

lo1:1.1.1.1/32

SIDindex:100SRGB:16000-16999

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/1

Gi0/0/0/0

Gi0/0/0/0

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/3

Gi0/0/0/0

Gi0/0/0/1

10.1.2.0/24

R1

R2

R3

R4

R5

R6

10.1.3.0/24

10.2.4.0/24

10.3.5.0/24

10.4.6.0/24

10.5.6.0/24

.1

.1

.2

.2

.2

.2

.3

.3.3

.3

.4 .4

.4.4

.5 .5

.5.5

.6

.610.2.3.0/24

10.4.5.0/24

Each router needs to be configured with a different explicit tunnel as per the table below.

Page 9: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

9

©APNIC Created: 24 June 2014 Updated: 24 June 2014

Router Destination Path R1 R6 R1-R2-R3-R4-R5-R6 R2 R1 R2-R4-R6-R5-R3-R1 R3 R5 R3-R1-R2-R4-R6-R5 R4 R2 R4-R6-R5-R3-R1-R2 R5 R6 R5-R3-R1-R2-R4-R6 R6 R1 R6-R4-R5-R2-R3-R1

Here is an example configuration for R1 based on the above table. conf t explicit-path name SR-TE-PATH-1 index 1 next-address strict ipv4 unicast 172.16.1.2 index 2 next-address strict ipv4 unicast 172.16.1.3 index 3 next-address strict ipv4 unicast 172.16.1.4 index 4 next-address strict ipv4 unicast 172.16.1.5 index 5 next-address strict ipv4 unicast 172.16.1.6 ! exit ! create an explicit path named SR-TE-PATH-1 with an explicitly-specified list of hops interface tunnel-te0 ipv4 unnumbered Loopback0 destination 172.16.1.6 path-option 1 explicit name SR-TE-PATH-1 segment-routing ! ! create a tunnel interface with a destination of R6 and link the previously-created explicit path SR-TE-PATH-1 with it int lo1 ipv4 address 1.1.1.1/32 exit ! create a new loopback address on the router (use the address corresponding to your router as per the diagram) ! create a static route to R6's loopback address (choose a target router based on the destination of the tunnel interface created earlier) router static address-family ipv4 unicast 6.6.6.6/32 tunnel-te0 exit

Please wait for all routers in your group to be configured before you issue the following verification commands.

Verify your configuration: Use the following commands to verify your configuration:

show mpls traffic-eng tunnels 0 detail ! Ensure you thoroughly understand the output and, in particular, the resolution of the IP loopback addresses to SID values.

Page 10: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

10

ping 6.6.6.6

! verify the static route

Page 11: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

11

©APNIC Created: 24 June 2014 Updated: 24 June 2014

Workshop templates for reference purpose only: R1 Base Segment Routing configuration config t mpls traffic-eng router ospf 1 segment-routing global-block 16000 23999 segment-routing mpls mpls traffic-eng router-id loopback0 area 0.0.0.0 mpls traffic-eng interface loopback 0 prefix-sid absolute 16001 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 16006 detail show ospf database opaque-area self-originate show ip cef 172.16.1.6/32

ping mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2 trace mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2 Using SID index values with different SRGBs on all routers config t router ospf 1 area 0.0.0.0 interface loopback 0 prefix-sid index 100 exit exit segment-routing global-block 16000 16999 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 16600 detail show ospf database opaque-area self-originate show ip cef 172.16.1.6/32

ping mpls nil-fec labels 17600 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2 trace mpls nil-fec labels 17600 output interface gigabitEthernet 0/0/0/0 nexthop 10.1.2.2

Page 12: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

12

Traffic-engineering Segment Routing tunnel conf t explicit-path name SR-TE-PATH-1 index 1 next-address strict ipv4 unicast 172.16.1.2 index 2 next-address strict ipv4 unicast 172.16.1.3 index 3 next-address strict ipv4 unicast 172.16.1.4 index 4 next-address strict ipv4 unicast 172.16.1.5 index 5 next-address strict ipv4 unicast 172.16.1.6 ! exit interface tunnel-te0 ipv4 unnumbered Loopback0 destination 172.16.1.6 path-option 1 explicit name SR-TE-PATH-1 segment-routing ! int lo1 ipv4 address 1.1.1.1/32 exit ! router static address-family ipv4 unicast 6.6.6.6/32 tunnel-te0 exit ! end

Verification Commands:

show mpls traffic-eng tunnels 0 detail

ping 6.6.6.6

Page 13: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

13

©APNIC Created: 24 June 2014 Updated: 24 June 2014

R2 Base Segment Routing configuration config t mpls traffic-eng router ospf 1 segment-routing global-block 16000 23999 segment-routing mpls mpls traffic-eng router-id loopback0 area 0.0.0.0 mpls traffic-eng interface loopback 0 prefix-sid absolute 16002 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 16006 detail show ospf database opaque-area self-originate show ip cef 172.16.1.6/32

ping mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.4 trace mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.4 Using SID index values with different SRGBs on all routers config t router ospf 1 area 0.0.0.0 interface loopback 0 prefix-sid index 200 exit exit segment-routing global-block 17000 17999 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 17600 detail show ospf database opaque-area self-originate show ip cef 172.16.1.6/32

ping mpls nil-fec labels 19600 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.4 trace mpls nil-fec labels 19600 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.4

Page 14: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

14

Traffic-engineering Segment Routing tunnel conf t explicit-path name SR-TE-PATH-1 index 1 next-address strict ipv4 unicast 172.16.1.4 index 2 next-address strict ipv4 unicast 172.16.1.6 index 3 next-address strict ipv4 unicast 172.16.1.5 index 4 next-address strict ipv4 unicast 172.16.1.3 index 5 next-address strict ipv4 unicast 172.16.1.1 ! exit interface tunnel-te0 ipv4 unnumbered Loopback0 destination 172.16.1.1 path-option 1 explicit name SR-TE-PATH-1 segment-routing ! int lo1 ipv4 address 2.2.2.2/32 exit ! router static address-family ipv4 unicast 1.1.1.1/32 tunnel-te0 exit ! end

Verification Commands:

show mpls traffic-eng tunnels 0 detail

ping 1.1.1.1

Page 15: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

15

©APNIC Created: 24 June 2014 Updated: 24 June 2014

R3 Base Segment Routing configuration config t mpls traffic-eng router ospf 1 segment-routing global-block 16000 23999 segment-routing mpls mpls traffic-eng router-id loopback0 area 0.0.0.0 mpls traffic-eng interface loopback 0 prefix-sid absolute 16003 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 16006 detail show ospf database opaque-area self-originate show ip cef 172.16.1.6/32

ping mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.5 trace mpls nil-fec labels 16006 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.5 Using SID index values with different SRGBs on all routers config t router ospf 1 area 0.0.0.0 interface loopback 0 prefix-sid index 300 exit exit segment-routing global-block 18000 18999 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 18600 detail show ospf database opaque-area self-originate show ip cef 172.16.1.6/32

ping mpls nil-fec labels 20600 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.5 trace mpls nil-fec labels 20600 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.5

Page 16: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

16

Traffic-engineering Segment Routing tunnel conf t explicit-path name SR-TE-PATH-1 index 1 next-address strict ipv4 unicast 172.16.1.1 index 2 next-address strict ipv4 unicast 172.16.1.2 index 3 next-address strict ipv4 unicast 172.16.1.4 index 4 next-address strict ipv4 unicast 172.16.1.6 index 5 next-address strict ipv4 unicast 172.16.1.5 ! exit interface tunnel-te0 ipv4 unnumbered Loopback0 destination 172.16.1.5 path-option 1 explicit name SR-TE-PATH-1 segment-routing ! int lo1 ipv4 address 3.3.3.3/32 exit ! router static address-family ipv4 unicast 5.5.5.5/32 tunnel-te0 exit ! end

Verification Commands:

show mpls traffic-eng tunnels 0 detail

ping 5.5.5.5

Page 17: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

17

©APNIC Created: 24 June 2014 Updated: 24 June 2014

R4 Base Segment Routing configuration config t mpls traffic-eng router ospf 1 segment-routing global-block 16000 23999 segment-routing mpls mpls traffic-eng router-id loopback0 area 0.0.0.0 mpls traffic-eng interface loopback 0 prefix-sid absolute 16004 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 16006 detail show ospf database opaque-area self-originate show ip cef 172.16.1.1/32

ping mpls nil-fec labels 16001 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.2 trace mpls nil-fec labels 16001 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.2 Using SID index values with different SRGBs on all routers config t router ospf 1 area 0.0.0.0 interface loopback 0 prefix-sid index 400 exit exit segment-routing global-block 19000 19999 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 19100 detail show ospf database opaque-area self-originate show ip cef 172.16.1.1/32

ping mpls nil-fec labels 17100 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.2 trace mpls nil-fec labels 17100 output interface gigabitEthernet 0/0/0/1 nexthop 10.2.4.2

Page 18: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

18

Traffic-engineering Segment Routing tunnel conf t explicit-path name SR-TE-PATH-1 index 1 next-address strict ipv4 unicast 172.16.1.6 index 2 next-address strict ipv4 unicast 172.16.1.5 index 3 next-address strict ipv4 unicast 172.16.1.3 index 4 next-address strict ipv4 unicast 172.16.1.1 index 5 next-address strict ipv4 unicast 172.16.1.2 ! exit interface tunnel-te0 ipv4 unnumbered Loopback0 destination 172.16.1.2 path-option 1 explicit name SR-TE-PATH-1 segment-routing ! int lo1 ipv4 address 4.4.4.4/32 exit ! router static address-family ipv4 unicast 2.2.2.2/32 tunnel-te0 exit ! end

Verification Commands:

show mpls traffic-eng tunnels 0 detail

ping 2.2.2.2

Page 19: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

19

©APNIC Created: 24 June 2014 Updated: 24 June 2014

R5 Base Segment Routing configuration config t mpls traffic-eng router ospf 1 segment-routing global-block 16000 23999 segment-routing mpls mpls traffic-eng router-id loopback0 area 0.0.0.0 mpls traffic-eng interface loopback 0 prefix-sid absolute 16005 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 16001 detail show ospf database opaque-area self-originate show ip cef 172.16.1.1/32

ping mpls nil-fec labels 16001 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.3 trace mpls nil-fec labels 16001 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.3 Using SID index values with different SRGBs on all routers config t router ospf 1 area 0.0.0.0 interface loopback 0 prefix-sid index 500 exit exit segment-routing global-block 20000 20999 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 20100 detail show ospf database opaque-area self-originate show ip cef 172.16.1.1/32

ping mpls nil-fec labels 18100 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.3 trace mpls nil-fec labels 18100 output interface gigabitEthernet 0/0/0/1 nexthop 10.3.5.3

Page 20: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

20

Traffic-engineering Segment Routing tunnel conf t explicit-path name SR-TE-PATH-1 index 1 next-address strict ipv4 unicast 172.16.1.3 index 2 next-address strict ipv4 unicast 172.16.1.1 index 3 next-address strict ipv4 unicast 172.16.1.2 index 4 next-address strict ipv4 unicast 172.16.1.4 index 5 next-address strict ipv4 unicast 172.16.1.6 ! exit interface tunnel-te0 ipv4 unnumbered Loopback0 destination 172.16.1.6 path-option 1 explicit name SR-TE-PATH-1 segment-routing ! int lo1 ipv4 address 5.5.5.5/32 exit ! router static address-family ipv4 unicast 6.6.6.6/32 tunnel-te0 exit ! end

Verification Commands:

show mpls traffic-eng tunnels 0 detail

ping 6.6.6.6

Page 21: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

APNIC SDN Workshop Lab

21

©APNIC Created: 24 June 2014 Updated: 24 June 2014

R6 Base Segment Routing configuration config t mpls traffic-eng router ospf 1 segment-routing global-block 16000 23999 segment-routing mpls mpls traffic-eng router-id loopback0 area 0.0.0.0 mpls traffic-eng interface loopback 0 prefix-sid absolute 16006 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 16001 detail show ospf database opaque-area self-originate show ip cef 172.16.1.1/32

ping mpls nil-fec labels 16001 output interface gigabitEthernet 0/0/0/1 nexthop 10.5.6.5 trace mpls nil-fec labels 16001 output interface gigabitEthernet 0/0/0/1 nexthop 10.5.6.5 Using SID index values with different SRGBs on all routers config t router ospf 1 area 0.0.0.0 interface loopback 0 prefix-sid index 600 exit exit segment-routing global-block 21000 21999 end Verification Commands:

show mpls label table detail show mpls label range show mpls forwarding show mpls forwarding labels 21100 detail show ospf database opaque-area self-originate show ip cef 172.16.1.1/32

ping mpls nil-fec labels 20100 output interface gigabitEthernet 0/0/0/1 nexthop 10.5.6.5 trace mpls nil-fec labels 20100 output interface gigabitEthernet 0/0/0/1 nexthop 10.5.6.5

Page 22: Module 3 – Segment Routing Configuration Lab · .3.3.3.4.4.4.5 .5.5.5.6 24 24 .6 OSPF Instance 1 Area 0.0.0.0 Figure 1 – Segment Routing Lab Base Configuration Lab Notes The basic

Monday, September 04, 2017

22

Traffic-engineering Segment Routing tunnel conf t explicit-path name SR-TE-PATH-1 index 1 next-address strict ipv4 unicast 172.16.1.4 index 2 next-address strict ipv4 unicast 172.16.1.5 index 3 next-address strict ipv4 unicast 172.16.1.2 index 4 next-address strict ipv4 unicast 172.16.1.3 index 5 next-address strict ipv4 unicast 172.16.1.1 ! exit interface tunnel-te0 ipv4 unnumbered Loopback0 destination 172.16.1.1 path-option 1 explicit name SR-TE-PATH-1 segment-routing ! int lo1 ipv4 address 6.6.6.6/32 exit ! router static address-family ipv4 unicast 1.1.1.1/32 tunnel-te0 exit ! end

Verification Commands:

show mpls traffic-eng tunnels 0 detail

ping 1.1.1.1


Recommended