Seguem os comandos necessários para configurar o MPLS na linha mA5800.
Configurar um interface LoopBack.
interface loopback 0 ip address <IP_LOOP_BACK> 32 quit
Configurar o MPLS LSR-ID. Recomendamos usar o IP da LoopBack 0 como LSR-ID.
mpls lsr-id <IP_LOOP_BACK>
Habilitar o MPLS na caixa.
mpls lsp-trigger host quit
Habilitar o L2VPN.
mpls l2vpn
Habilitar o LDP e o split-horizon para todos os peers.
mpls ldp outbound peer all split-horizon quit
Configurar as VLANs e ativar MPLS para cada VLAN e cada interface VLAN.
Adiconar as VLANs na caixa e definir as portas por onde cada uma delas vai sair.
vlan 1000 smart port vlan 1000 0/19/0 port vlan 1000 0/19/1 vlan 2000 smart port vlan 2000 0/19/0 port vlan 2000 0/19/1
Habilitar o MPLS nas VLANs
mpls vlan 1000 mpls vlan 2000
Configurar os respectivos IPs em cada uma das interfaces VLAN e ativar o MPLS e o MPLS LDP.
interface vlanif 1000 ip address <IP_VLAN_1000> 30 mpls mpls ldp quit interface vlanif 2000 ip address <IP_VLAN_2000> 30 mpls mpls ldp quit
Configurar o OSPF e a respectiva área.
ospf 1 area 10 network <IP_VLAN_1000> 0.0.0.3 network <IP_VLAN_2000> 0.0.0.3 network <IP_LOOP_BACK> 0.0.0.0 return
Configurar as seções remotas do LDP.
mpls ldp remote-peer PEER_MPLS_01 remote-ip MPLS_IP_PEER_MPLS_01 remote-ip auto-dod-request quit mpls ldp remote-peer PEER_MPLS_02 remote-ip MPLS_IP_PEER_MPLS_02 remote-ip auto-dod-request quit
Configurar uma VSI.
Adicionando uma VSI.
vsi hsi pwsignal ldp vsi-id 1
Configurar PWs.
pw-para pwindex 1 service-type vpls pwid 1 peer-address MPLS_IP_PEER_MPLS_01 pw-type ethernet tagged control-word enable dyn-receive-label 10240 quit pw-para pwindex 2 service-type vpls pwid 2 peer-address MPLS_IP_PEER_MPLS_02 pw-type ethernet tagged control-word enable dyn-receive-label 10250 quit
Vincular os PWs e as VSIs.
vsi hsi vsi-pw-binding pwindex 1 vsi-pw-binding pwindex 2 vsi-ac-binding vlan 199
Vincular AC e VSI
vsi-ac-binding vlan 199