You are on page 1of 45

Salvando a caxa

A:TREINA# admin save


Writing configuration to cf3:\TREINA\TREINA.cfg
Saving configuration ... OK
Completed.
A:TREINA#

VERIFICANDO A CONFIGURA��O CORRENTE

-------------------------------
A:7705SAR-8-2# show port

==============================================================================
Ports on Slot A
==============================================================================
Port Admin Link Port Cfg Oper LAG/ Port Port Port SFP/XFP/
Id State State MTU MTU Bndl Mode Encp Type MDIMDX
------------------------------------------------------------------------------
A/1 Up Yes Up 1514 1514 - netw null faste MDI

==============================================================================
Ports on Slot B
==============================================================================
Port Admin Link Port Cfg Oper LAG/ Port Port Port SFP/XFP/
Id State State MTU MTU Bndl Mode Encp Type MDIMDX
------------------------------------------------------------------------------
B/1 Up No Ghost 1514 1514 - netw null faste
==============================================================================

A:7705SAR-8-2# show bof


===============================================================================
BOF (Memory)
===============================================================================
primary-image cf3:\7705-TiMOS-4.0.R4
primary-config cf3:\rtt.cfg
address 128.251.229.207/24 active
static-route 128.251.0.0/16 next-hop 128.251.229.1
autonegotiate
duplex full
speed 100
wait 3
persist off
console-speed 9600
===============================================================================

*A:SR-1# show bof


===============================================================================
BOF (Memory)
===============================================================================
primary-image cf3:\7x50-TiMOS-8.0.R5
address 128.251.229.201/24 active
static-route 0.0.0.0/1 next-hop 128.251.229.1
static-route 128.0.0.0/1 next-hop 128.251.229.1
autonegotiate
duplex full
speed 100
wait 3
persist on
no li-local-save
no li-separate
console-speed 115200
===============================================================================
*A:SR-1#

Configura��o B�sica pag 155

outro mode de configurar a senha

<config>system security user X password Y

LABORAT�RIO ZERO

ZERAR EQUIPAMENTOS

*A:A:SR# bof no primary-config


*A:A:SR# bof save
Writing BOF to cf3:/bof.cfg ... OK
Completed.
*A:A:SR# admin reboot now

ou

treina / 123456

-----------------------------

Arquivo FTP / CRIAR USU�RIOS / PERFIS DE ACESSO

TiMOS-B-4.0.R4 both/hops ALCATEL-LUCENT SAR 7705


Copyright (c) 2000-2011 Alcatel-Lucent.
All rights reserved. All use subject to applicable license agreements.
Built on Tue Jun 28 16:29:13 EDT 2011 by csabuild in /rel4.0/b1/R4/panos/main
Login: admin
Password:

A:PE6#
A:PE6#
A:PE6#
A:PE6#
A:PE6# configure system security
A:PE6>config>system>security# ftp-server
*A:PE6>config>system>security#

*A:PE6#
*A:PE6#
*A:PE6# configure system security user
user user-template
*A:PE6# configure system security user TESTE
*A:PE6>config>system>security>user$
[no] access - Grant/deny a user access permissions for ftp snmp or
console
console + Configure user profile membership for the console
[no] home-directory - Home directory for the user
password - Password for the user
[no] restricted-to-* - Restrict user to home directory
snmp + Configure SNMP group membership for the user

*A:PE6>config>system>security>user$ password 123


MINOR: SYSTEM #1372 The user password does not meet the system requirement
*A:PE6>config>system>security>user$
*A:PE6>config>system>security>user$ password 123456
*A:PE6>config>system>security>user$ access
- access [ftp] [snmp] [console]
- no access [ftp] [snmp] [console]

<ftp> : keyword
<snmp> : keyword
<console> : keyword

*A:PE6>config>system>security>user$ access console


- access [ftp] [snmp] [console]
- no access [ftp] [snmp] [console]

<ftp> : keyword
<snmp> : keyword
<console> : keyword

*A:PE6>config>system>security>user$ access console


*A:PE6>config>system>security>user$ info
----------------------------------------------
password "zlV9R8qIeameiSDtqZ1.yk" hash2
access console
----------------------------------------------
*A:PE6>config>system>security>user$
*A:PE6>config>system>security>user$
*A:PE6>config>system>security>user$
[no] access - Grant/deny a user access permissions for ftp snmp or
console
console + Configure user profile membership for the console
[no] home-directory - Home directory for the user
password - Password for the user
[no] restricted-to-* - Restrict user to home directory
snmp + Configure SNMP group membership for the user

*A:PE6>config>system>security>user$ restricted-to-home
- no restricted-to-home
- restricted-to-home

*A:PE6>config>system>security>user$ restricted-to-home
*A:PE6>config>system>security>user$

*A:PE6#
*A:PE6#
*A:PE6#
*A:PE6#
*A:PE6#
*A:PE6# show system security user

===============================================================================
Users
===============================================================================
User ID New User Permissions Password Login Failed Local
Pwd console ftp snmp Expires Attempts Logins Conf
-------------------------------------------------------------------------------
TESTE n y n n never 0 0 y
admin n y n n never 11 1 y
back n n n n never 0 0 y
-------------------------------------------------------------------------------
Number of users : 3
===============================================================================
*A:PE6#
*A:PE6#
*A:PE6# show system security profile

===============================================================================
User Profile
===============================================================================

User Profile : default


Def. Action : none
LI : no
-------------------------------------------------------------------------------
Entry : 10
Description :
Match Command: exec
Action : permit
-------------------------------------------------------------------------------
Entry : 20
Description :
Match Command: exit
Action : permit
-------------------------------------------------------------------------------
Entry : 30
Description :
Match Command: help
Action : permit
-------------------------------------------------------------------------------
Entry : 40
Description :
Match Command: logout
Action : permit
-------------------------------------------------------------------------------
Entry : 50
Description :
Match Command: password
Action : permit
-------------------------------------------------------------------------------
Entry : 60
Description :
Match Command: show config
Action : deny
-------------------------------------------------------------------------------
Entry : 70
Description :
Match Command: show
Action : permit
-------------------------------------------------------------------------------
Entry : 80
Description :
Match Command: enable-admin
Action : permit
===============================================================================

User Profile : administrative


Def. Action : permit-all
LI : no
-------------------------------------------------------------------------------
Entry : 10
Description :
Match Command: configure system security
Action : permit
-------------------------------------------------------------------------------
Entry : 20
Description :
Match Command: show system security
Action : permit
-------------------------------------------------------------------------------
Entry : 30
Description :
Match Command: tools perform security
Action : permit
-------------------------------------------------------------------------------
Entry : 110
Description :
Match Command: show li
Action : deny
===============================================================================
-------------------------------------------------------------------------------
No. of profiles: 2
===============================================================================
*A:PE6#
---------------------------------------------

LOGS ----UM EVENTO PODE PERTENCER A MAIS DE UM LOG ---->>> DEFAULT 100 LOGS ( DE 1
A 100 )

*A:TREINA# show log log-collector

===============================================================================
Log Collectors
===============================================================================
Main Logged : 76 Dropped : 0
Dest Log Id: 99 Filter Id: 0 Status: enabled Dest Type: memory
Dest Log Id: 100 Filter Id: 1001 Status: enabled Dest Type: memory

Security Logged : 35 Dropped : 0

Change Logged : 34 Dropped : 0

Debug Logged : 0 Dropped : 0

LI Logged : 19 Dropped : 0

===============================================================================
*
COMANDOS VER USU�RIOS CONECTADOS

*A:PE6>config>system>security# show system security ssh

===============================================================================
SSH Server
===============================================================================
Administrative State : Enabled
Operational State : Up
Preserve Key : Disabled

SSH Protocol Version 1 : Disabled

SSH Protocol Version 2 : Enabled


DSA Host Key Fingerprint : 79:c1:cd:00:2f:1e:82:56:98:47:67:f5:ec:87:39:86
RSA Host Key Fingerprint : 3b:e4:b7:fc:2c:eb:93:d0:7e:31:e7:f7:46:60:0d:5e

-------------------------------------------------------------------------------
Connection Username Version Status
-------------------------------------------------------------------------------
128.251.229.132 admin 2 connected
128.251.229.46 admin 2 connected --->>>> minha
m�quina
-------------------------------------------------------------------------------
Number of SSH sessions : 2
===============================================================================
*A:PE6>config>system>security#

*A:PE6>config>system>security# show system security ssh


===============================================================================

Adaptador Ethernet Conex�o local:

Sufixo DNS espec�fico de conex�o . : br.alcatel-lucent.com


Endere�o IP . . . . . . . . . . . . : 128.251.229.46
M�scara de sub-rede . . . . . . . . : 255.255.255.0
Gateway padr�o. . . . . . . . . . . : 128.251.229.1

Adaptador Ethernet AlcatelVirtualNet:

Estado da m�dia . . . . . . . . . . . : m�dia desconectada

C:\Documents and Settings\aluno>

----------------------------------------------

*A:PE6>config>system>security# show system security password-options

===============================================================================
Password Options
===============================================================================

Password aging in days : none


Number of invalid attempts permitted per login : 3
Time in minutes per login attempt : 5
Lockout period (when threshold breached) : 10
Authentication order : radius tacplus local
Configured complexity options :
Minimum password length : 6
===============================================================================
*A:PE6>config>system>security#

--------------------------------------------------------------------

LOGS --->>> CRIAR LOGS

*A:PE6# show log log-id

=============================================================================
Event Logs
=============================================================================
Log Source Filter Admin Oper Logged Dropped Dest Dest Size
Id Id State State Type Id
-----------------------------------------------------------------------------
99 M none up up 205 0 memory 500
100 M 1001 up up 14 191 memory 500
=============================================================================
*A:PE6#

------
*A:TREINA>show>log# log-collector

===============================================================================
Log Collectors
===============================================================================
Main Logged : 76 Dropped : 0
Dest Log Id: 99 Filter Id: 0 Status: enabled Dest Type: memory
Dest Log Id: 100 Filter Id: 1001 Status: enabled Dest Type: memory

Security Logged : 42 Dropped : 0

Change Logged : 50 Dropped : 0

Debug Logged : 0 Dropped : 0

LI Logged : 19 Dropped : 0

===============================================================================
*A:TREINA>show>log#

---------------------------------------------

*A:TREINA>show>log# log-id

==============================================================================
Event Logs
==============================================================================
Log Source Filter Admin Oper Logged Dropped Dest Dest Size
Id Id State State Type Id
------------------------------------------------------------------------------
99 M none up up 76 0 memory 500
100 M 1001 up up 8 68 memory 500
==============================================================================
*A:TREINA>show>log#

*A:TREINA# configure log file-id 7 description QUEDAS

LABORAT�RIO PAG 22 A 25

CRIANDO LOGS

*A:TREINA# configure log log-id 7 from main change


- from {[main] [security] [change] [debug-trace]}
- no from

A:TREINA# configure log log-id 7 to file


- to console
- to file <log-file-id>
- to memory [<size>]
- to session
- to snmp [<size>]
- to syslog <syslog-id>

<console> : keyword - specifies console as destination


<syslog-id> : [1..10]
<snmp> : keyword - specifies SNMP as destination
<log-file-id> : [1..99]
<memory> : keyword - specifies memory as destination
<size> : [50..1024]
<session> : keyword - specifies telnet session as destination

A:TREINA# configure log log-id 7 to file 7


A:TREINA# show log log-id

==============================================================================
Event Logs
==============================================================================
Log Source Filter Admin Oper Logged Dropped Dest Dest Size
Id Id State State Type Id
------------------------------------------------------------------------------
1 M none up down 0 0 none N/A
7 M C none up up 2 0 file 7 N/A
99 M none up up 81 0 memory 500
100 M 1001 up up 9 72 memory 500
==============================================================================
A:TREINA#

-------------------------------

*A:TREINA# show log log-id

==============================================================================
Event Logs
==============================================================================
Log Source Filter Admin Oper Logged Dropped Dest Dest Size
Id Id State State Type Id
------------------------------------------------------------------------------
1 M none up up 1 0 memory 100
7 M C none up up 8 0 file 7 N/A
99 M none up up 82 0 memory 500
100 M 1001 up up 9 73 memory 500
==============================================================================

LOGS CRIADOS NO LAB ---->>>> ESTABELECE O QUE OCORRE NA CAIXA / CRIA OS LOGS DE

*A:TREINA#
*A:TREINA# show log log-id 7

===============================================================================
Event Log 7
===============================================================================
Description : (Not Specified)
8 2011/07/20 09:09:20.06 UTC MINOR: USER #2011 Base admin
"User from 128.251.229.117: TREINA# configure log file-id 1"

7 2011/07/20 09:09:20.06 UTC WARNING: SYSTEM #2006 Base LOGGER


"Log File Id 1 configuration modified"

6 2011/07/20 09:08:47.19 UTC MINOR: USER #2011 Base admin


"User from 128.251.229.117: TREINA>config>log>log-id# from main "

5 2011/07/20 09:08:36.99 UTC MINOR: USER #2011 Base admin


"User from 128.251.229.117: TREINA# configure log log-id 1 "

4 2011/07/20 09:08:14.24 UTC MINOR: USER #2011 Base admin


"User from 128.251.229.117: TREINA>config>log>log-id# to memory "

3 2011/07/20 09:08:05.79 UTC MINOR: USER #2011 Base admin


"User from 128.251.229.117: TREINA# configure log log-id 1 "

2 2011/07/20 09:07:14.03 UTC MINOR: USER #2011 Base admin


"User from 128.251.229.117: TREINA>config>log>log-id# from main "

1 2011/07/20 09:07:08.62 UTC MINOR: USER #2011 Base admin


"User from 128.251.229.46: TREINA# configure log log-id 7 to file 7 "

*A:TREINA#

-----

INTERFACES E ROTEAMENTO -

J� EXISTE UMA LOOPBACK CRIADA ---->>>> SEMPRE /32 ---->>>> CHAMA-SE INTERFACE
SYSTEM - DO SISTEMA

*A:PE6# show router interface

===============================================================================
Interface Table (Router: Base)
===============================================================================
Interface-Name Adm Opr(v4/v6) Mode Port/SapId
IP-Address PfxState
-------------------------------------------------------------------------------
system Up Down/Down Network system
- -
-------------------------------------------------------------------------------
Interfaces : 1
===============================================================================
*A:PE6#

INTERFACES E ROTEAMENTO

*A:TREINA# show router static-route detail

===============================================================================
Static Route Table (Router: Base) Family: IPv4
===============================================================================
Prefix : 192.168.24.0/24
Nexthop : 192.168.12.2
Type : Nexthop Nexthop Type : IP
Interface : r1-r2 Active : Y
Prefix List : n/a Prefix List Type : n/a
Metric : 1 Preference : 5
Admin State : Up Tag : 0
BFD : disabled
CPE-check : disabled
LDP Sync : disabled
-------------------------------------------------------------------------------
Prefix : 192.168.26.0/30
Nexthop : 192.168.12.2
Type : Nexthop Nexthop Type : IP
Interface : r1-r2 Active : Y
Prefix List : n/a Prefix List Type : n/a
Metric : 1 Preference : 5
Admin State : Up Tag : 0
BFD : disabled
CPE-check : disabled
LDP Sync : disabled
-------------------------------------------------------------------------------
Prefix : 192.168.34.0/24
Nexthop : 192.168.13.3
Type : Nexthop Nexthop Type : IP
Interface : r1-r3 Active : Y
Prefix List : n/a Prefix List Type : n/a
Metric : 1 Preference : 5
Admin State : Up Tag : 0
BFD : disabled
CPE-check : disabled
LDP Sync : disabled
-------------------------------------------------------------------------------
Prefix : 192.168.45.0/24
Nexthop : 192.168.13.3
Type : Nexthop Nexthop Type : IP
Interface : r1-r3 Active : Y
Prefix List : n/a Prefix List Type : n/a
Metric : 1 Preference : 5
Admin State : Up Tag : 0
BFD : disabled
CPE-check : disabled
LDP Sync : disabled
-------------------------------------------------------------------------------
Prefix : 192.168.55.0/24
Nexthop : 192.168.13.3
Type : Nexthop Nexthop Type : IP
Interface : r1-r3 Active : Y
Prefix List : n/a Prefix List Type : n/a
Metric : 1 Preference : 5
Admin State : Up Tag : 0
BFD : disabled
CPE-check : disabled
LDP Sync : disabled
-------------------------------------------------------------------------------
Prefix : 192.168.66.0/24
Nexthop : 192.168.12.2
Type : Nexthop Nexthop Type : IP
Interface : r1-r2 Active : Y
Prefix List : n/a Prefix List Type : n/a
Metric : 1 Preference : 5
Admin State : Up Tag : 0
BFD : disabled
CPE-check : disabled
LDP Sync : disabled
-------------------------------------------------------------------------------
No. of Static Routes: 6

===============================================================================
*A:TREINA#

-----

*A:TREINA# ping 192.168.26.2


PING 192.168.26.2 56 data bytes
No route to destination. Address: 192.168.26.2, Router: Base
No route to destination. Address: 192.168.26.2, Router: Base
No route to destination. Address: 192.168.26.2, Router: Base
No route to destination. Address: 192.168.26.2, Router: Base
^C
ping aborted by user

---- 192.168.26.2 PING Statistics ----


4 packets transmitted, 0 packets received, 100% packet loss
*A:TREINA#
*A:TREINA# show router stat
static-arp static-route status
*A:TREINA# show router static-route

*A:TREINA# traceroute ip
MINOR: CLI Could not transmit request to resolve 'ip'.
*A:TREINA# traceroute 192.168.55.1
traceroute to 192.168.55.1, 30 hops max, 40 byte packets
1 192.168.13.3 (192.168.13.3) 18.1 ms 3.49 ms 3.76 ms
2 192.168.34.4 (192.168.34.4) 3.08 ms 3.01 ms 3.17 ms
3 192.168.55.1 (192.168.55.1) 2.90 ms 3.95 ms 4.30 ms
*A:TREINA#

redes configurados em OSPF


*A:TREINA# show router route-table

===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
1.1.1.1/32 Local Local 03h35m21s 0
system 0
2.2.2.2/32 Remote OSPF 00h26m33s 10
192.168.12.2 100
3.3.3.3/32 Remote OSPF 01h20m31s 10
192.168.13.3 10
4.4.4.4/32 Remote OSPF 01h15m40s 10
192.168.13.3 110
5.5.5.5/32 Remote OSPF 00h02m48s 10
192.168.13.3 210
6.6.6.6/32 Remote OSPF 00h26m33s 10
192.168.12.2 200
192.168.11.0/30 Local Local 03h15m19s 0
Loopback 0
192.168.12.0/24 Local Local 03h14m22s 0
r1-r2 0
192.168.13.0/24 Local Local 03h13m43s 0
r1-r3 0
192.168.22.0/30 Remote OSPF 00h26m33s 10
192.168.12.2 100
192.168.24.0/24 Remote OSPF 00h26m33s 10
192.168.12.2 200
192.168.26.0/24 Remote OSPF 00h26m33s 10
192.168.12.2 200
192.168.33.0/30 Remote OSPF 01h21m08s 10
192.168.13.3 10
192.168.34.0/24 Remote OSPF 01h23m50s 10
192.168.13.3 110
192.168.44.0/30 Remote OSPF 01h15m40s 10
192.168.13.3 110
192.168.45.0/24 Remote OSPF 01h15m40s 10
192.168.13.3 210
192.168.55.0/30 Remote OSPF 00h02m48s 10
192.168.13.3 210
192.168.66.0/30 Remote OSPF 00h26m33s 10
192.168.12.2 200
-------------------------------------------------------------------------------
No. of Routes: 18
===============================================================================
*A:TREINA#

base de dados do OSPF

*A:TREINA# show router ospf database

===============================================================================
OSPF Link State Database (Type : All)
===============================================================================
Type Area Id Link State Id Adv Rtr Id Age Sequence Cksum
-------------------------------------------------------------------------------
Router 0.0.0.0 1.1.1.1 1.1.1.1 16 0x80000017 0x3078
Router 0.0.0.0 2.2.2.2 2.2.2.2 1746 0x80000018 0x3d7e
Router 0.0.0.0 3.3.3.3 3.3.3.3 1038 0x80000016 0x68e2
Router 0.0.0.0 4.4.4.4 4.4.4.4 336 0x80000018 0xad8b
Router 0.0.0.0 5.5.5.5 5.5.5.5 337 0x8000000c 0xb381
Router 0.0.0.0 6.6.6.6 6.6.6.6 1604 0x80000019 0x23c
-------------------------------------------------------------------------------
No. of LSAs: 6
===============================================================================
*A:TREINA#

----------

SHUTANDO O OSPF

*A:TREINA# configure router ospf shutdown


*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA# show router ospf database

===============================================================================
OSPF Link State Database (Type : All)
===============================================================================
Type Area Id Link State Id Adv Rtr Id Age Sequence Cksum
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
No. of LSAs: 0
===============================================================================
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA# traceroute 192.168.55.1
traceroute to 192.168.55.1, 30 hops max, 0 byte packets
No route to destination. Address: 192.168.55.1, Router: Base

*A:TREINA# show router ospf neighbor

===============================================================================
OSPF Neighbors
===============================================================================
Interface-Name Rtr Id State Pri RetxQ TTL
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
No. of Neighbors: 0
===============================================================================
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA# show router route-table

===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
1.1.1.1/32 Local Local 03h39m50s 0
system 0
192.168.11.0/30 Local Local 03h19m49s 0
Loopback 0
192.168.12.0/24 Local Local 03h18m52s 0
r1-r2 0
192.168.13.0/24 Local Local 03h18m13s 0
r1-r3 0
-------------------------------------------------------------------------------
No. of Routes: 4
===============================================================================

*A:TREINA# show router status

=================================================================
Router Status (Router: Base)
=================================================================
Admin State Oper State
-----------------------------------------------------------------
Router Up Up
OSPFv2-0 Down Down
RIP Not configured Not configured
ISIS-0 Up Up
MPLS Not configured Not configured
RSVP Not configured Not configured
LDP Not configured Not configured
BGP Not configured Not configured
IGMP Not configured Not configured
PIM Not configured Not configured
PIMv4 Not configured Not configured
PIMv6 Not configured Not configured
MSDP Not configured Not configured

Max IPv4 Routes No Limit


Total IPv4 Routes 4
Max Multicast Routes No Limit
Total IPv4 Mcast Routes PIM not configured
Total IPv6 Mcast Routes PIM not configured
ECMP Max Routes 1
Triggered Policies No
LDP Shortcut Disabled
Single SFM Overload Disabled
=================================================================

-------------

PAGINA 35 LABORATORIO E

PROTOCOLO ISIS
*A:TREINA# configure router isis
*A:TREINA>config>router>isis# area-id 49.0051
*A:TREINA>config>router>isis# sh
shutdown show
*A:TREINA>config>router>isis# show router interface

=========================================================================
======
Interface Table (Router: Base)
=========================================================================
======
Interface-Name Adm Opr Mode Port/Sap
Id
IP-Address PfxState

-------------------------------------------------------------------------
------
Loopback Up Up Network loopback

192.168.11.1/30 n/a
r1-r2 Up Up Network 1/1/1

192.168.12.1/24 n/a
r1-r3 Up Up Network 1/2/1

192.168.13.1/24 n/a
system Up Up Network system

1.1.1.1/32 n/a
-------------------------------------------------------------------------
------
Interfaces : 4
=========================================================================

*A:TREINA>config>router>isis# interface "Loopback"


*A:TREINA>config>router>isis>if# back
*A:TREINA>config>router>isis# interface "r1-r2"
*A:TREINA>config>router>isis>if# back
*A:TREINA>config>router>isis# interface "r1-r3"
*A:TREINA>config>router>isis>if# back
*A:TREINA>config>router>isis# interface "system"

*A:TREINA# configure router isis reference-bandwidth 100000000

*A:TREINA# show router isis interface

===============================================================================
ISIS Interfaces
===============================================================================
Interface Level CircID Oper State L1/L2 Metric
-------------------------------------------------------------------------------
system L1L2 1 Up 0/0
r1-r2 L1L2 2 Up 100/100
Loopback L1L2 3 Up 0/0
r1-r3 L1L2 4 Up 10/10
-------------------------------------------------------------------------------
Interfaces : 4
===============================================================================
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA# show router isis stat
statistics status
*A:TREINA# show router isis statistics

===============================================================================
ISIS Statistics
===============================================================================
ISIS Instance : 0 SPF Runs : 10
Purge Initiated : 0 LSP Regens. : 53

CSPF Statistics
Requests : 0 Request Drops : 0
Paths Found : 0 Paths Not Found: 0

-------------------------------------------------------------------------------
PDU Type Received Processed Dropped Sent Retransmitted
-------------------------------------------------------------------------------
LSP 8 8 0 13 0
IIH 62 42 20 162 0
CSNP 0 0 0 36 0
PSNP 4 4 0 0 0
Unknown 0 0 0 0 0
===============================================================================
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA#
*A:TREINA# show router isis status

===============================================================================
ISIS Status
===============================================================================
System Id : 0010.0100.1001
Admin State : Up
Ipv4 Routing : Enabled
Last Enabled : 07/20/2011 10:54:54
Level Capability : L1L2
Authentication Check : True
Authentication Type : None
CSNP-Authentication : Enabled
HELLO-Authentication : Enabled
PSNP-Authentication : Enabled
Traffic Engineering : Disabled
Graceful Restart : Disabled
GR Helper Mode : Disabled
LSP Lifetime : 1200
LSP Wait : 5 sec (Max) 0 sec (Initial) 1 sec (Second)
LSP MTU Size : 1492
Adjacency Check : loose
L1 Auth Type : none
L2 Auth Type : none
L1 CSNP-Authenticati*: Enabled
L1 HELLO-Authenticat*: Enabled
L1 PSNP-Authenticati*: Enabled
L1 Preference : 15
L2 Preference : 18
L1 Ext. Preference : 160
L2 Ext. Preference : 165
L1 Wide Metrics : Disabled
L2 Wide Metrics : Disabled
L1 LSDB Overload : Disabled
L2 LSDB Overload : Disabled
L1 LSPs : 3
L2 LSPs : 3
L1 Default Metric : 10
L2 Default Metric : 10
L1 IPv6 Def Metric : 10
L2 IPv6 Def Metric : 10
Last SPF : 07/20/2011 13:42:47
SPF Wait : 10 sec (Max) 1000 ms (Initial) 1000 ms (Second
Export Policies : None
Multicast Import : None
Multi-topology : Disabled
Advertise-Passive-On*: Disabled
Suppress Default : Disabled
Default Route Tag : None
Area Addresses : 49.0051
Ldp Sync Admin State : Up
LDP-over-RSVP : Disabled
RSVP-Shortcut : Disabled
Advertise-Tunnel-Link: Disabled
Export Limit : 0
Exp Lmt Log Percent : 0
Total Exp Routes(L1) : 0
Total Exp Routes(L2) : 0
IID TLV : Disabled
All-L1-MacAddr : 01:80:c2:00:00:14
All-L2-MacAddr : 01:80:c2:00:00:15
=========================================================================
* indicates that the corresponding row element may have been truncated.

*A:TREINA# show router isis database

=========================================================================
ISIS Database
=========================================================================
LSP ID Sequence Checksum Lifetime Attrib
-------------------------------------------------------------------------

Displaying Level 1 database


-------------------------------------------------------------------------
TREINA.00-00 0x18 0x9d92 909 L1L2
TREINA.02-00 0x2 0xb9aa 909 L1L2
pe3.00-00 0x9 0xb559 795 L1L2
Level (1) LSP Count : 3

Displaying Level 2 database


-------------------------------------------------------------------------
TREINA.00-00 0x19 0xe845 909 L1L2
TREINA.02-00 0x2 0xb9aa 909 L1L2
pe3.00-00 0xc 0xdc96 909 L1L2
Level (2) LSP Count : 3
=========================================================================

*A:TREINA# configure router isis

*A:TREINA>config>router>isis# traffic-engineering
*A:TREINA>config>router>isis# level
level level-capability
*A:TREINA>config>router>isis# level 1 wide-metrics-only
*A:TREINA>config>router>isis# level
level level-capability
*A:TREINA>config>router>isis# level 2 wide-metrics-only

*A:TREINA# show router isis adjacency

===============================================================================
ISIS Adjacency
===============================================================================
System ID Usage State Hold Interface MT Enab
-------------------------------------------------------------------------------
pe3 L1 Up 27 r1-r3 No
pe3 L2 Up 27 r1-r3 No
-------------------------------------------------------------------------------
Adjacencies : 2
===============================================================================

*A:TREINA# show router isis interface

===============================================================================
ISIS Interfaces
===============================================================================
Interface Level CircID Oper State L1/L2 Metric
-------------------------------------------------------------------------------
system L1L2 1 Up 0/0
r1-r2 L1L2 2 Up 100/100
Loopback L1L2 3 Up 0/0
r1-r3 L1L2 4 Up 10/10
-------------------------------------------------------------------------------
Interfaces : 4
===============================================================================

*A:TREINA# configure router isis


*A:TREINA>config>router>isis# interface "r1-r2"
*A:TREINA>config>router>isis>if# interface-type point-to-point

*A:TREINA# show router isis status

===============================================================================
ISIS Status
===============================================================================
System Id : 0010.0100.1001
Admin State : Up
Ipv4 Routing : Enabled
Last Enabled : 07/20/2011 10:54:54
Level Capability : L1L2
Authentication Check : True
Authentication Type : None
CSNP-Authentication : Enabled
HELLO-Authentication : Enabled
PSNP-Authentication : Enabled
Traffic Engineering : Enabled
Graceful Restart : Disabled
GR Helper Mode : Disabled
LSP Lifetime : 1200
LSP Wait : 5 sec (Max) 0 sec (Initial) 1 sec (Second)
LSP MTU Size : 1492
Adjacency Check : loose
L1 Auth Type : none
L2 Auth Type : none
L1 CSNP-Authenticati*: Enabled
L1 HELLO-Authenticat*: Enabled
L1 PSNP-Authenticati*: Enabled
L1 Preference : 15
L2 Preference : 18
L1 Ext. Preference : 160
L2 Ext. Preference : 165
L1 Wide Metrics : Enabled
L2 Wide Metrics : Enabled
L1 LSDB Overload : Disabled
L2 LSDB Overload : Disabled
L1 LSPs : 7
L2 LSPs : 7
L1 Default Metric : 10
L2 Default Metric : 10
L1 IPv6 Def Metric : 10
L2 IPv6 Def Metric : 10
Last SPF : 07/20/2011 14:00:38
SPF Wait : 10 sec (Max) 1000 ms (Initial) 1000 ms (Second)
Export Policies : None
Multicast Import : None
Multi-topology : Disabled
Advertise-Passive-On*: Disabled
Suppress Default : Disabled
Default Route Tag : None
Area Addresses : 49.0051
Ldp Sync Admin State : Up
LDP-over-RSVP : Disabled
RSVP-Shortcut : Disabled
Advertise-Tunnel-Link: Disabled
Export Limit : 0
Exp Lmt Log Percent : 0
Total Exp Routes(L1) : 0
Total Exp Routes(L2) : 0
IID TLV : Disabled
All-L1-MacAddr : 01:80:c2:00:00:14
All-L2-MacAddr : 01:80:c2:00:00:15
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:TREINA# show router route-table

===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
1.1.1.1/32 Local Local 04h17m55s 0
system 0
2.2.2.2/32 Remote ISIS 00h06m39s 15
192.168.12.2 100
3.3.3.3/32 Remote ISIS 00h02m45s 15
192.168.13.3 10
4.4.4.4/32 Remote ISIS 00h02m45s 15
192.168.13.3 73
5.5.5.5/32 Remote ISIS 00h02m45s 15
192.168.13.3 173
6.6.6.6/32 Remote ISIS 00h06m39s 15
192.168.12.2 163
192.168.11.0/30 Local Local 03h57m54s 0
Loopback 0
192.168.12.0/24 Local Local 03h56m57s 0
r1-r2 0
192.168.13.0/24 Local Local 03h56m18s 0
r1-r3 0
192.168.22.0/30 Remote ISIS 00h06m39s 15
192.168.12.2 100
192.168.24.0/24 Remote ISIS 00h06m39s 15
192.168.12.2 163
192.168.26.0/24 Remote ISIS 00h06m39s 15
192.168.12.2 163
192.168.33.0/30 Remote ISIS 00h02m45s 15
192.168.13.3 10
192.168.34.0/24 Remote ISIS 00h02m45s 15
192.168.13.3 73
192.168.45.0/24 Remote ISIS 00h02m45s 15
192.168.13.3 173
192.168.55.0/30 Remote ISIS 00h02m45s 15
192.168.13.3 173
192.168.66.0/30 Remote ISIS 00h06m39s 15
192.168.12.2 163
-------------------------------------------------------------------------------
No. of Routes: 17
===============================================================================

Vendo PROTOCOLO DE ROTEAMENTO


*A:TREINA# admin display-config

echo "Management Router Configuration"


#--------------------------------------------------
router management
exit

#--------------------------------------------------
echo "Router (Network Side) Configuration"
#--------------------------------------------------
router
interface "Loopback"
address 192.168.11.1/30
loopback
exit
interface "r1-r2"
address 192.168.12.1/24
port 1/1/1
exit
interface "r1-r3"
address 192.168.13.1/24
port 1/2/1
exit
interface "system"
address 1.1.1.1/32
exit
#--------------------------------------------------
echo "OSPFv2 Configuration"
#--------------------------------------------------
ospf
shutdown
area 0.0.0.0
interface "system"
exit
interface "r1-r2"
interface-type point-to-point
exit
interface "Loopback"
exit
interface "r1-r3"
interface-type point-to-point
exit
exit
exit
#--------------------------------------------------
echo "ISIS Configuration"
#--------------------------------------------------
isis
area-id 49.0051
traffic-engineering
reference-bandwidth 100000000
level 1
wide-metrics-only
exit
level 2
wide-metrics-only
exit
interface "system"
exit
interface "r1-r2"
hello-authentication-key "Jy5HwkhlIwHIBBwcavUOz4aNG5hQZq8S" hash2
hello-authentication-type password
interface-type point-to-point
exit
interface "Loopback"
exit
interface "r1-r3"
hello-authentication-key "Jy5HwkhlIwHQqywDhoSPXEvMaZu9pehE" hash2
hello-authentication-type password
interface-type point-to-point
exit
exit
exit

#--------------------------------------------------
echo "Service Configuration"
#--------------------------------------------------
service
customer 1 create
description "Default customer"
exit
exit
#--------------------------------------------------
echo "Router (Service Side) Configuration"
#--------------------------------------------------
router
#--------------------------------------------------
echo "OSPFv2 Configuration"
#--------------------------------------------------
ospf
exit
#--------------------------------------------------
echo "ISIS Configuration"
#--------------------------------------------------
isis
exit
exit

exit all

# Finished WED JUL 20 14:15:00 2011 UTC


*A:TREINA#

----------------------

*A:TREINA# show router isis routes

===============================================================================
Route Table
===============================================================================
Prefix Metric Lvl/Typ Ver. SysID/Hostname
NextHop MT AdminTag
-------------------------------------------------------------------------------
1.1.1.1/32 0 1/Int. 7 TREINA
0.0.0.0 0 0
2.2.2.2/32 100 1/Int. 49 PE2
192.168.12.2 0 0
3.3.3.3/32 10 1/Int. 25 pe3
192.168.13.3 0 0
4.4.4.4/32 110 1/Int. 47 pe3
192.168.13.3 0 0
6.6.6.6/32 200 1/Int. 55 PE2
192.168.12.2 0 0
192.168.11.0/30 0 1/Int. 2 TREINA
0.0.0.0 0 0
192.168.12.0/24 100 1/Int. 11 TREINA
0.0.0.0 0 0
192.168.13.0/24 10 1/Int. 4 TREINA
0.0.0.0 0 0
192.168.22.0/30 100 1/Int. 49 PE2
192.168.12.2 0 0
192.168.24.0/24 200 1/Int. 49 PE2
192.168.12.2 0 0
192.168.26.0/24 200 1/Int. 53 PE2
192.168.12.2 0 0
192.168.33.0/30 10 1/Int. 25 pe3
192.168.13.3 0 0
192.168.34.0/24 110 1/Int. 34 pe3
192.168.13.3 0 0
192.168.44.0/30 110 1/Int. 47 pe3
192.168.13.3 0 0
192.168.45.0/24 210 1/Int. 47 pe3
192.168.13.3 0 0
192.168.66.0/30 200 1/Int. 55 PE2
192.168.12.2 0 0
-------------------------------------------------------------------------------
Routes : 16
===============================================================================
*A:TREINA#

---------------------------

*A:TREINA# show router isis interface detail

===============================================================================
ISIS Interfaces
===============================================================================
-------------------------------------------------------------------------------
Interface : system Level Capability: L1L2
Oper State : Up Admin State : Up
Auth Type : None
Circuit Id : 1 Retransmit Int. : 5
Type : Pt-to-Pt LSP Pacing Int. : 100
Mesh Group : Inactive CSNP Int. : 10
Bfd Enabled : No
Te Metric : 0 Te State : Down
Admin Groups : None
Ldp Sync : outOfService Ldp Sync Wait : Disabled
Ldp Timer State: Disabled Ldp Tm Left : 0
Route Tag : None

Level : 1 Adjacencies : 0
Auth Type : None Metric : 0
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 0
Passive : No

Level : 2 Adjacencies : 0
Auth Type : None Metric : 0
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 0
Passive : No

-------------------------------------------------------------------------------
Interface : r1-r2 Level Capability: L1L2
Oper State : Up Admin State : Up
Auth Type : Password
Circuit Id : 2 Retransmit Int. : 5
Type : Pt-to-Pt LSP Pacing Int. : 100
Mesh Group : Inactive CSNP Int. : 10
Bfd Enabled : No
Te Metric : 0 Te State : Down
Admin Groups : None
Ldp Sync : outOfService Ldp Sync Wait : Disabled
Ldp Timer State: Disabled Ldp Tm Left : 0
Route Tag : None

Level : 1 Adjacencies : 1
Auth Type : None Metric : 100
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 100
Passive : No

Level : 2 Adjacencies : 1
Auth Type : None Metric : 100
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 100
Passive : No

-------------------------------------------------------------------------------
Interface : Loopback Level Capability: L1L2
Oper State : Up Admin State : Up
Auth Type : None
Circuit Id : 3 Retransmit Int. : 5
Type : Pt-to-Pt LSP Pacing Int. : 100
Mesh Group : Inactive CSNP Int. : 10
Bfd Enabled : No
Te Metric : 0 Te State : Down
Admin Groups : None
Ldp Sync : outOfService Ldp Sync Wait : Disabled
Ldp Timer State: Disabled Ldp Tm Left : 0
Route Tag : None
Level : 1 Adjacencies : 0
Auth Type : None Metric : 0
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 0
Passive : No

Level : 2 Adjacencies : 0
Auth Type : None Metric : 0
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 0
Passive : No

-------------------------------------------------------------------------------
Interface : r1-r3 Level Capability: L1L2
Oper State : Up Admin State : Up
Auth Type : Password
Circuit Id : 4 Retransmit Int. : 5
Type : Pt-to-Pt LSP Pacing Int. : 100
Mesh Group : Inactive CSNP Int. : 10
Bfd Enabled : No
Te Metric : 0 Te State : Down
Admin Groups : None
Ldp Sync : outOfService Ldp Sync Wait : Disabled
Ldp Timer State: Disabled Ldp Tm Left : 0
Route Tag : None

Level : 1 Adjacencies : 1
Auth Type : None Metric : 10
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 10
Passive : No

Level : 2 Adjacencies : 1
Auth Type : None Metric : 10
Hello Timer : 9 Hello Mult. : 3
Priority : 64 IPv6-Ucast-Met : 10
Passive : No

===============================================================================
*A:TREINA#

--------------

*A:TREINA# show router arp

===============================================================================
ARP Table (Router: Base)
===============================================================================
IP Address MAC Address Expiry Type Interface
-------------------------------------------------------------------------------
1.1.1.1 00:16:4d:44:4f:4c 00h00m00s Oth system
192.168.12.1 00:1a:f0:5e:d1:5a 00h00m00s Oth[I] r1-r2
192.168.12.2 00:1a:f0:bc:fa:29 03h44m37s Dyn[I] r1-r2
192.168.11.1 00:16:4d:44:4f:4c 00h00m00s Oth Loopback
192.168.13.1 00:1a:f0:a1:cd:4e 00h00m00s Oth[I] r1-r3
-------------------------------------------------------------------------------
No. of ARP Entries: 5
===============================================================================
*A:TREINA#

pelo isis

*A:TREINA# ping 192.168.26.6


PING 192.168.26.6 56 data bytes
64 bytes from 192.168.26.6: icmp_seq=1 ttl=63 time=21.3ms.
64 bytes from 192.168.26.6: icmp_seq=2 ttl=63 time=2.74ms.
64 bytes from 192.168.26.6: icmp_seq=3 ttl=63 time=2.77ms.
64 bytes from 192.168.26.6: icmp_seq=4 ttl=63 time=2.77ms.
64 bytes from 192.168.26.6: icmp_seq=5 ttl=63 time=2.71ms.

---- 192.168.26.6 PING Statistics ----


5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min = 2.71ms, avg = 6.45ms, max = 21.3ms, stddev = 7.41ms
*A:TREINA#

MPLS -->>>> PAG 215 TEORICO

multiple protocol label switching

MPLS - MULTIPROTOCOL LABEL SWITCHING

DIZER POR QUAL CAMINHO DEVE PASSAR O PACOTE

DOIS TUNEIS PRUM MESMO DESTINO


OTIMIZA��O DE RECURSOS DE REDES
CAMINHOS EXPL�CITOS
FAST ROUTING
CAMINHOS RESERVAS

MPLS est� entre as camadas de n�vel 2 e 3

Mpls = 32 bits sendo 3 para EXP + 8 TTL + 20 LABEL + 1 BOTTON OF START

S�O POSS�VEIS 1 MILH�O DE POSSIBILIDADES

Cria tabela baseada em endere�amento ip /

LDP ----
LDP --- baseado no protocolo IGP
MPLS ---->>>
RSVP --- basedo em hop-by-hop, IGP e CSPF
CSPF baseado no Traffic Enginner

*A:TREINA# show router ldp status

===============================================================================
LDP Status for LSR ID 1.1.1.1
===============================================================================
Admin State : Up Oper State : Up
Created at : 07/21/11 08:55:33 Up Time : 0d 00:09:12
Oper Down Reason : n/a Oper Down Events : 0
Last Change : 07/21/11 08:55:33 Tunn Down Damp Time : 3 sec
Label Withdraw Del*: 0 sec Implicit Null Label : Disabled
Short. TTL Prop Lo*: Enabled Short. TTL Prop Tran*: Enabled
Import Policies : None Export Policies : None
Tunl Exp Policies : None
Aggregate Prefix : False
Agg Prefix Policies: None
Dynamic Capability : False P2MP Capability : False
MP MBB Capability : False MP MBB Time : N/A
Active Adjacencies : 2 Active Sessions : 2
Active Interfaces : 2 Inactive Interfaces : 0
Active Peers : 0 Inactive Peers : 0
Addr FECs Sent : 10 Addr FECs Recv : 10
Serv FECs Sent : 0 Serv FECs Recv : 0
P2MP FECs Sent : 0 P2MP FECs Recv : 0
Attempted Sessions : 2
No Hello Err : 0 Param Adv Err : 0
Max PDU Err : 0 Label Range Err : 0
Bad LDP Id Err : 0 Bad PDU Len Err : 0
Bad Mesg Len Err : 0 Bad TLV Len Err : 0
Unknown TLV Err : 0
Malformed TLV Err : 0 Keepalive Expired Err: 0
Shutdown Notif Sent: 0 Shutdown Notif Recv : 0
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:TREINA#

*A:TREINA# show router ldp discovery

===============================================================================
LDP Hello Adjacencies
===============================================================================
Interface Name Local Addr Peer Addr AdjType State
-------------------------------------------------------------------------------
r1-r2 1.1.1.1 2.2.2.2 Link Estab
r1-r3 1.1.1.1 3.3.3.3 Link Estab
-------------------------------------------------------------------------------
No. of Hello Adjacencies: 2
===============================================================================
*A:TREINA#

*A:TREINA# show router ldp session


==============================================================================
LDP Sessions
==============================================================================
Peer LDP Id Adj Type State Msg Sent Msg Recv Up Time
------------------------------------------------------------------------------
2.2.2.2:0 Link Established 198 200 0d 00:08:54
3.3.3.3:0 Link Established 191 192 0d 00:08:31
------------------------------------------------------------------------------
No. of Sessions: 2
==============================================================================
*A:TREINA#

--------------------------------------

*A:TREINA# show router ldp parameters

===============================================================================
LDP Parameters (LSR ID 1.1.1.1)
===============================================================================
-------------------------------------------------------------------------------
Graceful Restart Parameters
-------------------------------------------------------------------------------
Nbor Liveness Time : 120 sec Max Recovery Time : 120
-------------------------------------------------------------------------------
Interface Parameters
-------------------------------------------------------------------------------
Keepalive Timeout : 30 sec Keepalive Factor : 3
Hold Time : 15 sec Hello Factor : 3
Propagate Policy : system Transport Address : system
Deaggregate FECs : False Route Preference : 9
Label Distribution : downstreamUnsolicited Label Retention : liberal
Control Mode : ordered Loop Detection : none

-------------------------------------------------------------------------------
Targeted Session Parameters
-------------------------------------------------------------------------------
Keepalive Timeout : 40 sec Keepalive Factor : 4
Hold Time : 45 sec Hello Factor : 3
Passive Mode : False Targeted Sessions : Enabled
===============================================================================
*A:TREINA#

-------------------------------------

*A:TREINA# show router ldp bindings

===============================================================================
LDP LSR ID: 1.1.1.1
===============================================================================
Legend: U - Label In Use, N - Label Not In Use, W - Label Withdrawn
S - Status Signaled Up, D - Status Signaled Down
E - Epipe Service, V - VPLS Service, M - Mirror Service
A - Apipe Service, F - Fpipe Service, I - IES Service, R - VPRN service
P - Ipipe Service, WP - Label Withdraw Pending, C - Cpipe Service
TLV - (Type, Length: Value)
===============================================================================
LDP Prefix Bindings
===============================================================================
Prefix Peer IngLbl EgrLbl EgrIntf/ EgrNextHop
LspId
-------------------------------------------------------------------------------
1.1.1.1/32 2.2.2.2 131071U -- -- --
1.1.1.1/32 3.3.3.3 131071U -- -- --
2.2.2.2/32 2.2.2.2 -- 131071 1/1/1 192.168.12.2
2.2.2.2/32 3.3.3.3 131065U 131068 -- --
3.3.3.3/32 2.2.2.2 131066U 131069 -- --
3.3.3.3/32 3.3.3.3 -- 131071 1/2/1 192.168.13.3
4.4.4.4/32 2.2.2.2 131069U 131068 -- --
4.4.4.4/32 3.3.3.3 131069N 131070 1/2/1 192.168.13.3
5.5.5.5/32 2.2.2.2 131068U 131067 -- --
5.5.5.5/32 3.3.3.3 131068N 131066 1/2/1 192.168.13.3
6.6.6.6/32 2.2.2.2 131064N 131066 1/1/1 192.168.12.2
6.6.6.6/32 3.3.3.3 131064U 131067 -- --
-------------------------------------------------------------------------------
No. of Prefix Bindings: 12

===============================================================================
LDP Service FEC 128 Bindings
===============================================================================
Type VCId SvcId SDPId Peer IngLbl EgrLbl LMTU RMTU
-------------------------------------------------------------------------------
No Matching Entries Found

===============================================================================
LDP Service FEC 129 Bindings
===============================================================================
AGI SAII TAII
Type SvcId SDPId Peer IngLbl EgrLbl LMTU RMTU
-------------------------------------------------------------------------------
No Matching Entries Found
===============================================================================
===============================================================================
*A:TREINA#

------------------------

TABELA DE ETIQUETAS - TABELA DE OPERA��ES DE ETIQUETA

*A:TREINA# show router ldp bindings active

===============================================================================
Legend: (S) - Static (M) - Multi-homed Secondary Support
(B) - BGP Next Hop
===============================================================================
LDP Prefix Bindings (Active)
===============================================================================
Prefix Op IngLbl EgrLbl EgrIntf/LspId EgrNextHop
-------------------------------------------------------------------------------
1.1.1.1/32 Pop 131071 -- -- --
2.2.2.2/32 Push -- 131071 1/1/1 192.168.12.2
2.2.2.2/32 Swap 131065 131071 1/1/1 192.168.12.2
3.3.3.3/32 Push -- 131071 1/2/1 192.168.13.3
3.3.3.3/32 Swap 131066 131071 1/2/1 192.168.13.3
4.4.4.4/32 Push -- 131070 1/2/1 192.168.13.3
4.4.4.4/32 Swap 131069 131070 1/2/1 192.168.13.3
5.5.5.5/32 Push -- 131066 1/2/1 192.168.13.3
5.5.5.5/32 Swap 131068 131066 1/2/1 192.168.13.3
6.6.6.6/32 Push -- 131066 1/1/1 192.168.12.2
6.6.6.6/32 Swap 131064 131066 1/1/1 192.168.12.2
-------------------------------------------------------------------------------
No. of Prefix Active Bindings: 11
*A:TREINA#

RANGES DE ETIQUETA

*A:TREINA# show router mpls label-range

===============================================================================
Label Ranges
===============================================================================
Label Type Start Label End Label Aging Total Available
-------------------------------------------------------------------------------
Static-lsp 32 1023 - 992
Static-svc 2048 18431 - 16384
Dynamic 18432 131071 0 112634
===============================================================================
*A:TREINA#

*A:TREINA# oam lsp-ping prefix 6.6.6.6/32

LSP-PING 6.6.6.6/32: 80 bytes MPLS payload


Seq=1, send from intf r1-r2, reply from 6.6.6.6
udp-data-len=32 ttl=255 rtt=16.2ms rc=3 (EgressRtr)

---- LSP 6.6.6.6/32 PING Statistics ----


1 packets sent, 1 packets received, 0.00% packet loss
round-trip min = 16.2ms, avg = 16.2ms, max = 16.2ms, stddev = 0.000ms
*A:TREINA#

*A:TREINA# oam lsp-trace prefix 6.6.6.6/32


lsp-trace to 6.6.6.6/32: 0 hops min, 0 hops max, 104 byte packets
1 2.2.2.2 rtt=13.7ms rc=8(DSRtrMatchLabel)
2 6.6.6.6 rtt=2.41ms rc=3(EgressRtr)
*A:TREINA#
*A:TREINA# traceroute 6.6.6.6
traceroute to 6.6.6.6, 30 hops max, 40 byte packets
1 192.168.12.2 (192.168.12.2) 31.9 ms 3.08 ms 3.50 ms
2 6.6.6.6 (6.6.6.6) 92.5 ms 3.70 ms 3.18 ms
*A:TREINA#

---------------------------------

LABORATORIO LSP -- MPLS -- RSVP

CONFIGURA��O DO RSVP - IMPORTANTE

PRIMEIRO - CONFIGURA OS HOPS

SEGUNDO - PATH

TERCEIRO -- LSP

1- criando paths - hops -- caminhos

PASSO 1 -- CRIANDO HOPS --- NO R6


*A:TREINA>config>router>mpls# path r6
*A:TREINA>config>router>mpls>path$ hop 1 3.3.3.3 strict
*A:TREINA>config>router>mpls>path$ hop 2 4.4.4.4 strict
*A:TREINA>config>router>mpls>path$ hop 3 5.5.5.5 strict
*A:TREINA>config>router>mpls>path$ hop 4 6.6.6.6 strict
*A:TREINA>config>router>mpls>path$ info
----------------------------------------------
shutdown
hop 1 3.3.3.3 strict
hop 2 4.4.4.4 strict
hop 3 5.5.5.5 strict
hop 4 6.6.6.6 strict
----------------------------------------------
*A:TREINA>config>router>mpls>path$ no shutdown
*A:TREINA>config>router>mpls>path$ back

PASSO 1 -- CRIANDO HOPS --- NO R5

*A:TREINA>config>router>mpls# path r5
*A:TREINA>config>router>mpls>path$ hop 1 2.2.2.2 strict
*A:TREINA>config>router>mpls>path$ hop 2 4.4.4.4 strict
*A:TREINA>config>router>mpls>path$ hop 3 5.5.5.5 strict
*A:TREINA>config>router>mpls>path$ no shutdown
*A:TREINA>config>router>mpls# info
----------------------------------------------
shutdown
interface "system"
exit
path "r2"
shutdown
hop 1 3.3.3.3 strict
hop 2 4.4.4.4 strict
hop 3 2.2.2.2 strict
exit
path "r6"
hop 1 3.3.3.3 strict
hop 2 4.4.4.4 strict
hop 3 5.5.5.5 strict
hop 4 6.6.6.6 strict
no shutdown
exit
path "r3"
shutdown
hop 1 2.2.2.2 strict
hop 2 4.4.4.4 strict
hop 3 3.3.3.3 strict
exit
path "4"
shutdown
hop 1 2.2.2.2 strict
hop 2 4.4.4.4 strict
exit
path "r5"
hop 1 2.2.2.2 strict
hop 2 4.4.4.4 strict
hop 3 5.5.5.5 strict
no shutdown
exit
----------------------------------------------
*A:TREINA>config>router>mpls#

CRIANDO OS LSPS

*A:TREINA>config>router>mpls# lsp l-r5


*A:TREINA>config>router>mpls>lsp$ to 5.5.5.5
*A:TREINA>config>router>mpls>lsp$ cspf
*A:TREINA>config>router>mpls>lsp$ primary "r5"
*A:TREINA>config>router>mpls>lsp>primary$ bandwidth 10
*A:TREINA>config>router>mpls>lsp>primary$ back
*A:TREINA>config>router>mpls>lsp# secondary p-loose
*A:TREINA>config>router>mpls>lsp# no shutdown

----------------------
*A:TREINA>config>router>mpls# info
----------------------------------------------

shutdown
interface "system"
exit
path "r2"
shutdown
hop 1 3.3.3.3 strict
hop 2 4.4.4.4 strict
hop 3 2.2.2.2 strict
exit
path "r6"
hop 1 3.3.3.3 strict
hop 2 4.4.4.4 strict
hop 3 5.5.5.5 strict
hop 4 6.6.6.6 strict
no shutdown
exit
path "r3"
hop 1 2.2.2.2 strict
hop 2 4.4.4.4 strict
hop 3 3.3.3.3 strict
no shutdown
exit
path "4"
hop 1 2.2.2.2 strict
hop 2 4.4.4.4 strict
no shutdown
exit
path "r5"
hop 1 2.2.2.2 strict
hop 2 4.4.4.4 strict
hop 3 5.5.5.5 strict
no shutdown
exit
path "6"
no shutdown
exit
path "2"
no shutdown
exit
path "3"
no shutdown
exit
path "p-loose"
no shutdown
exit

CRIANDO LSP

lsp "l-r2"
to 2.2.2.2
cspf
primary "r2"
bandwidth 10
exit
secondary "p-loose"
exit
no shutdown
exit
lsp "l-r3"
to 3.3.3.3
cspf
primary "r3"
bandwidth 10
exit
secondary "p-loose"
exit
no shutdown
exit
lsp "l-r6"
to 6.6.6.6
cspf
primary "r6"
bandwidth 10
exit
secondary "p-loose"
exit
no shutdown
exit
lsp "l-4"
to 4.4.4.4
cspf
primary "4"
bandwidth 10
exit
secondary "p-loose"
exit
no shutdown

exit
lsp "l-r5"
to 5.5.5.5 ---->>>>> comando to -->> fim do t�nel
cspf
primary "r5"
bandwidth 10
exit
secondary "p-loose" ---->>>> caminho aleat�rio
exit
no shutdown
exit
----------------------------------------------
*A:TREINA>config>router>mpls#

HABILITANDO O RSVP E O MPLS


COMANDO--->>> VEJA QUE RSVP DOWN E MPLS DOWN

*A:TREINA# show router status

=================================================================
Router Status (Router: Base)
=================================================================
Admin State Oper State
-----------------------------------------------------------------
Router Up Up
OSPFv2-0 Down Down
RIP Not configured Not configured
ISIS-0 Up Up
MPLS Down Down
RSVP Up Down
LDP Up Up
BGP Not configured Not configured
IGMP Not configured Not configured
PIM Not configured Not configured
PIMv4 Not configured Not configured
PIMv6 Not configured Not configured
MSDP Not configured Not configured

Max IPv4 Routes No Limit


Total IPv4 Routes 18
Max Multicast Routes No Limit
Total IPv4 Mcast Routes PIM not configured
Total IPv6 Mcast Routes PIM not configured
ECMP Max Routes 1
Triggered Policies No
LDP Shortcut Disabled
Single SFM Overload Disabled
=================================================================
*A:TREINA#

HABILITANDO ---- RETIRAR SHUT


*A:TREINA# configure router rsvp
*A:TREINA>config>router>rsvp# no shutdown
*A:TREINA>config>router>rsvp#

OLHANDO A FIB E A LIFIB

LIB E LIFIB S�O IGUAIS NO RSVP


*A:TREINA>config>router>mpls# no sh
shortcut-local-ttl-propagate shortcut-transit-ttl-propagate
shutdown
*A:TREINA>config>router>mpls# no shutdown
*A:TREINA>config>router>mpls#

*A:TREINA# show router status

=================================================================
Router Status (Router: Base)
=================================================================
Admin State Oper State
-----------------------------------------------------------------
Router Up Up
OSPFv2-0 Down Down
RIP Not configured Not configured
ISIS-0 Up Up
MPLS Up Up
RSVP Up Up
LDP Up Up
BGP Not configured Not configured
IGMP Not configured Not configured
PIM Not configured Not configured
PIMv4 Not configured Not configured
PIMv6 Not configured Not configured
MSDP Not configured Not configured

Max IPv4 Routes No Limit


Total IPv4 Routes 18
Max Multicast Routes No Limit
Total IPv4 Mcast Routes PIM not configured
Total IPv6 Mcast Routes PIM not configured
ECMP Max Routes 1
Triggered Policies No
LDP Shortcut Disabled
Single SFM Overload Disabled
=================================================================
*A:TREINA#

TROBLESHOOTING

*A:TREINA# show router mpls path lsp-binding

===============================================================================
MPLS Path:
===============================================================================
Path Name Opr LSP Name Binding
-------------------------------------------------------------------------------
r2 Down l-r2 Primary
r6 Down l-r6 Primary
r3 Down l-r3 Primary
4 Down l-4 Primary
r5 Down l-r5 Primary
p-loose Down l-r2 Seconda*
Down l-r3 Seconda*
Down l-r6 Seconda*
Down l-4 Seconda*
Down l-r5 Seconda*
-------------------------------------------------------------------------------
Paths : 9
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:TREINA#

PASSOS 1 HABILITA MPLS E O RSVP SEGUNDO HABILITA AS PORTAS NOS RSVP E NO MPLS

*A:TREINA# configure router mpls


*A:TREINA>config>router>mpls# no sh
shortcut-local-ttl-propagate shortcut-transit-ttl-propagate
shutdown
*A:TREINA>config>router>mpls# no shutdown
*A:TREINA>config>router>mpls#

*A:TREINA# configure router rsvp


*A:TREINA>config>router>rsvp# no shutdown
*A:TREINA>config>router>rsvp#

ver configura��o que est� ativa ou n�o

*A:TREINA# show router mpls lsp path

===============================================================================
MPLS LSP Path
===============================================================================
-------------------------------------------------------------------------------
LSP Name : l-r2 To : 2.2.2.2
Adm State : Up Oper State : Up
-------------------------------------------------------------------------------
Path Name Next Hop Type Out I/F Adm Opr
-------------------------------------------------------------------------------
r2 192.168.13.3 Primary 1/2/1 Up Up
p-loose n/a Secondary n/a Up Dwn

-------------------------------------------------------------------------------
LSP Name : l-r3 To : 3.3.3.3
Adm State : Up Oper State : Up
-------------------------------------------------------------------------------
Path Name Next Hop Type Out I/F Adm Opr
-------------------------------------------------------------------------------
r3 192.168.12.2 Primary 1/1/1 Up Up
p-loose n/a Secondary n/a Up Dwn

-------------------------------------------------------------------------------
LSP Name : l-r6 To : 6.6.6.6
Adm State : Up Oper State : Up
-------------------------------------------------------------------------------
Path Name Next Hop Type Out I/F Adm Opr
-------------------------------------------------------------------------------
r6 n/a Primary n/a Up Dwn
p-loose 192.168.12.2 Secondary 1/1/1 Up Up

-------------------------------------------------------------------------------
LSP Name : l-4 To : 4.4.4.4
Adm State : Up Oper State : Up
-------------------------------------------------------------------------------
Path Name Next Hop Type Out I/F Adm Opr
-------------------------------------------------------------------------------
4 192.168.12.2 Primary 1/1/1 Up Up
p-loose n/a Secondary n/a Up Dwn

-------------------------------------------------------------------------------
LSP Name : l-r5 To : 5.5.5.5
Adm State : Up Oper State : Down
-------------------------------------------------------------------------------
Path Name Next Hop Type Out I/F Adm Opr
-------------------------------------------------------------------------------
r5 n/a Primary n/a Up Dwn
p-loose n/a Secondary n/a Up Dwn
===============================================================================

VEJA QUE O R6 EST� INDO PROUTRO CAMINHO E EST�

*A:TREINA# show router mpls lsp "l-r6" path detail

===============================================================================
MPLS LSP l-r6 Path (Detail)
===============================================================================
Legend :
@ - Detour Available # - Detour In Use
b - Bandwidth Protected n - Node Protected
s - Soft Preemption
===============================================================================
-------------------------------------------------------------------------------
LSP l-r6 Path r6
-------------------------------------------------------------------------------
LSP Name : l-r6 Path LSP ID : 40960
From : 1.1.1.1 To : 6.6.6.6
Adm State : Up Oper State : Up
Path Name : r6 Path Type : Primary
Path Admin : Up Path Oper : Down
OutInterface: n/a Out Label : n/a
Path Up Time: 0d 00:00:00 Path Dn Time: 0d 00:35:36
Retry Limit : 0 Retry Timer : 30 sec
RetryAttempt: 50 NextRetryIn : 25 sec
SetupPriori*: 7 Hold Priori*: 0
Preference : n/a
Bandwidth : 10 Mbps Oper Bw : 0 Mbps
Hop Limit : 255 Class Type : 0
Backup CT : None
MainCT Retry: Infinite MainCT Retry: 0
Rem : Limit :
Oper CT : None
Record Route: Record Record Label: Record
Oper MTU : 0 Neg MTU : 0
Adaptive : Enabled Oper Metric : 65535
Include Grps: Exclude Grps:
None None
Path Trans : 0 CSPF Queries: 50
Failure Code: noCspfRouteToDestination Failure Node: 1.1.1.1 ------>>>>
CAMINHO SECUNDARIO
ExplicitHops:
3.3.3.3 -> 4.4.4.4 -> 5.5.5.5 -> 6.6.6.6
Actual Hops :
No Hops Specified
ComputedHops:
No Hops Specified
ResigEligib*: False
LastResignal: n/a CSPF Metric : 0
-------------------------------------------------------------------------------
LSP l-r6 Path p-loose
-------------------------------------------------------------------------------
LSP Name : l-r6 Path LSP ID : 40962
From : 1.1.1.1 To : 6.6.6.6
Adm State : Up Oper State : Up
Path Name : p-loose Path Type : Secondary
Path Admin : Up Path Oper : Up
OutInterface: 1/1/1 Out Label : 131051
Path Up Time: 0d 00:15:35 Path Dn Time: 0d 00:00:00
Retry Limit : 0 Retry Timer : 30 sec
RetryAttempt: 0 NextRetryIn : 0 sec
SetupPriori*: 7 Hold Priori*: 0
Preference : n/a
Bandwidth : No Reservation Oper Bw : 0 Mbps
Hop Limit : 255 Class Type : 0
Oper CT : 0
Record Route: Record Record Label: Record
Oper MTU : 1558 Neg MTU : 1558
Adaptive : Enabled Oper Metric : 200
Include Grps: Exclude Grps:
None None
Path Trans : 1 CSPF Queries: 19
Failure Code: noError Failure Node: n/a
ExplicitHops:
No Hops Specified
Actual Hops :
192.168.12.1(1.1.1.1) Record Label : N/A
-> 192.168.12.2(2.2.2.2) Record Label : 131051
-> 192.168.26.6(6.6.6.6) Record Label : 131064
ComputedHops:
192.168.12.1 -> 192.168.12.2 -> 192.168.26.6
Srlg : Disabled
ResigEligib*: False
LastResignal: n/a CSPF Metric : 200
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:TREINA#

*A:TREINA# show router mpls label-range

===============================================================================
Label Ranges
===============================================================================
Label Type Start Label End Label Aging Total Available
-------------------------------------------------------------------------------
Static-lsp 32 1023 - 992
Static-svc 2048 18431 - 16384
Dynamic 18432 131071 1 112614
===============================================================================
*A:TREINA#

*A:TREINA# show router mpls label in-use 32 131071

=================================================================
MPLS Labels from 32 to 131071 (In-use)
=================================================================
Label Label Type Label Owner
-----------------------------------------------------------------
131040 dynamic RSVP
131041 dynamic RSVP
131045 dynamic RSVP
131046 dynamic RSVP
131048 dynamic RSVP
131050 dynamic RSVP
131051 dynamic RSVP
131052 dynamic RSVP
131053 dynamic RSVP
131054 dynamic RSVP
131055 dynamic RSVP
131056 dynamic RSVP
131057 dynamic RSVP
131058 dynamic RSVP
131059 dynamic RSVP
131060 dynamic RSVP
131061 dynamic RSVP
131063 dynamic RSVP
131064 dynamic ILDP
131065 dynamic ILDP
131066 dynamic ILDP
131067 dynamic RSVP
131068 dynamic RSVP
131069 dynamic ILDP
131070 dynamic ILDP
131071 dynamic ILDP
-----------------------------------------------------------------
In-use labels (Owner: All) in specified range : 26
In-use labels in entire range : 25
=================================================================
*A:TREINA#

*A:TREINA# show router mpls lsp activepath

===============================================================================
MPLS LSP (active paths)
===============================================================================
LSP Name : l-r2 LSP Id : 522
Path Name : r2 Active Path : Primary
To : 2.2.2.2

LSP Name : l-r3 LSP Id : 17930


Path Name : r3 Active Path : Primary
To : 3.3.3.3

LSP Name : l-r6 LSP Id : 40962


Path Name : p-loose Active Path : Secondary
To : 6.6.6.6

LSP Name : l-4 LSP Id : 39434


Path Name : 4 Active Path : Primary
To : 4.4.4.4

LSP Name : l-r5 LSP Id : 15886


Path Name : r5 Active Path : Primary
To : 5.5.5.5

===============================================================================
*A:TREINA#
*A:TREINA# show router mpls lsp path detail

===============================================================================
MPLS LSP Path (Detail)
===============================================================================
Legend :
@ - Detour Available # - Detour In Use
b - Bandwidth Protected n - Node Protected
s - Soft Preemption
===============================================================================
-------------------------------------------------------------------------------
LSP l-r2 Path r2
-------------------------------------------------------------------------------
LSP Name : l-r2 Path LSP ID : 522
From : 1.1.1.1 To : 2.2.2.2
Adm State : Up Oper State : Up
Path Name : r2 Path Type : Primary
Path Admin : Up Path Oper : Up
OutInterface: 1/2/1 Out Label : 131052
Path Up Time: 0d 00:27:00 Path Dn Time: 0d 00:00:00
Retry Limit : 0 Retry Timer : 30 sec
RetryAttempt: 0 NextRetryIn : 0 sec
SetupPriori*: 7 Hold Priori*: 0
Preference : n/a
Bandwidth : 10 Mbps Oper Bw : 10 Mbps
Hop Limit : 255 Class Type : 0
Backup CT : None
MainCT Retry: n/a MainCT Retry: 0
Rem : Limit :
Oper CT : 0
Record Route: Record Record Label: Record
Oper MTU : 1558 Neg MTU : 1558
Adaptive : Enabled Oper Metric : 210
Include Grps: Exclude Grps:
None None
Path Trans : 5 CSPF Queries: 7
Failure Code: noError Failure Node: n/a
ExplicitHops:
3.3.3.3 -> 4.4.4.4 -> 2.2.2.2
Actual Hops :
192.168.13.1(1.1.1.1) Record Label : N/A
-> 192.168.13.3(3.3.3.3) Record Label : 131052
-> 192.168.34.4(4.4.4.4) Record Label : 131048
-> 192.168.24.2(2.2.2.2) Record Label : 131045
ComputedHops:
192.168.13.1 -> 192.168.13.3 -> 192.168.34.4 -> 192.168.24.2
ResigEligib*: False
LastResignal: n/a CSPF Metric : 210
-------------------------------------------------------------------------------
LSP l-r2 Path p-loose
-------------------------------------------------------------------------------
LSP Name : l-r2 Path LSP ID : 520
From : 1.1.1.1 To : 2.2.2.2
Adm State : Up Oper State : Up
Path Name : p-loose Path Type : Secondary
Path Admin : Up Path Oper : Down
OutInterface: n/a Out Label : n/a
Path Up Time: 0d 00:00:00 Path Dn Time: 0d 00:26:57
Retry Limit : 0 Retry Timer : 30 sec
RetryAttempt: 0 NextRetryIn : 0 sec
SetupPriori*: 7 Hold Priori*: 0
Preference : n/a
Bandwidth : No Reservation Oper Bw : 0 Mbps
Hop Limit : 255 Class Type : 0
Oper CT : None
Record Route: Record Record Label: Record
Oper MTU : 0 Neg MTU : 0
Adaptive : Enabled Oper Metric : 65535
Include Grps: Exclude Grps:
None None
Path Trans : 6 CSPF Queries: 21
Failure Code: noError Failure Node: n/a
ExplicitHops:
No Hops Specified
Actual Hops :
No Hops Specified
ComputedHops:
No Hops Specified
Srlg : Disabled
ResigEligib*: False
LastResignal: n/a CSPF Metric : 0
-------------------------------------------------------------------------------
LSP l-r3 Path r3
-------------------------------------------------------------------------------
LSP Name : l-r3 Path LSP ID : 17930
From : 1.1.1.1 To : 3.3.3.3
Adm State : Up Oper State : Up
Path Name : r3 Path Type : Primary
Path Admin : Up Path Oper : Up
OutInterface: 1/1/1 Out Label : 131048
Path Up Time: 0d 00:27:06 Path Dn Time: 0d 00:00:00
Retry Limit : 0 Retry Timer : 30 sec
RetryAttempt: 0 NextRetryIn : 0 sec
SetupPriori*: 7 Hold Priori*: 0
Preference : n/a
Bandwidth : 10 Mbps Oper Bw : 10 Mbps
Hop Limit : 255 Class Type : 0
Backup CT : None
MainCT Retry: n/a MainCT Retry: 0
Rem : Limit :
Oper CT : 0
Record Route: Record Record Label: Record
Oper MTU : 1558 Neg MTU : 1558
Adaptive : Enabled Oper Metric : 300
Include Grps: Exclude Grps:
None None
Path Trans : 5 CSPF Queries: 25
Failure Code: noError Failure Node: n/a
ExplicitHops:
2.2.2.2 -> 4.4.4.4 -> 3.3.3.3
Actual Hops :
192.168.12.1(1.1.1.1) Record Label : N/A
-> 192.168.12.2(2.2.2.2) Record Label : 131048
-> 192.168.24.4(4.4.4.4) Record Label : 131050
-> 192.168.34.3(3.3.3.3) Record Label : 131050
ComputedHops:
192.168.12.1 -> 192.168.12.2 -> 192.168.24.4 -> 192.168.34.3
ResigEligib*: False
LastResignal: n/a CSPF Metric : 300

You might also like