课程: MPLS Segment Routing

IS-IS segment routing configuration

课程: MPLS Segment Routing

IS-IS segment routing configuration

- [Instructor] In this video, we will delve into configuring segment routing, or SR, using IS-IS on IOS XR. Segment routing can utilize either IS-IS or OSVF as its interior gateway port, or IGP. Today, we will focus on IS-IS, but in a future session, we will explore OSVF. We will configure a network with four routers, R1 connected to R2, R2 connected to R3, R3 connected to R4. Each router has a loopback interface, R1 loopback0 with IP 1.1.1.1/32, R2 loopback0 with IP 2.2.2.2/32, R3 loopback0 with IP 3/3.3.3/32, R4 loopback0 with IP 4/4/4/4/32. Step one, configure IS-IS without segment routing. Let's start by configuring IS-IS on each router without segment routing. #router isis TAG creates an IS-IS routing instance with a specific tag. #net NET defines the network entity title, or NET, for IS-IS. #is-type level-2-only configures IS-IS to operate only as a level two router. #address-family ipv4 unicast specifies the address-family. #metric-style wide enables wide metric for IS-IS. #interface INT_NAME specifies the interface to be used. #point-to-point, optional command to configure the interface as point-to-point. #address-family ipv4 unicast specifies the address-family. #interface loopback0. #address-family ipv4 unicast configure IS-IS on the loopback interface for ipv4 unicast address-family. #commit applies the configuration. Configuration for R1, router isis ARASH, net 49.0001.0000.0000.0001.00, is-type level-2-only, address-family ipv4 unicast, metric-style wide, interface GigabitEthernet0/0/0/0, point-to-point, address-family ipv4 unicast, interface Loopback0, address-family ipv4 unicast, commit. Configuration for R2, router isis ARASH, net 49.0001.0000.0000.0002.00, is-type level-2-only, address-family ipv4 unicast, metric-style wide, interface GigabitEthernet0/0/0/0, point-to-point, address-family ipv4 unicast, interface GigabitEthernet0/0/0/1, point-to-point, address-family ipv4 unicast, interface Loopback0, address-family ipv4 unicast, commit. Configuration for R3, router isis ARASH, net 49.0001.0000.0000.0003.00, is-type level-2-only, address-family ipv4 unicast, metric-style wide, interface GigabitEthernet0/0/0/0, point-to-point, address-family ipv4 unicast, interface GigabitEthernet0/0/0/1, point-to-point, address-family ipv4 unicast, interface Loopback0, address-family ipv4 unicast, commit. Configuration for R4, router isis ARASH, net 49.0001.0000.0000.0004.00, is-type level-2-only, address-family ipv4 unicast, metric-style wide, interface GigabitEthernet0/0/0/0, point-to-point, address-family ipv4 unicast, interface Loopback0, address-family ipv4 unicast, commit. Step two, enable segment routing on IS-IS. Now let's enable segment routing on the IS-IS instance and configure MPLS as the data plane. #router isis TAG, enter IS-IS IS-IS router configuration mode. #address-family ipv4 unicast, enter ipv4 address family configuration mode. #segment-routing mpls, enables segment routing with MPLS as the data plane. Configure prefix SID. We can assign segment identifier, or SIDs, to loopback interfaces. Prefix-sid absolute value directly assign an absolute SID value. prefix-sid index INDEX assign an index that will be added to a base value to drive the SID. Configuration for R1, router isis ARASH, address-family ipv4 unicast, segment-routing mpls, interface Lookback0, address-family ipv4 unicast, prefix-sid absolute 16001, commit. Configuration for R2, router isis ARASH, address-family ipv4 unicast, segment-routing mpls, interface Lookback0, address-family ipv4 unicast, prefix-sid absolute 16002, commit. Configuration for R3, router isis ARASH, address-family ipv4 unicast, segment-routing mpls, interface Loopback0, address-family ipv4 unicast, prefix-sid index 3, commit. Configuration for R4, router isis ARASH, address-family ipv4 unicast, segment-routing mpls, interface Loopback0, address-family ipv4 unicast, prefix-sid index 4, commit. After this configuration, MPLS forwarding is enabled on all non-passive IS-IS interfaces. Adjacency SIDs are allocated and distributed for all adjacencies. In the next video, we will verify the segment routing details in this scenario.

内容