H3C S9500 Series Operation Manual page 875

Routing switches
Hide thumbs Also See for S9500 Series:
Table of Contents

Advertisement

Operation Manual – MPLS VPLS
H3C S9500 Series Routing Switches
[PE-A] mpls
[PE-A] mpls ldp
[PE-A] mpls l2vpn
# Create public network VLAN 12, configure the VLAN interface, and then enable
MPLS and MPLS LDP for the VLAN interface.
[PE-A] vlan 12
[PE-A-vlan12] interface vlan-interface 12
[PE-A-Vlan-interface12] ip address 192.168.12.1 24
[PE-A-Vlan-interface12] mpls
[PE-A-Vlan-interface12] mpls ldp enable
[PE-A-Vlan-interface12] quit
# Configure a Loopback interface, Its IP address is used for the Router-ID.
[PE-A] interface LoopBack 0
[PE-A-LoopBack0] ip address 1.1.1.1 32
[PE-A-LoopBack0] quit
# Enable OSPF and advertise the routes of the interfaces.
[PE-A] ospf
[PE-A-ospf-1] area 0
[PE-A-ospf-1-area-0.0.0.0] network 192.168.12.0 0.0.0.255
[PE-A-ospf-1-area-0.0.0.0] network 192.168.14.0 0.0.0.255
[PE-A-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE-A-ospf-1-area-0.0.0.0] quit
# Configure an ACL redirection rule to permit VPLS packets. Configure a user-defined
flow template and apply it to the public network interface, so that VPLS packets from
the public network are redirected to the VPN service processor card.
[PE-A] acl number 4000
[PE-A-acl-link-4000] rule 0 permit mpls l2lable-range ingress any egress any
[PE-A-acl-link-4000] quit
[PE-A] flow-template user-defined slot 2 ethernet-protocol vlanid
[PE-A] interface GigabitEthernet 2/1/1
[PE-A-GigabitEthernet2/1/1] flow-template user-defined
[PE-A-GigabitEthernet2/1/1] traffic-redirect inbound link-group 4000 rule 0
slot 6 14 join-vlan
[PE-A-GigabitEthernet2/1/1] quit
# Configure an MPLS LDP remote session.
[PE-A] mpls ldp remote-peer 2
[PE-A-mpls-remote2] remote-ip 1.1.1.2
[PE-A-mpls-remote2] quit
# Perform a VPLS instance.
1-24
Chapter 1 VPLS Configuration

Advertisement

Table of Contents
loading

Table of Contents