H3C SR8800 10G Mpls Configuration Manual page 221

Core routers
Table of Contents

Advertisement

[CE1-GigabitEthernet4/1/1] ip address 100.1.1.1 24
Configure PE 1.
2.
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE1
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 192.2.2.2 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 192.2.2.2
[PE1] mpls
# Configure the LSP establishment triggering policy.
[PE1-mpls] lsp-trigger all
[PE1-mpls] quit
# Enable L2VPN and MPLS L2VPN.
[PE1] l2vpn
[PE1-l2vpn] mpls l2vpn
[PE1-l2vpn] quit
# Enable LDP globally.
[PE1] mpls ldp
[PE1-mpls-ldp] quit
# Configure the interface for connecting to the P router, namely GigabitEthernet 4/1/2, and
enable LDP on the interface.
[PE1] interface GigabitEthernet 4/1/2
[PE1-GigabitEthernet4/1/2] ip address 10.1.1.1 24
[PE1-GigabitEthernet4/1/2] mpls
[PE1-GigabitEthernet4/1/2] mpls ldp
[PE1-GigabitEthernet4/1/2] quit
# Configure OSPF on PE 1 for establishing LSPs.
[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
# On the interface connecting CE 1, namely GigabitEthernet 4/1/1, create an SVC MPLS L2VPN
connection. The interface requires no IP address.
[PE1] interface GigabitEthernet 4/1/1
[PE1-GigabitEthernet4/1/1]
transmit-vpn-label 100 receive-vpn-label 200
[PE1-GigabitEthernet4/1/1] quit
Configure the P router.
3.
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname P
[P] interface loopback 0
[P-LoopBack0] ip address 192.4.4.4 32
mpls
static-l2vc
210
destination
192.3.3.3

Advertisement

Table of Contents
loading

Table of Contents