0% found this document useful (0 votes)
169 views

MPLS Huawei

The document configures MPLS and LDP on a router, including enabling MPLS functions, setting the router ID, configuring LDP peerings with other routers, configuring OSPF and interfaces, and defining VPLS pseudowires to connect to other routers.

Uploaded by

kaueararantes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
169 views

MPLS Huawei

The document configures MPLS and LDP on a router, including enabling MPLS functions, setting the router ID, configuring LDP peerings with other routers, configuring OSPF and interfaces, and defining VPLS pseudowires to connect to other routers.

Uploaded by

kaueararantes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

Habilitar o mpls na caixa e define o lsr-id (Mesmo não usando mpls-te, sugiro já

deixar habilitada a função)

router id 10.64.255.9

mpls lsr-id 10.64.255.9

hwtacacs-server template ts-aaa


hwtacacs-server authentication 10.64.255.123
hwtacacs-server authorization 10.64.255.123
hwtacacs-server accounting 10.64.255.123
hwtacacs-server source-ip source-loopback 0
hwtacacs-server shared-key cipher %^%#J=&=Wt4-jPy2@##n_niEqt"~Cj%(jM'rKy"('gK!
gy=W*Dg}q+HayFM;8LO*-~~<:lOD1$0nTMU#Q}W7`u.P5Ax>L2WwvC2u;<(2J468BN\ULFskE3Li{W(1%^
%#

bfd

mpls
mpls te
label advertise explicit-null
mpls rsvp-te
mpls rsvp-te hello
mpls te cspf

mpls l2vpn#
mpls ldp

vlan bat 2 3921 4080 4078 4038 3994 4094 3932 4030 1300
vlan bat 117 125 134 1124 2992 2993 2027 2026 4027 4028
vlan bat 101 100

. Configure os neighbors (seria o targeted do Datacom)

mpls ldp

mpls ldp remote-peer GUA


remote-ip 10.64.255.14
mpls ldp remote-peer AGV
remote-ip 10.64.255.8
mpls ldp remote-peer ALA
remote-ip 10.64.255.32
mpls ldp remote-peer PDC
remote-ip 10.64.254.1
mpls ldp remote-peer STN
remote-ip 10.64.255.6
mpls ldp remote-peer PMW
remote-ip 10.64.255.1
mpls ldp remote-peer PIT
remote-ip 10.64.255.2
mpls ldp remote-peer BBU
remote-ip 10.64.254.2
mpls ldp remote-peer FLO
remote-ip 10.64.254.3
mpls ldp remote-peer VL8
remote-ip 10.64.254.25
mpls ldp remote-peer XGR
remote-ip 10.64.254.7
mpls ldp remote-peer BSY
remote-ip 10.64.254.24
mpls ldp remote-peer APO
remote-ip 10.64.254.29
mpls ldp remote-peer ELN
remote-ip 10.64.255.51

ospf 1
bfd all-interfaces enable
import-route direct
opaque-capability enable
enable traffic-adjustment advertise
area 0.0.0.0
mpls-te enable
network 10.64.255.9 0.0.0.0
network 10.64.255.86 0.0.0.1
network 10.64.255.240 0.0.0.1
network 10.64.255.238 0.0.0.1
network 10.64.255.198 0.0.0.1
network 10.64.254.254 0.0.0.1
network 10.64.255.88 0.0.0.1
network 10.64.255.190 0.0.0.1

interface Vlanif3921
description VL-OSPF-GUA
ip address 10.64.255.87 255.255.255.254
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0
mpls
mpls ldp

interface Vlanif4080
description VL-OSPF-AGV
ip address 10.64.255.241 255.255.255.254
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0
mpls
mpls ldp

interface Vlanif4078
description VL-OSPF-ALC
ip address 10.64.255.238 31
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0
mpls
mpls ldp
interface Vlanif4038
description VL-OSPF-CORE-RDC
ip address 10.64.255.198 31
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0
mpls
mpls ldp

interface Vlanif4094
description VL-OSPF-PDC
ip address 10.64.254.254 31
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0
mpls
mpls ldp

interface Vlanif3932
description VL-OSPF-STN
ip address 10.64.255.88 31
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0
mpls
mpls ldp

interface Vlanif4030
description VL-OSPF-SW-ENCODERS
ip address 10.64.255.190 31
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0

int loop 0
ip add 10.64.255.9 32

. Definir vlans do ospf e criar instancia do ospf

cpu-defend policy 1
car packet-type icmp cir 4096 cbs 770048
car packet-type snmp cir 4096 cbs 770048
auto-defend threshold 30
auto-defend protocol arp ttl-expired

snmp-agent
snmp-agent local-engineid 800007DB03C8B6D30231C0
snmp-agent community read cipher %^%#%>xdYZzw|L,w3M3E|\{X[ilR6</3-XY/AyPlv^SA'wI#L
%QjPS=Hy<Uy^$60`,r35"xO)HGphK%5U}X0%^%#
snmp-agent community complexity-check disable
snmp-agent sys-info contact NOC ZAP TELECOM <[email protected]>
snmp-agent sys-info location GUA
snmp-agent sys-info version all
snmp-agent trap source LoopBack0
snmp-agent trap enable
snmp-agent protocol source-status all-interface
snmp-agent protocol source-status ipv6 all-interface
snmp-agent blacklist ip-block disable

pw-template CLI_CDN-GARRA
peer-address 10.64.255.1
mtu 9198
int vlan 1300
desc CLI_CDN-GARRA
mpls l2vc pw-template CLI_CDN-GARRA 1300 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_IP-GARRA_PIT
peer-address 10.64.255.2
mtu 9198
int vlan 117
desc CLI_IP-GARRA_PIT
mpls l2vc pw-template CLI_IP-GARRA_PIT 117 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_IP-NETMIL-RDC
peer-address 10.64.255.2
mtu 9198
int vlan 125
desc CLI_IP-NETMIL-RDC
mpls l2vc pw-template CLI_IP-NETMIL-RDC 125 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_IP-PMR
peer-address 10.64.255.2
mtu 9198
int vlan 134
desc CLI_IP-PMR
mpls l2vc pw-template CLI_IP-PMR 134 mtu 9198
mpls l2vpn flow-label both

pw-template TP-CTE_XRG-RDC01
peer-address 10.64.254.7
mtu 9198
int vlan 1124
desc TP-CTE_XRG-RDC01
mpls l2vc pw-template TP-CTE_XRG-RDC01 1124 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_TP-GARRA-IPV4
peer-address 10.64.255.51
mtu 9198
int vlan 2992
desc CLI_TP-GARRA-IPV4
mpls l2vc pw-template CLI_TP-GARRA-IPV4 2992 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_TP-GARRA-IPV6
peer-address 10.64.255.51
mtu 9198
int vlan 2993
desc CLI_TP-GARRA-IPV6
mpls l2vc pw-template CLI_TP-GARRA-IPV6 2993 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_TP-IP-NMIL-BNC
peer-address 10.64.254.2
mtu 9198
int vlan 2026
desc CLI_TP-IP-NMIL-BNC
mpls l2vc pw-template CLI_TP-IP-NMIL-BNC 2026 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_IP-LHSTELECOM
peer-address 10.64.254.11
mtu 9198
int vlan 107
desc CLI_IP-LHSTELECOM
mpls l2vc pw-template CLI_IP-LHSTELECOM 107 mtu 9198
mpls l2vpn flow-label both

pw-template CLI_TP-NMIL-LT8
peer-address 10.64.254.25
mtu 9198
int vlan 4028
desc CLI_TP-NMIL-LT8
mpls l2vc pw-template CLI_TP-NMIL-LT8 4028 mtu 9198
mpls l2vpn flow-label both

pw-template VPN_ZAP-IP_RDC
peer-address 10.64.255.2
mtu 9198
int vlan 101
desc VPN_ZAP-IP_RDC
mpls l2vc pw-template VPN_ZAP-IP_RDC 101 mtu 9198
mpls l2vpn flow-label both

pw-template WAN_ZAP-RDC
peer-address 10.64.255.2
mtu 9198
int vlan 100
desc WAN_ZAP-RDC
mpls l2vc pw-template WAN_ZAP-RDC 100 mtu 9198
mpls l2vpn flow-label both

interface Vlanif4000
description CORE_OSPF
ip address 100.113.3.253 255.255.255.252
ospf network-type p2p
mtu 1558
ospf enable 1 area 0.0.0.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
mpls ldp

. Cada tunnel VPLS no Datacom é preciso criar um VSI antes para ele

vsi VL476
pwsignal ldp
vsi-id 476
flow-label both
peer 100.112.0.10
mtu 1516
encapsulation ethernet

. Na Vlanif do tunnel mpls ou na subinterface, passar a informação do vpls para


fechar o tunnel:

interface Vlanif476
l2 binding vsi VL476
[09:44, 28/06/2022] Aureliano Arantes: No huawei não cria vpws?
[09:44, 28/06/2022] Leandro OpenX: Cria
[09:45, 28/06/2022] Leandro OpenX: Aí é diferente
[09:45, 28/06/2022] Leandro OpenX: ao invés de vc criar VSI, vc tem que fazer um
L2VC
O que eu geralmente faço é deixar um template criado por destino.
[09:46, 28/06/2022] Leandro OpenX:

pw-template smo
peer-address 100.112.0.10
mtu 9198

Daí na vlanif do tunnel vc chama ele:

int vlanif 476


mpls l2vc pw-template smo 476 raw

Esse raw no fim é de for pw-type ethernet.


Sem ele seria pw-type vlan

You might also like