HP HPE FlexNetwork MSR Router Series Configuration Manual page 449

Table of Contents

Advertisement

[P-GigabitEthernet2/0/2] ip address 10.2.2.2 24
[P-GigabitEthernet2/0/2] mpls enable
[P-GigabitEthernet2/0/2] mpls ldp enable
[P-GigabitEthernet2/0/2] quit
# Configure OSPF for LDP to create LSPs.
[P] ospf
[P-ospf-1] area 0
[P-ospf-1-area-0.0.0.0] network 10.1.1.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 10.2.2.2 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 192.4.4.4 0.0.0.0
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
4.
Configure PE 2:
# Configure an LSR ID.
<PE2> system-view
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 192.3.3.3 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 192.3.3.3
# Enable L2VPN.
[PE2] l2vpn enable
# Enable global LDP.
[PE2] mpls ldp
[PE2-ldp] quit
# Configure GigabitEthernet 2/0/2 (the interface connected to the P device), and enable LDP on
the interface.
[PE2] interface gigabitethernet 2/0/2
[PE2-GigabitEthernet2/0/2] ip address 10.2.2.1 24
[PE2-GigabitEthernet2/0/2] mpls enable
[PE2-GigabitEthernet2/0/2] mpls ldp enable
[PE2-GigabitEthernet2/0/2] quit
# Configure OSPF for LDP to create LSPs.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 10.2.2.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
# Create an IBGP connection to PE 1, and enable BGP to advertise L2VPN information to PE 1.
[PE2] bgp 100
[PE2-bgp] peer 192.2.2.2 as-number 100
[PE2-bgp] peer 192.2.2.2 connect-interface loopback 0
[PE2-bgp] address-family l2vpn
[PE2-bgp-l2vpn] peer 192.2.2.2 enable
[PE2-bgp-l2vpn] quit
[PE2-bgp] quit
# Create a cross-connect group named vpnb, create a local site named site 2, create a BGP
PW from site 2 to the remote site site 1, and bind GigabitEthernet 2/0/1 to the PW.
439

Advertisement

Table of Contents
loading

Table of Contents