beautypg.com

Verifying the configuration – H3C Technologies H3C S6800 Series Switches User Manual

Page 408

background image

395

[PE2-FortyGigE1/0/1-srv10] encapsulation default

# Bind service instance 10 to the VSI aaa.

[PE2-FortyGigE1/0/1-srv10] xconnect vsi aaa

4.

Configure PE 3:
# Configure basic MPLS.

system-view

[PE3] interface loopback 0

[PE3-LoopBack0] ip address 3.3.3.9 32

[PE3-LoopBack0] quit

[PE3] mpls lsr-id 3.3.3.9

[PE3] mpls ldp

[PE3-ldp] quit

# Establish IBGP connections to PE 1 and PE 2, and use BGP to advertise VPLS label block

information.

[PE3] bgp 100

[PE3-bgp] peer 1.1.1.9 as-number 100

[PE3-bgp] peer 1.1.1.9 connect-interface loopback 0

[PE3-bgp] peer 2.2.2.9 as-number 100

[PE3-bgp] peer 2.2.2.9 connect-interface loopback 0

[PE3-bgp] address-family l2vpn

[PE3-bgp-l2vpn] peer 1.1.1.9 enable

[PE3-bgp-l2vpn] peer 2.2.2.9 enable

[PE3-bgp-l2vpn] quit

[PE3-bgp] quit

# Enable L2VPN.

[PE3] l2vpn enable

# Configure the VSI aaa to use BGP to establish BGP PWs to PE 1 and PE 2.

[PE3] vsi aaa

[PE3-vsi-aaa] auto-discovery bgp

[PE3-vsi-aaa-auto] route-distinguisher 1:1

[PE3-vsi-aaa-auto] vpn-target 1:1

[PE3-vsi-aaa-auto] signaling-protocol bgp

[PE3-vsi-aaa-auto-bgp] site 3 range 10 default-offset 0

[PE3-vsi-aaa-auto-bgp] quit

[PE3-vsi-aaa-auto] quit

[PE3-vsi-aaa] quit

# Create service instance 10 on FortyGigE 1/0/1 to match all packets.

[PE3] interface fortygige1/0/1

[PE3-FortyGigE1/0/1] service-instance 10

[PE3-FortyGigE1/0/1-srv10] encapsulation default

# Bind service instance 10 to the VSI aaa.

[PE3-FortyGigE1/0/1-srv10] xconnect vsi aaa

Verifying the configuration

# Verify that two BGP PWs have been established on PE 1.

[PE1] display l2vpn pw verbose

VSI Name: aaa