2014年3月4日星期二

Configuration Example of MPLS - Based on Binding the VLAN with the PW Template

How to set up the LDP remote session, LSP and PW between the MA5680T  and the router.

Configure a route. PWE3 has no special requirements for the routing policy. Here, an OSPF route is considered as an example.
huawei(config)#ospf
huawei(config-ospf-1)#area 0
huawei(config-ospf-1-area-0.0.0.0)#network 1.1.1.1 0.0.0.0
huawei(config-ospf-1-area-0.0.0.0)#network 10.1.2.0 0.0.255.255
huawei(config-ospf-1-area-0.0.0.0)#quit
huawei(config-ospf-1)#quit
Configure a loopback port.
huawei(config)#interface loopback 1
huawei(config-if-loopback1)#ip address 1.1.1.1 32
huawei(config-if-loopback1)#quit
Configure the MPLS LSR ID.
huawei(config)#mpls lsr-id 1.1.1.1
Enable MPLS.
huawei(config)#mpls
huawei(config-mpls)#quit
huawei(config)#vlan 140 standard
huawei(config)#mpls vlan 140
huawei(config)#interface vlanif 140
huawei(config-if-vlanif140)#ip address 10.1.2.1 24
huawei(config-if-vlanif140)#mpls
huawei(config-if-vlanif140)#quit
Configure a VLAN interface.
huawei(config)#port vlan 140 0/7 2
huawei(config)#interface scu 0/7
huawei(config-if-scu-0/7)#native-vlan 2 vlan 140
huawei(config-if-scu-0/7)#quit
Enable MPLS LDP.
huawei(config)#mpls ldp
huawei(config-mpls-ldp)#quit
huawei(config)#interface vlanif 140
huawei(config-if-vlanif140)#mpls ldp
huawei(config-if-vlanif140)#quit
Configure a peer device.
huawei(config)#mpls ldp remote-peer router
huawei(config-mpls-ldp-remote-router)#remote-ip 10.1.3.2
huawei(config-mpls-ldp-remote-router)#quit
Configure the MPLS LDP trigger mechanism.
huawei(config)#mpls
huawei(config-mpls)#lsp-trigger host
huawei(config-mpls)#label advertise non-null
huawei(config-mpls)#quit
Enable MPLS L2VPN.
huawei(config)#mpls l2vpn
Create a VLAN.
huawei(config)#vlan 100 standard
Create a PW template.
huawei(config)#pw-template pweth
huawei(config-pw-template-pweth)#peer-address 10.1.3.2
huawei(config-pw-template-pweth)#pw-type ethernet tagged
huawei(config-pw-template-pweth)#quit
Bind the VLAN with the PW template.
The ID of the PW bound with the PVC must be the same as the ID of the PW for the remote peer.
huawei(config MA5683T )#pw-ac-binding vlan 100 pw 107 pw-template pweth

没有评论:

发表评论