beautypg.com

Configuring devices, Configuring ce 1, Configuring pe 1 – H3C Technologies H3C Intelligent Management Center User Manual

Page 129

background image

Configuring devices

Configuring CE 1

# Configure an IP address for VLAN-interface 10 that connects to PE 1.

system-view

[Sysname] sysname CE1

[CE1] interface vlan-interface 10

[CE1-Vlan-interface10] ip address 100.1.1.1 24

Configuring PE 1

1.

Configure a loopback interface and its IP address.

system-view

[Sysname] sysname PE1

[PE1] interface loopback 0

[PE1-LoopBack0] ip address 192.2.2.2 32

[PE1-LoopBack0] quit

2.

Configure the LSR ID and enable MPLS globally.

[PE1] mpls lsr-id 192.2.2.2

[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.

Establish a remote LDP session to PE 2.

[PE1] mpls ldp remote-peer 1

[PE1-mpls-ldp-remote-1] remote-ip 192.3.3.3

[PE1-mpls-ldp-remote-1] quit

6.

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

[PE1] interface vlan-interface 23

[PE1-Vlan-interface23] ip address 23.1.1.1 24

[PE1-Vlan-interface23] mpls

[PE1-Vlan-interface23] mpls ldp

[PE1-Vlan-interface23] quit

7.

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 192.2.2.2 0.0.0.0

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

[PE1-ospf-1] quit

119