Example: Configuring an SRv6 service chain in masquerading mode with Layer 2 encapsulation. Aruba FlexNetwork MSR958X_2003X Routers Comware 9 Segment Routing, S0P11A, S0W31A
Реклама
Реклама
Next hop : 10::1 Out-interface : GE0/0/2
In-interface : GE0/0/2
Owner : SIDMGR State : Active
Create Time : May 19 17:21:15.687 2020
Example: Configuring an SRv6 service chain in masquerading mode with Layer 2 encapsulation
Network configuration
As shown in Figure 97 , CE 1 and CE 2 belong to one VPN instance. In the network, deploy an SRv6
service chain in masquerading mode to orchestrate the service traffic from CE 1 to pass through the
SF to reach CE 2.
SFF 1 is connected to the SF through a Layer 3 Ethernet subinterface. Layer 2 encapsulation is used for packets forwarded between the SFF and SF.
To meet the requirements, perform the following tasks:
•
On the SC and tail node, configure the VPN instance settings and steer service traffic to an
SRv6 TE policy. The forwarding path in the policy is SC—> SFF 1 —> SF —> Tail.
•
On SFF 1, configure an SRv6 service chain in masquerading mode with Layer 2 encapsulation.
Figure 97 Network diagram
SF
SC
GE0/0/2
GE0/0/1
GE0/0/1
GE0/0/1
GE0/0/2.1
GE0/0/3
SFF 1
CE 1
Device
SC
Tail
Interface
Loop1
GE0/0/1
GE0/0/2
Loop1
GE0/0/1
GE0/0/2
IP address
1::1/128
16.0.0.2/30
100::1/96
5::5/128
57.0.0.1/30
400::2/96
Prerequisites
•
Plan SRv6 SIDs on each device.
Device
SFF 1
CE 1
CE 2
374
Tail
GE0/0/2
GE0/0/1
GE0/0/1
CE 2
Interface
Loop1
GE0/0/1
GE1/0/3
Loop1
GE0/0/1
Loop1
GE0/0/1
IP address
2::2/128
100::2/96
400::1/96
6.6.6.6/32
16.0.0.1/30
7.7.7.7/32
57.0.0.2/30
On the SC, the network of locator a is 1000::/64, the End SID is 1000::1, and the End.DT4
SID is 1000::2.
On SFF 1, the network of locator b is 2000::/64, the End SID is 2000::1, the network of locator am1 is 2001::/64, and the End.AM SID is 2001::1.
On the tail node, the network of locator e is 5000::/64, the End SID is 5000::1, and the
End.DT4 SID is 5000::2.
•
Plan the traffic forwarding tunnel and the explicit path of the tunnel. In this example, traffic on the SC is forwarded to the tail node through the explicit path of an SRv6 TE policy. In the forwarding path, SFF 1 forwards the traffic to the SF. The SF processes the traffic and forwards the traffic back to SFF 1. SFF 1 forwards the traffic to the tail node.
Procedure
IMPORTANT:
L3VPN and SRv6 TE policy settings are the same for masquerading-mode SRv6 service chains that use Layer 2 encapsulation and Layer 3 encapsulation. This example only covers the configuration
that Layer 2 encapsulation differs from Layer 3 encapsulation. For more information, see " Example:
Configuring an SRv6 service chain in masquerading mode with Layer 3 encapsulation ."
# On SFF 1, configure basic settings for the SRv6 service chain in masquerading mode.
<SFF1> system-view
[SFF1] interface gigabitethernet 0/0/2.1
[SFF1-GigabitEthernet0/0/2.1] vlan-type dot1q vid 2
[SFF1-GigabitEthernet0/0/2.1] quit
[SFF1-segment-routing-ipv6] locator am1 ipv6-prefix 2001:: 64 static 32
[SFF1-segment-routing-ipv6-locator-am1] opcode 1 end-am
[SFF1-segment-routing-ipv6-locator-am1-endam-1] encapsulation eth out-interface gigabitethernet 0/0/2.1 out-s-vlan 2 in-interface gigabitethernet 0/0/2.1 in-s-vlan 2
[SFF1-segment-routing-ipv6-locator-am1-endam-1] quit
[SFF1-segment-routing-ipv6-locator-am1] quit
[SFF1-segment-routing-ipv6] quit
[SFF1] isis 1
[SFF1-isis-1] address-family ipv6 unicast
[SFF1-isis-1-ipv6] segment-routing ipv6 locator am1
[SFF1-isis-1-ipv6] quit
[SFF1-isis-1] quit
Verifying the configuration
# On SFF 1, display End.AM SID forwarding information.
[SFF1] display segment-routing ipv6 local-sid end-am
Local SID forwarding table (End.AM)
Total SIDs: 1
SID : 2001::1/64
Function type : End.AM Allocation type: Static
Locator name : am1 Forward type : L2
Encapsulation count: 1
Out-interface: GE0/0/2.1 In-interface : GE0/0/2.1
Out-S-VLAN : 2 Out-C-VLAN : -
375
Изтегляне
Реклама