0% found this document useful (0 votes)
4 views12 pages

Questão 1: //configurando A Interface de R1

The document describes the configuration of an MPLS VPN network with three PE routers connecting two CE routers each. It provides the detailed configuration commands used to set IP addresses, enable routing protocols, configure MPLS and VPNv4 address families, and establish MP-BGP peering between the PE routers.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views12 pages

Questão 1: //configurando A Interface de R1

The document describes the configuration of an MPLS VPN network with three PE routers connecting two CE routers each. It provides the detailed configuration commands used to set IP addresses, enable routing protocols, configure MPLS and VPNv4 address families, and establish MP-BGP peering between the PE routers.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Questo 1

Para resolver as questes foi utilizado o roteador cuja a imagem [Link]


Para resolver a questo 1, foram utilizados os seguintes passos:
Passo 1(Atribuindo os Ips da Interface)
Passo 2(Atribuindo a loopback)
Passo 3(Configurando o MPLS)
Passo 4(Configurando o protocolo de roteamento)
Para o passo 1, temos:
//Configurando a interface de R1
enable
configure terminal
interface f0/0
ip address [Link] [Link]
no shutdown
end
write

//Configurando a interface de R2
enable
configure terminal
interface f0/0
ip address [Link] [Link]
no shutdown
interface f0/1
ip address [Link] [Link]
no shutdown
end
write

//Configurando a interface de R3
enable
configure terminal
interface f0/0
ip address [Link] [Link]
no shutdown
interface f0/1
ip address [Link] [Link]
no shutdown
end
write

//Configurando a interface de R4
enable
configure terminal
interface f0/0
ip address [Link] [Link]
no shutdown
interface f0/1
ip address [Link] [Link]
no shutdown
end
write
//Configurando a interface de R5
enable
configure terminal
interface f0/0
ip address [Link] [Link]
no shutdown
interface f0/1
ip address [Link] [Link]
no shutdown
end
write

//Configurando a interface de R6
enable
configure terminal
interface f0/0
ip address [Link] [Link]
no shutdown
end
write

//Para checar se os IPs foram atribuidos corretamente....


show ip interface brief
show running-config

Para o passo 2, temos:


//Configurando o loopback de R1
enable
configure terminal
interface loopback 0
ip address [Link] [Link]
end
write

//Configurando o loopback de R2
enable
configure terminal
interface loopback 0
ip address [Link] [Link]
end
write

//Configurando o loopback de R3
enable
configure terminal
interface loopback 0
ip address [Link] [Link]
end
write

//Configurando o loopback de R4
enable
configure terminal
interface loopback 0
ip address [Link] [Link]
end
write

//Configurando o loopback de R5
enable
configure terminal
interface loopback 0
ip address [Link] [Link]
end
write
//Configurando o loopback de R6
enable
configure terminal
interface loopback 0
ip address [Link] [Link]
end
write

Para o passo 3, temos:


//Configurando o MPLS no roteador R1
enable
configure terminal
interface f0/0
mpls ip
end
write

//Configurando o MPLS no roteador R2


enable
configure terminal
interface f0/0
mpls ip
interface f0/1
mpls ip
end
write

//Configurando o MPLS no roteador R3


enable
configure terminal
interface f0/0
mpls ip
interface f0/1
mpls ip
end
write

//Configurando o MPLS no roteador R4


enable
configure terminal
interface f0/0
mpls ip
interface f0/1
mpls ip
end
write

//Configurando o MPLS no roteador R5


enable
configure terminal
interface f0/0
mpls ip
end
write
Para o passo 4, temos:
//Configurando o OSPF no roteador 1
enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface loopback 0
router ospf 1
network [Link] [Link] area 0
end
write

//Configurando o OSPF no roteador 2


enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface f0/1
ip ospf 1 area 0
interface loopback 0
router ospf 1
network [Link] [Link] area 0
end
write

//Configurando o OSPF no roteador 3


enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface f0/1
ip ospf 1 area 0
interface loopback 0
router ospf 1
network [Link] [Link] area 0
end
write

//Configurando o OSPF no roteador 4


enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface f0/1
ip ospf 1 area 0
interface loopback 0
router ospf 1
network [Link] [Link] area 0
end
write

//Configurando o OSPF no roteador 5


enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface f0/1
ip ospf 1 area 0
interface loopback 0
router ospf 1
network [Link] [Link] area 0
end
write
//Configurando o OSPF no roteador 6
enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface loopback 0
router ospf 1
network [Link] [Link] area 0
end
write

Questo 2
//Para o Roteador CE1
enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
end
write

//Para o Roteador CE-1


enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
end
write

//Para o Roteador PE1


enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
exit
interface fastEthernet 0/1
ip address [Link] [Link]
no shutdown
exit
interface fastEthernet 1/0
ip address [Link] [Link]
no shutdown
end
write

//Para o Roteador P1
enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
exit
interface fastEthernet 0/1
ip address [Link] [Link]
no shutdown
exit
interface fastEthernet 1/0
ip address [Link] [Link]
no shutdown
end
write
//Para o Roteador PE2
enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
exit
interface fastEthernet 0/1
ip address [Link] [Link]
no shutdown
end
write

//Para o Roteador CE3


enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
end
write

//Para o Roteador PE3


enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
exit
interface fastEthernet 0/1
ip address [Link] [Link]
no shutdown
exit
interface fastEthernet 1/0
ip address [Link] [Link]
no shutdown
end
write

//Para o Roteador CE-2


enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
end
write

//Para o Roteador CE2


enable
configure terminal
interface fastEthernet 0/0
ip address [Link] [Link]
no shutdown
end
write

//Habilitando ospf no provedor P1


enable
configure terminal
interface loopback0
ip address [Link] [Link]
router ospf 1
network [Link] [Link] area 0
end
write
//Habilitando ospf no provedor PE1
enable
configure terminal
interface f1/0
ip ospf 1 area 0
interface loopback0
ip address [Link] [Link]
ip ospf 1 area 0
end
write

//Habilitando ospf no provedor PE2


enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface loopback0
ip address [Link] [Link]
ip ospf 1 area 0
end
write

//Habilitando ospf no provedor PE3


enable
configure terminal
interface f0/0
ip ospf 1 area 0
interface loopback0
ip address [Link] [Link]
ip ospf 1 area 0
end
write

//Habilitando ospf no CE1


enable
configure terminal
interface loopback 0
ip address [Link] [Link]
no shutdown
router ospf 2
network [Link] [Link] area 0
end
write

//Habilitando ospf no CE-1


enable
configure terminal
interface loopback 0
ip address [Link] [Link]
no shutdown
router ospf 3
network [Link] [Link] area 0
end
write

//Habilitando ospf no CE-2


enable
configure terminal
interface loopback 0
ip address [Link] [Link]
no shutdown
router ospf 3
network [Link] [Link] area 0
end
write
//Habilitando ospf no CE2
enable
configure terminal
interface loopback 0
ip address [Link] [Link]
no shutdown
router ospf 2
network [Link] [Link] area 0
end
write

//Habilitando ospf no CE3


enable
configure terminal
interface loopback 0
ip address [Link] [Link]
no shutdown
router ospf 2
network [Link] [Link] area 0
end
write

//Habilitando o MPLS no P1
enable
configure terminal
interface f0/0
mpls ip
exit
interface f0/1
mpls ip
exit
interface f1/0
mpls ip
do show mpls interfaces
end
write

//Habilitando o MPLS no PE1


enable
configure terminal
interface f1/0
mpls ip
end
write

//Habilitando o MPLS no PE2


enable
configure terminal
interface f0/0
mpls ip
end
write

//Habilitando o MPLS no PE3


enable
configure terminal
interface f0/0
mpls ip
end
write
//Criando e atribuindo as VRFS no PE1
enable
configure terminal
ip vrf Cliente_A
rd 2000:1
route-target both 2000:1
ip vrf Cliente_B
rd 2000:2
route-target both 2000:2
end
write

//Criando e atribuindo as VRFS no PE2


enable
configure terminal
ip vrf Cliente_A
rd 2000:1
route-target both 2000:1
end
write

//Criando e atribuindo as VRFS no PE3


enable
configure terminal
ip vrf Cliente_A
rd 2000:1
route-target both 2000:1
ip vrf Cliente_B
rd 2000:2
route-target both 2000:2
end
write

//Atribuindo as interfaces a cada VRF (PE1)


enable
configure terminal
interface f0/0
ip vrf forwarding Cliente_A
ip address [Link] [Link]
interface f0/1
ip vrf forwarding Cliente_B
ip address [Link] [Link]
end
write

//Atribuindo as interfaces a cada VRF (PE2)


enable
configure terminal
interface f0/1
ip vrf forwarding Cliente_A
ip address [Link] [Link]
end
write

//Atribuindo as interfaces a cada VRF (PE3)


enable
configure terminal
interface f1/0
ip vrf forwarding Cliente_A
ip address [Link] [Link]
interface f0/1
ip vrf forwarding Cliente_B
ip address [Link] [Link]
end
write
//Configurar o MP-BGP no PE1
enable
configure terminal
router bgp 2000
neighbor [Link] remote-as 2000
neighbor [Link] update-source loopback 0
address-family vpnv4
neighbor [Link] activate
exit
neighbor [Link] remote-as 2000
neighbor [Link] update-source loopback 0
address-family vpnv4
neighbor [Link] activate
end
write

//Configurar o MP-BGP no PE2


enable
configure terminal
router bgp 2000
neighbor [Link] remote-as 2000
neighbor [Link] update-source loopback 0
address-family vpnv4
neighbor [Link] activate
exit
neighbor [Link] remote-as 2000
neighbor [Link] update-source loopback 0
address-family vpnv4
neighbor [Link] activate
end
write

//Configurar o MP-BGP no PE3


enable
configure terminal
router bgp 2000
neighbor [Link] remote-as 2000
neighbor [Link] update-source loopback 0
address-family vpnv4
neighbor [Link] activate
exit
neighbor [Link] remote-as 2000
neighbor [Link] update-source loopback 0
address-family vpnv4
neighbor [Link] activate
end
write

//Configurando o OSPF entre PE1-CE1 e PE1-CE-1


enable
configure terminal
router ospf 2 vrf Cliente_A
router-id [Link]
interface f0/0
ip ospf 2 area 0
router ospf 3 vrf Cliente_B
router-id [Link]
interface f0/1
ip ospf 3 area 0
end
write
//Configurando o OSPF entre PE2-CE3
enable
configure terminal
router ospf 2 vrf Cliente_A
router-id [Link]
interface f0/1
ip ospf 2 area 0
end
write

//Configurando o OSPF entre PE3-CE2 e PE3-CE-2


enable
configure terminal
router ospf 2 vrf Cliente_A
router-id [Link]
interface f1/0
ip ospf 2 area 0
router ospf 3 vrf Cliente_B
router-id [Link]
interface f0/1
ip ospf 3 area 0
end
write

//Redistribuio das rotas CE1 e CE-1 em cada VRF no MP-BGP (PE1)


enable
configure terminal
router bgp 2000
address-family ipv4 vrf Cliente_A
redistribute ospf 2
address-family ipv4 vrf Cliente_B
redistribute ospf 3
end
write

//Redistribuio das rotas CE3 em cada VRF no MP-BGP (PE2)


enable
configure terminal
router bgp 2000
address-family ipv4 vrf Cliente_A
redistribute ospf 2
end
write

//Redistribuio das rotas CE2 e CE-2 em cada VRF no MP-BGP (PE3)


enable
configure terminal
router bgp 2000
address-family ipv4 vrf Cliente_A
redistribute ospf 2
address-family ipv4 vrf Cliente_B
redistribute ospf 3
end
write

//Redistribuio das rotas BGP no processo OSPF de cada Cliente (PE1)


enable
configure terminal
router ospf 2
redistribute bgp 2000 subnets
router ospf 3
redistribute bgp 2000 subnets
end
write
//Redistribuio das rotas BGP no processo OSPF de cada Cliente (PE2)
enable
configure terminal
router ospf 2
redistribute bgp 2000 subnets
end
write

// Redistribuio das rotas BGP no processo OSPF de cada Cliente (PE3)


enable
configure terminal
router ospf 2
redistribute bgp 2000 subnets
router ospf 3
redistribute bgp 2000 subnets
end
write

You might also like