Example: Configuring SRv6 that uses End.X SIDs. Aruba FlexNetwork MSR958X_2003X Routers Comware 9 Segment Routing, S0P11A, S0W31A
Реклама
Реклама
Example: Configuring SRv6 that uses End.X SIDs
Network configuration
As shown in Figure 48 , run OSPFv3 on Router A, Router B, and Router C. Set up an SRv6 tunnel
between Router A and Router C.
Figure 48 Network diagram
Loop0
1::9/128
Loop0
2::9/128
Loop0
5::9/128
GE0/0/1 GE0/0/2
GE0/0/2 GE0/0/2
Router A Router B
SRv6 Tunnel
Table 15 Interface and IP address assignment
Router C
Device
Router A
Router B
Procedure
Interface
Loop0
GE0/0/2
Loop0
GE0/0/1
GE0/0/2
IP address
1::9/128
1::1/64
2::9/128
1::2/64
2::1/64
Device Interface
Router C Loop0
GE0/0/2
IP address
5::9/128
2::2/64
1. Configure IPv6 addresses and masks for the interfaces. (Details not shown.)
2. Configure OSPFv3 to advertise routes for the interfaces, including the loopback interfaces.
(Details not shown.)
Execute the display ipv6 routing-table command on each router to verify that they have obtained routes to reach one another, including the host routes of loopback interfaces.
3. Configure Router A:
# Configure SRv6 End.X SIDs.
[RouterA] segment-routing ipv6
[RouterA-segment-routing-ipv6] locator a1 ipv6-prefix 100:1::1:0 96 static 8
[RouterA-segment-routing-ipv6-locator-a1] opcode 1 end-x interface gigabitethernet
0/0/2 nexthop 1::2
[RouterA-segment-routing-ipv6-locator-a1] quit
[RouterA-segment-routing-ipv6] quit
# Configure OSPFv3 to advertise the SRv6 SIDs.
[RouterA] ospfv3 1
[RouterA-ospfv3-1] segment-routing ipv6 locator a1
[RouterA-ospfv3-1] quit
# Configure SID list A and specify Router B and Router C as nodes in the list.
[RouterA] ipv6 segment-routing sid-list A
[RouterA-srv6-sid-list-A] sid 200:1::1:1
[RouterA-srv6-sid-list-A] sid 300:1::1:1
[RouterA-srv6-sid-list-A] quit
147
# Create SRv6 tunnel interface Tunnel 1 on Router A. Specify Loopback 0 as the source interface, specify the IP address of Loopback 0 on Router C as the destination, configure an
IPv6 address for the tunnel interface, and apply SID list A to the SRv6 tunnel.
[RouterA] interface tunnel 0 mode sr ipv6
[RouterA-Tunnel0] source loopback 0
[RouterA-Tunnel0] destination 5::9
[RouterA-Tunnel0] ipv6 address 7::7 64
[RouterA-Tunnel0] tunnel sid-list A
[RouterA-Tunnel0] quit
# Configure a static route to direct traffic destined for Router C to the SRv6 tunnel.
[RouterA] ipv6 route-static 199::1 64 tunnel 0
4. Configure Router B:
# Configure SRv6 End.X SIDs.
[RouterB] segment-routing ipv6
[RouterB-segment-routing-ipv6] locator b1 ipv6-prefix 200:1::1:0 96 static 8
[RouterB-segment-routing-ipv6-locator-b1] opcode 1 end-x interface gigabitethernet
0/0/2 nexthop 2::2
[RouterB-segment-routing-ipv6-locator-b1] quit
[RouterB-segment-routing-ipv6] quit
# Configure OSPFv3 to advertise the SRv6 SIDs.
[RouterB] ospfv3 1
[RouterB-ospfv3-1] segment-routing ipv6 locator b1
[RouterB-ospfv3-1] quit
5. Configure Router C:
# Configure SRv6 End SIDs.
[RouterC] segment-routing ipv6
[RouterC-segment-routing-ipv6] locator c1 ipv6-prefix 300:1::1:0 96 static 8
[RouterC-segment-routing-ipv6-locator-c1] opcode 1 end
[RouterC-segment-routing-ipv6-locator-c1] quit
[RouterC-segment-routing-ipv6] quit
# Configure OSPFv3 to advertise the SRv6 SIDs.
[RouterC] ospfv3 1
[RouterC-ospfv3-1] segment-routing ipv6 locator c1
[RouterC-ospfv3-1] quit
# Configure an SID list, SRv6 tunnel, and static route on Router C in the same way as the settings are configured on Router A. The SID list, SRv6 tunnel, and static route on Router C are from Router C to Router A. (Details not shown.)
Verifying the configuration
# Verify the SID list information on Router A.
[RouterA] display ipv6 segment-routing sid-list
SID list name: A
SID information:
SID index Address
5 200:1::1:1
9 300:1::1:1
SID list usage on tunnels:
Tunnel number SID list role
148
Скачать
Реклама