MPLS virtual private network OptionB experiment (Huawei equipment)

Experimental topology:

Insert picture description here
Step 1: Configure the IP address (note that there is no need to create VPN instances between ASBRs, and the RT values ​​of the two PE instances need to be the same) On
PE1: On
Insert picture description here
PE2:
Insert picture description here
Step 2: The establishment of the IGP neighbor relationship in the area, MPLS Configuration (omitted, it should be noted that the interface between the two ASBRs needs to be configured with MPLS, but MPLS LDP does not need to be enabled).

Step 3: Configure BGP peers (take PE1, CE1, and ASBR1 as examples).
CE1:
Insert picture description here
PE1:
Insert picture description here
ASBR: Be careful to disable VPN-Target detection and enable the use of the next hop for label allocation.
Insert picture description here

Traffic analysis: CE1pingCE2:

CE1 sends a packet (destination address 8.8.8.8/32) to PE1, uses the RD value to find the corresponding VRF, unpacks the corresponding FIB table, encapsulates the inner label 1026, and knows that the tunnel ID is 0x3:
Insert picture description here
So check the LFIB Table:
Insert picture description here
Check the next hop information, encapsulate 1025 as the outer label, and send it from the outgoing interface G0/0/1.
Insert picture description here
After P1 receives it, check the LFIB table: the outgoing label is hidden label 3, so the outer label is stripped and sent out from the g0/0/1 interface.
Insert picture description here
After ASBR1 receives it, it checks the LFIB table, because only the inner label is matched to the incoming label 1027, and the outgoing label is switched to 1027.
Insert picture description here
Detailed information:
Insert picture description here
Although there is no outgoing interface in this table, the relay token can be found through the BGP Key corresponding to the relay tunnel out-interface. Use the command dis bgp vpnv4 all routing-table 8.8.8.8 (destination address) to find it. The outgoing interface here is g0/0/1, which is sent to ASBR2.

After the ASBR receives it, check the LFIB table:
Insert picture description here
exchange the labels, check the detailed information:
Insert picture description here
find the outer encapsulated label 1024 according to the outgoing token 0x4 corresponding to the token, and send it to P2: After
Insert picture description here
P2 receives it, check the LFIB table: found out The label is 3 (implicit label), and the outgoing interface is g0/0/0.
Insert picture description here
The outer label is stripped and sent. After receiving it, PE2 finds that there is only the inner 1026 label, and the out label is NULL:
Insert picture description here
so the stripped label is sent from the vrf forwarding table of to65002 to CE1 to complete the data transmission.Insert picture description here

Guess you like

Origin blog.csdn.net/tushanpeipei/article/details/113095430