beautypg.com

Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 176

background image

4-16

Figure 4-6

Bind a Layer 2 Ethernet interface and VLAN with a VPLS instance

Loop0

1.1.1.9/24

Loop0

2.2.2.9/24

Loop0

3.3.3.9/24

CE1

CE1

PE1

P

PE2

Vlan-int2
23.1.1.1/24

Vlan-int2

23.1.1.2/24

Vlan-int3
26.2.2.2/24

Vlan-int3

26.2.2.1/24

GE2/0/1

GE2/0/1

Configuration procedure

1) Configure PE 1

system-view

[Sysname] sysname PE1

[PE1] interface loopback 0

[PE1-LoopBack0] ip address 1.1.1.9 32

[PE1-LoopBack0] quit

# Configure the LSR ID and enable MPLS globally.

[PE1] mpls lsr-id 1.1.1.9

[PE1] mpls

[PE1-mpls] quit

# Enable MPLS L2VPN and LDP globally.

[PE1] mpls l2vpn

[PE1] mpls ldp

[PE1-mpls-ldp] quit

# Configure PE 1 to establish an LDP remote session with PE 2.

[PE1] mpls ldp remote-peer 1

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

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

# Configure the interface connected with 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

# Configure OSPF.

[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

# Configure BGP extensions.

[PE1] bgp 100

[PE1-bgp] peer 3.3.3.9 as-number 100

[PE1-bgp] peer 3.3.3.9 connect-interface loopback 0