Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual
Page 220

5-28
Vlan-int20
10.1.1.1/24
Vlan-int30
10.2.2.2/24
CE 2
Vlan-int10
100.1.1.2/24 PE
2 Loop0
4.4.4.4/32
Vlan-int30
10.2.2.1/24
Configuration procedure
1) Configure IGP on the MPLS backbone
This example uses OSPF. The detailed configuration steps are omitted.
After configuration, issuing the display ip routing-table command on each LSR, you should see that
it has learned the routes to the LSR IDs of the other LSRs. Issuing the display ospf peer command,
you should see that OSPF adjacencies have been established and reached the state of Full.
2) Configure MPLS basic capability and LDP to establish LDP LSPs
The detailed configuration steps are omitted.
After configuration, you can issue 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] sysname PE1
[PE1] mpls l2vpn
[PE1] bgp 100
[PE1-bgp] peer 4.4.4.4 as-number 100
[PE1-bgp] peer 4.4.4.4 connect-interface loopback 0
[PE1-bgp] l2vpn-family
[PE1-bgp-af-l2vpn] policy vpn-target
[PE1-bgp-af-l2vpn] peer 4.4.4.4 enable
[PE1-bgp-af-l2vpn] quit
[PE1-bgp] quit
# Configure PE 2.
[Sysname] sysname PE2
[PE2] mpls l2vpn
[PE2] bgp 100
[PE2-bgp] peer 2.2.2.2 as-number 100
[PE2-bgp] peer 2.2.2.2 connect-interface loopback 0
[PE2-bgp] l2vpn-family
[PE2-bgp-af-l2vpn] policy vpn-target
[PE2-bgp-af-l2vpn] peer 2.2.2.2 enable
[PE2-bgp-af-l2vpn] quit
[PE2-bgp] quit
After completing the above configurations, you can issue the display bgp l2vpn peer command on
PE 1 and PE 2 to view the peer relationship established between the PEs. The status should be
Established. The following takes PE 1 as an example:
[PE1] display bgp l2vpn peer
BGP local router ID : 2.2.2.2
Local AS number : 100
Total number of peers : 1 Peers in established state : 1