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

Page 380

Advertising
background image

367

[PE2-ospf-1-area-0.0.0.0] network 192.4.4.4 0.0.0.0

[PE2-ospf-1-area-0.0.0.0] network 22.2.2.1 0.0.0.255

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

[PE2-ospf-1] quit

# Create VLAN 10 and assign FortyGigE 1/0/1 to the VLAN.

[PE2] vlan 10

[PE2-vlan10] port fortygige 1/0/1

[PE2-vlan10] quit

# Create service instance 1000 on FortyGigE 1/0/1 to match packets that have an outer VLAN
ID of 10.

[PE2] interface fortygige1/0/1

[PE2-FortyGigE1/0/1] service-instance 1000

[PE2-FortyGigE1/0/1-srv1000] encapsulation s-vid 10

[PE2-FortyGigE1/0/1-srv1000] quit

[PE2-FortyGigE1/0/1] quit

# Create a cross-connect group named vpn1, create a cross-connect named ldp in the group, and
bind service instance 1000 on FortyGigE 1/0/1 to the cross-connect.

[PE2] xconnect-group vpn1

[PE2-xcg-vpn1] connection ldp

[PE2-xcg-vpn1-ldp] ac interface fortygige 1/0/1 service-instance 1000

# Create an LDP PW for the cross-connect to bind the AC to the PW.

[PE2-xcg-vpn1-ldp] peer 192.3.3.3 pw-id 1000

[PE2-xcg-vpn1-ldp-192.3.3.3-1000] quit

[PE2-xcg-vpn1-ldp] quit

[PE2-xcg-vpn1] quit

6.

Configure CE 2.

<CE2> system-view

[CE2] vlan 10

[CE2-vlan10] quit

[CE2] interface vlan-interface 10

[CE2-Vlan-interface10] ip address 100.1.1.2 24

[CE2-Vlan-interface10] quit

[CE2] interface fortygige 1/0/1

[CE2-FortyGigE1/0/1] port link-type trunk

[CE2-FortyGigE1/0/1] port trunk permit vlan 10

[CE2-FortyGigE1/0/1] quit

Verifying the configuration

# Display L2VPN PW information on PE 1. The output shows that a PW has been created.

[PE1] display l2vpn pw

Flags: M - main, B - backup, H - hub link, S - spoke link, N - no split horizon

Total number of PWs: 1, 1 up, 0 blocked, 0 down, 0 defect

Xconnect-group Name: vpn1

Peer PW ID In/Out Label Proto Flag Link ID State

192.2.2.2 1000 65651/65779 LDP M 1 Up

Advertising