beautypg.com

Configuring the p device – H3C Technologies H3C Intelligent Management Center User Manual

Page 117

background image

system-view

[Sysname] sysname PE1

[PE1] interface loopback 0

[PE1-LoopBack0] ip address 1.1.1.9 32

[PE1-LoopBack0] quit

2.

Configure the LSR ID and enable MPLS globally.

[PE1] mpls lsr-id 1.1.1.9

[PE1] mpls

[PE1-mpls] quit

3.

Enable L2VPN and MPLS L2VPN.

[PE1] l2vpn

[PE1-l2vpn] mpls l2vpn

[PE1-l2vpn] quit

4.

Enable LDP globally.

[PE1] mpls ldp

[PE1-mpls-ldp] quit

5.

Configure VLAN-interface 2 that connects to the P device, and enable LDP on the interface.

[PE1] interface vlan-interface 2

[PE1-Vlan-interface2] ip address 23.1.1.1 24

[PE1-Vlan-interface2] mpls

[PE1-Vlan-interface2] mpls ldp

[PE1-Vlan-interface2] quit

6.

Configure OSPF for LSP establishment.

[PE1] ospf

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] network 23.1.1.1 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

7.

Configure Ethernet 1/1 as a trunk port, and configure the port to permit packets from VLAN 100
to pass through.

[PE1] interface ethernet 1/1

[PE1-Ethernet1/1] port link-type trunk

[PE1-Ethernet1/1] port trunk permit vlan 100

Configuring the P device

1.

Configure a loopback interface and its IP address.

system-view

[Sysname] sysname P

[P] interface loopback 0

[P-LoopBack0] ip address 2.2.2.9 32

[P-LoopBack0] quit

2.

Configure the LSR ID and enable MPLS globally.

[P] mpls lsr-id 2.2.2.9

[P] mpls

107