Cenário
1.1 Objetivo
Cinco roteadores (PE1, PE2, PE3, PE4 e PE5) são conectados fisicamente da forma PE1-PE2-PE3-PE4-PE5 via 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;
• O R1 deverá alocar os Labels de 100 a 199;
• O R2 deverá alocar os Labels de 200 a 299;
• O R3 deverá alocar os Labels de 300 a 399;
• O R4 deverá alocar os Labels de 400 a 499;
• O R5 deverá alocar os Labels de 500 a 599;
• Um túnel MPLS deverá ser criado entre R1 e R5 usando Traffic Engineer com a reserva de banda alocada abaixo:
• Interfaces do R2 deverão alocar 2MB em suas interfaces;
• Interfaces do R3 deverão alocar 3MB em suas interfaces;
• Interfaces do R4 deverão alocar 4MB em suas interfaces;
• O protocolo de roteamento usado deverá ser o ISIS no Level-2 na área 49.0123 divulgando as loopbacks de todos os roteadores.
1.2 Topologia
Figure-01: Topologia
1.3 IOS utilizados
• PE1, PE2, PE3, PE4 e PE5 – c7200-k91p-mz.122-25.S15.bin
1.4 Configuração dos Roteadores
1.4.1 Configurações do ISIS
Em todos os roteadores configura-se o roteamento ISIS adicionando o endereçamento NET de acordo com a área designada e endereçamento de loopback. Dentro das interfaces que farão parte do ISIS, adiciona-se o comando “ip router isis” para habilitar o ISIS na interface. Por padrão, todos os roteadores farão vizinhança L1/L2, para alterar, usa-se o comando “is-type level-2-only”.
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 Traffic Engineer com ISIS
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 para o fechamento do túnel 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 dynamic ”, onde o “dynamic” pode também ser “explict” que define um caminho específico.
Para o uso do MPLS TE aplica-se globalmente o comando “mpls traffic-eng tunnels”, em todas as interfaces, inclusive a interface tunnel, adiciona-se o comando “mpls traffic-eng tunnels”, esse comando permite a sinalização de TE nas interfaces.
Dentro do protocolo ISIS deve ser adicionada a loopback do router-ID para Traffic-Engineer com o comando “mpls traffic-eng router-id Loopback0” e habilitar o TE para o level de roteamento ISIS “mpls traffic-eng level-2” .
1.5 Observações e Bugs
Documentação:
1.6 Comandos Importantes de Verificação
PE1#show mpls traffic-eng topology path destination 5.5.5.5
Query Parameters:
Destination: 5.5.5.5
Bandwidth: 0
Priorities: 0 (setup), 0 (hold)
Affinity: 0x0 (value), 0xFFFFFFFF (mask)
Query Results:
Min Bandwidth Along Path: 2000 (kbps)
Max Bandwidth Along Path: 75000 (kbps)
Hop 0: 12.12.12.1 : affinity 00000000, bandwidth 75000 (kbps)
Hop 1: 12.12.12.2 : affinity 00000000, bandwidth 2000 (kbps)
Hop 2: 23.23.23.2 : affinity 00000000, bandwidth 2000 (kbps)
Hop 3: 23.23.23.3 : affinity 00000000, bandwidth 3000 (kbps)
Hop 4: 34.34.34.3 : affinity 00000000, bandwidth 3000 (kbps)
Hop 5: 34.34.34.4 : affinity 00000000, bandwidth 4000 (kbps)
Hop 6: 45.45.45.4 : affinity 00000000, bandwidth 4000 (kbps)
Hop 7: 45.45.45.5 : affinity 00000000, bandwidth 75000 (kbps)
Hop 8: 5.5.5.5
PE1#show mpls traffic-eng tunnels
Name: PE1_t15 (Tunnel15) Destination: 5.5.5.5
Status:
Admin: up Oper: up Path: valid Signalling: connected
path option 1, type dynamic (Basis for Setup, path weight 40)
Config Parameters:
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: disabled LockDown: disabled Loadshare: 0 bw-based
auto-bw: disabled
InLabel : -
OutLabel : FastEthernet0/0, 24
RSVP Signalling Info:
Src 1.1.1.1, Dst 5.5.5.5, Tun_Id 15, Tun_Instance 35
RSVP Path Info:
My Address: 12.12.12.1
Explicit Route: 12.12.12.2 23.23.23.2 23.23.23.3 34.34.34.3
34.34.34.4 45.45.45.4 45.45.45.5 5.5.5.5
Record Route: NONE
Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
History:
Tunnel:
Time since created: 59 minutes, 35 seconds
Time since path change: 39 minutes, 57 seconds
Current LSP:
Uptime: 39 minutes, 57 seconds
Prior LSP:
ID: path option 1 [34]
Removal Trigger: path option updated
LSP Tunnel PE5_t15 is signalled, connection is up
InLabel : FastEthernet0/0, implicit-null
OutLabel : -
RSVP Signalling Info:
Src 5.5.5.5, Dst 1.1.1.1, Tun_Id 15, Tun_Instance 49
RSVP Path Info:
My Address: 0.0.0.0
Explicit Route: NONE
Record Route: NONE
Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
2 Configuração
2.1 R1
!
ip cef
!
mpls label protocol ldp
mpls ldp router-id Loopback0
mpls label range 100 199
!
!
interface Tunnel15
ip unnumbered Loopback0
mpls traffic-eng tunnels
tunnel destination 5.5.5.5
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 1 dynamic
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip router isis
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
ip router isis
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
Router isis
Net 49.0123.0000.0000.0001.00
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2
!
2.2 R2
ip cef
!
mpls label protocol ldp
!
mpls ldp router-id Loopback0
mpls label range 200 299
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip router isis
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth 2000 2000
!
interface FastEthernet1/0
ip address 23.23.23.2 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth 2000 2000
!
Router isis
Net 49.0123.0000.0000.0002.00
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2
!
2.3 R3
!
ip cef
!
mpls label protocol ldp
mpls ldp router-id Loopback0
mpls label range 300 399
!
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 3000 3000
!
interface FastEthernet1/0
ip address 34.34.34.3 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth 3000 3000
!
Router isis
Net 49.0123.0000.0000.0003.00
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2
!
2.4 R4
!
ip cef
!
mpls label protocol ldp
mpls ldp router-id Loopback0
mpls label range 400 499
!
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 3000 3000
!
interface FastEthernet1/0
ip address 45.45.45.4 255.255.255.0
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth 4000 4000
!
Router isis
Net 49.0123.0000.0000.0004.00
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2
!
2.5 R5
!
ip cef
!
mpls label protocol ldp
mpls ldp router-id Loopback0
mpls label range 100 199
!
!
interface Tunnel15
ip unnumbered Loopback0
mpls traffic-eng tunnels
tunnel destination 1.1.1.1
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 1 dynamic
!
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
ip router isis
!
interface FastEthernet0/0
ip address 45.45.45.5 255.255.255.0
ip router isis
mpls traffic-eng tunnels
mpls ip
ip rsvp bandwidth
!
Router isis
Net 49.0123.0000.0000.0005.00
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2
!
Nenhum comentário:
Postar um comentário