HP FlexNetwork HSR6600 Configuration Manual page 437

Comware 7 mpls
Hide thumbs Also See for FlexNetwork HSR6600:
Table of Contents

Advertisement

# Enable L2VPN.
[PE1] l2vpn enable
# Configure GigabitEthernet 1/1/2 (the interface connected to the P device), and enable MPLS
on the interface.
[PE1] interface gigabitethernet 1/1/2
[PE1-GigabitEthernet1/1/2] ip address 10.1.1.1 24
[PE1-GigabitEthernet1/1/2] mpls enable
[PE1-GigabitEthernet1/1/2] quit
# Configure OSPF.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 192.2.2.2 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Create a cross-connect group named ccc, and create a remote CCC connection that has
incoming label 101, outgoing label 201, and next hop 10.1.1.2.
[PE1] xconnect-group ccc
[PE1-xcg-ccc] connection ccc
[PE1-xcg-ccc-ccc] ccc in-label 101 out-label 201 nexthop 10.1.1.2
# Bind GigabitEthernet 1/1/1 to the CCC connection.
[PE1-xcg-ccc-ccc] ac interface gigabitethernet 1/1/1
[PE1-xcg-ccc-ccc] quit
[PE1-xcg-ccc] quit
3.
Configure the P device:
# Configure an LSR ID.
<P> system-view
[P] interface loopback 0
[P-LoopBack0] ip address 192.4.4.4 32
[P-LoopBack0] quit
[P] mpls lsr-id 192.4.4.4
# Configure GigabitEthernet 1/1/1 (the interface connected to PE 1), and enable MPLS on the
interface.
[P] interface gigabitethernet 1/1/1
[P-GigabitEthernet1/1/1] ip address 10.1.1.2 24
[P-GigabitEthernet1/1/1] mpls enable
[P-GigabitEthernet1/1/1] quit
# Configure GigabitEthernet 1/1/2 (the interface connected to PE 2), and enable MPLS on the
interface.
[P] interface gigabitethernet 1/1/2
[P-GigabitEthernet1/1/2] ip address 10.2.2.2 24
[P-GigabitEthernet1/1/2] mpls enable
[P-GigabitEthernet1/1/2] quit
# Configure a static LSP to forward packets from PE 1 to PE 2.
[P] static-lsp transit pe1-pe2 in-label 201 nexthop 10.2.2.1 out-label 202
# Configure a static LSP to forward packets from PE 2 to PE 1.
[P] static-lsp transit pe2-pe1 in-label 102 nexthop 10.1.1.1 out-label 101
# Configure OSPF.
427

Advertisement

Table of Contents
loading

Table of Contents