R3303-HP HSR6800 Routers MPLS Configuration Guide
197
Figure 50 Network diagram
Device Interface IP address Device Interface IP address
CE 1 S2
/
1
/
0 30.1.1.1/24
CE 2
S2
/
1
/
0
30.1.1.2/24
PE 1 Loop0 1.1.1.9/32
P
Loop0
2.2.2.9/32
POS5/1/1 168.1.1.1/24 POS5/1/0 168.1.1.2/24
PE 2 Loop0 3.3.3.9/32
POS5/1/1 169.1.1.1/24
POS5/1
/
0 169.1.1.2/24
Configuration procedure
1. Configure an IGP on the MPLS backbone.
This example uses OSPF. (Details not shown.)
After configuration, execute the display ip routing-table command on each LSR. You can see that
the LSR has learned the routes to the LSR IDs of the other LSRs. Execute the display ospf peer
command, and you can see that OSPF adjacencies in Full state have been established.
2. Configure basic MPLS and LDP to establish LDP LSPs. (Details not shown.)
After configuration, you can execute the display mpls ldp session and display mpls ldp peer
commands to view the LDP sessions and peer relationship established, or the display mpls lsp
command to view the LSPs established.
3. Configure BGP L2VPN capability:
# Configure PE 1.
<Sysname> system-view
[Sysname] sysname PE1
[PE1] l2vpn
[PE1-l2vpn] mpls l2vpn
[PE1-l2vpn] quit
[PE1] bgp 100
[PE1-bgp] peer 3.3.3.9 as-number 100
[PE1-bgp] peer 3.3.3.9 connect-interface loopback 0
[PE1-bgp] l2vpn-family
[PE1-bgp-af-l2vpn] policy vpn-target
[PE1-bgp-af-l2vpn] peer 3.3.3.9 enable
[PE1-bgp-af-l2vpn] quit
[PE1-bgp] quit
# Configure PE 2.
<Sysname> system-view