1 Cenário
1.1 Objetivo
Sete roteadores (R1, R2, R3, R4, R5, R6 e R7) são conectados fisicamente conforme a topologia abaixo via interfaces Fast Ethernet. Pede-se as configurações abaixo:
• Deverá ser usado o encaminhamento via MPLS entre todos os roteadores;
• O Router-ID do MPLS deve ser o IP da loopback 0 de cada roteador;
• Um túnel MPLS deverá ser criado no R2 para o R7 usando Traffic Engineer para encaminhamento de tráfego.
• Um túnel MPLS deverá ser criado no R5 para o R7 usando Traffic Engineer para encaminhamento de tráfego.
• O R7 deverá ter 2 túneis, um para R2 e outro para R5 com encaminhamento de tráfego.
• OS túneis deverão ser dinâmicos.
• O protocolo de roteamento deverá ser o OSPF na área 0.
1.2 Topologia
Figure-01: Topologia
1.3 IOS utilizados
• R1, R2, R3, R4, R5, R6 e R7 – c7200-k91p-mz.122-25.S15.bin
1.4 Configuração dos Roteadores
1.4.1 Configurações do OSPF
Em todos os roteadores configura-se o roteamento OSPF pelo comando “router ospf ” onde o “processo” é um numero do processo OSPF. O roteador também possui um router ID único que geralmente é a interface loopback ou então o maior endereço IP do roteador.
Para adicionar interfaces deve-se usar o comando “network
área ”. Um roteador pode ter interfaces em áreas distintas, define-se cada área pelo comando network.
Para o roteador fazer vizinhança OSPF é necessário que a rede da interface esteja no comando “network” e a interface não esteja configurada como “passive-interface”.
1.4.2 Configurações do MPLS
Antes de qualquer configuração, o Cisco Express forwarding deve ser habilitado com o comando “ip cef”. Para habilitar o MPLS no modo LDP, usa-se o comando global “mpls label protocol ldp”, para que seja habilitado nas interfaces, usa-se esse comando dentro da interface.
O Router-ID usado no MPLS pode ser configurado com o comando “mpls ldp router-id ”. A configuração do escopo dos labels que serão usados pelo roteador no MPLS é feita com o comando “mpls label range ” .
1.4.3 Configurações do Túnel de TE com OSPF
Para configurar um túnel MPLS TE inicialmente cria-se a interface túnel com o comando “interface tunnel ”, dentro da interface adiciona-se um endereçamento IP, geralmente usa-se um endereço da loopback com o comando “ip unnumbered Loopback0”. Em seguida configura-se o IP do roteador de destino com o comando “tunnel destination ”. Aplica-se então o modo de túnel como MPLS com TE com o comando “tunnel mode mpls traffic-eng”, e após, habilita-se o caminho pelo túnel com o comando “tunnel mpls traffic-eng path-option explicit name ”, onde o “caminho” é um caminho definido pelo comando “ip explicit-path name enable ” em que se adiciona, por ordem, o IP do Router-ID dos roteadores que o pacote deve passar. Ainda dentro da interface túnel é habilitado o anuncio de autoroute com o comando “tunnel mpls traffic-eng autoroute announce”.
O peso do Load-share é definido dentro da interface túnel com o comando “tunnel mpls traffic-eng load-share ”.
Para o uso do MPLS TE aplica-se globalmente o comando “mpls traffic-eng tunnels”, em todas as interfaces, adiciona-se o comando “mpls traffic-eng tunnels”, esse comando permite a sinalização de TE nas interfaces.
No OSPF, como no ISIS, deve-se configurar o Router-ID do TE com comando “mpls traffic-eng router-id Loopback0” e depois adicionar a area do OSPF no TE com o comando “mpls traffic-eng area 0” .
1.4.4 Encaminhamento pelo Túnel (Forward Adjacency)
Para habilitar o túnel para encaminhar tráfego originados em outro roteador usa-se o comando “tunnel mpls traffic-eng forwarding-adjacency” dentro da interface túnel.
1.5 Observações e Bugs
Documentação:
1.6 Comandos Importantes de Verificação
R7#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
34.0.0.0/24 is subnetted, 1 subnets
O 34.34.34.0 [110/2] via 47.47.47.4, 00:01:09, FastEthernet0/0
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/3] via 0.0.0.0, 00:01:09, Tunnel27
[110/3] via 0.0.0.0, 00:01:09, Tunnel57
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 0.0.0.0, 00:01:09, Tunnel27
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/3] via 47.47.47.4, 00:01:09, FastEthernet0/0
[110/3] via 0.0.0.0, 00:01:09, Tunnel27
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 47.47.47.4, 00:01:09, FastEthernet0/0
5.0.0.0/32 is subnetted, 1 subnets
O 5.5.5.5 [110/2] via 0.0.0.0, 00:01:09, Tunnel57
6.0.0.0/32 is subnetted, 1 subnets
O 6.6.6.6 [110/2] via 67.67.67.6, 00:01:09, FastEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
O 23.23.23.0 [110/2] via 0.0.0.0, 00:01:09, Tunnel27
67.0.0.0/24 is subnetted, 1 subnets
C 67.67.67.0 is directly connected, FastEthernet1/0
7.0.0.0/32 is subnetted, 1 subnets
C 7.7.7.7 is directly connected, Loopback0
56.0.0.0/24 is subnetted, 1 subnets
O 56.56.56.0 [110/2] via 67.67.67.6, 00:01:09, FastEthernet1/0
[110/2] via 0.0.0.0, 00:01:09, Tunnel57
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/2] via 0.0.0.0, 00:01:09, Tunnel27
47.0.0.0/24 is subnetted, 1 subnets
C 47.47.47.0 is directly connected, FastEthernet0/0
15.0.0.0/24 is subnetted, 1 subnets
O 15.15.15.0 [110/2] via 0.0.0.0, 00:01:09, Tunnel57
R2#sh mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 Pop Label 1.1.1.1/32 0 Fa0/0 12.12.12.1
17 Pop Label 15.15.15.0/24 0 Fa0/0 12.12.12.1
18 17 5.5.5.5/32 0 Fa0/0 12.12.12.1
19 Pop Label 3.3.3.3/32 0 Fa1/0 23.23.23.3
20 Pop Label 34.34.34.0/24 0 Fa1/0 23.23.23.3
21 21 4.4.4.4/32 0 Fa1/0 23.23.23.3
22 No Label [T] 47.47.47.0/24 0 Tu27 point2point
23 Pop Label [T] 7.7.7.7/32 1185 Tu27 point2point
24 24 56.56.56.0/24 0 Fa0/0 12.12.12.1
25 No Label [T] 6.6.6.6/32 0 Tu27 point2point
26 No Label [T] 67.67.67.0/24 0 Tu27 point2point
[T] Forwarding through a TSP tunnel.
View additional labelling info with the 'detail' option
2 Configuração
2.1 R1
!
ip cef
!
mpls label protocol ldp
mpls ldp router-id Loopback0
mpls traffic-eng tunnels
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
interface FastEthernet1/0
ip address 15.15.15.1 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
!
2.2 R2
ip cef
!
mpls label protocol ldp
!
mpls traffic-eng tunnels
mpls ldp router-id Loopback0
!
interface Tunnel27
ip unnumbered Loopback0
tunnel destination 7.7.7.7
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng forwarding-adjacency
tunnel mpls traffic-eng path-option 1 dynamic
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
interface FastEthernet1/0
ip address 23.23.23.2 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
!
2.3 R3
!
ip cef
!
mpls traffic-eng tunnels
mpls label protocol ldp
mpls ldp router-id Loopback0
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
interface FastEthernet1/0
ip address 34.34.34.3 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
router ospf 1
router-id 2.2.2.2
network 0.0.0.0 255.255.255.255 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
!
2.4 R4
!
ip cef
!
mpls label protocol ldp
mpls traffic-eng tunnels
mpls ldp router-id Loopback0
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
ip address 34.34.34.4 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
interface FastEthernet1/0
ip address 47.47.47.4 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
router ospf 1
router-id 2.2.2.2
network 0.0.0.0 255.255.255.255 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
!
2.5 R5
!
ip cef
!
mpls label protocol ldp
mpls traffic-eng tunnels
mpls ldp router-id Loopback0
!
interface Tunnel57
ip unnumbered Loopback0
tunnel destination 7.7.7.7
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng forwarding-adjacency
tunnel mpls traffic-eng path-option 1 dynamic
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/0
ip address 15.15.15.5 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
interface FastEthernet1/0
ip address 56.56.56.5 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
router ospf 1
router-id 2.2.2.2
network 0.0.0.0 255.255.255.255 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
!
2.6 R6
!
ip cef
!
mpls label protocol ldp
mpls traffic-eng tunnels
mpls ldp router-id Loopback0
!
interface Loopback0
ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
ip address 67.67.67.6 255.255.255.0
duplex full
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
interface FastEthernet1/0
ip address 56.56.56.6 255.255.255.0
duplex full
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
!
2.7 R7
!
ip cef
!
mpls label protocol ldp
mpls traffic-eng tunnels
mpls ldp router-id Loopback0
!
interface Tunnel27
ip unnumbered Loopback0
tunnel destination 2.2.2.2
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng forwarding-adjacency
tunnel mpls traffic-eng path-option 1 dynamic
no clns route-cache
!
interface Tunnel57
ip unnumbered Loopback0
tunnel destination 5.5.5.5
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng forwarding-adjacency
tunnel mpls traffic-eng path-option 1 dynamic
no clns route-cache
!
interface Loopback0
ip address 7.7.7.7 255.255.255.255
!
interface FastEthernet0/0
ip address 47.47.47.7 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
interface FastEthernet1/0
ip address 67.67.67.7 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
!
Nenhum comentário:
Postar um comentário