Pseudowire MPLS Juniper e Cisco

Posted: quinta-feira, 23 de abril de 2015 by Wairisson Gomes in Marcadores: , , , , , , , ,
3

Para o cenário, assuma OSPF + MPLS+LDP ativos nos routers e as loopbacks devidamente publicadas:

Segue abaixo as configurações que usei para criar um PW entre Juniper e Cisco.

Cisco:

conf t
mpls label protocol ldp
pseudowire-class MartiniToJuniper
 encapsulation mpls

interface GigabitEthernet0/3.77
 encapsulation dot1Q 77
 xconnect 192.168.0.1 7 pw-class MartiniToJuniper


Juniper:

set interfaces ge-0/0/5 description TESTE-PW-CISCO-7200
set interfaces ge-0/0/5 vlan-tagging
set interfaces ge-0/0/5 media-type copper
set interfaces ge-0/0/5 encapsulation flexible-ethernet-services
set interfaces ge-0/0/5 unit 7 description TESTE-PW-TO-CISCO7200
set interfaces ge-0/0/5 unit 7 encapsulation vlan-ccc
set interfaces ge-0/0/5 unit 7 vlan-id 7
set interfaces ge-0/0/5 unit 7 family ccc

set protocols mpls label-switched-path TO-7200-TESTE to 192.168.0.2
set protocols mpls label-switched-path TO-7200-TESTE no-cspf

set protocols l2circuit neighbor 192.168.0.2 interface ge-0/0/5.7 virtual-circuit-id 7
set protocols l2circuit neighbor 192.168.0.2  interface ge-0/0/5.7 encapsulation-type ethernet-vlan



Referências: http://www.gossamer-threads.com/lists/nsp/juniper/6800

BGP Label Update: Carrier Support Carrier - RFC 3107

Posted: segunda-feira, 23 de fevereiro de 2015 by Wairisson Gomes in Marcadores: , , ,
0



Traduzido de: http://www.mplsvpn.info/2014/01/bgp-label-update-carrier-support.html

BGP etiqueta de actualização permite-lhe criar uma rede Virtual Private Network (VPN) para que os routers autônomos limite do sistema (ASBRs) intercâmbio rotas IPv4 com Multiprotocol Label Switching (MPLS) rótulos da borda provedor (PE) roteadores. Neste cenário, os refletores Rota (RRS) câmbio rotas VPNv4 e ASBR ficar relaxado para armazenar essas rotas.

Isto resulta numa melhor escalabilidade e simplifica a configuração. Ao usar esse recurso, você pode usar a rede MPLS não como rede de trânsito, o que ajuda você a transportar todas as rotas IPv4 com rótulos sobre a rede não MPLS.

Quando você executa o comando neighbor send-label sob configuração BGP, os roteadores anunciam uns aos outros que eles podem enviar  rótulos MPLS junto com as rotas. Se os roteadores negociarem com sucesso a sua capacidade de enviar rótulos MPLS, eles adicionarão rótulos MPLS a todas as atualizações  BGP. Isso elimina a necessidade do uso de qualquer protocolo de distribuição de label entre os LSRs. (o LDP é requerido para labels VPNv4)


No cenário acima, o router reflector pode refletir as rotas IPv4 e labels MPLS aprendidas com do ASBR para os roteadores PE na VPN. Isto é realizado a partir da ativação da troca de rotas IPv4+ labels com o router reflector. O router reflector também reflete as rotas VPNv4 para os roteadores PE na VPN. Os ASBRs trocam rotas IPv4 e etiquetas MPLS com os roteadores PE usando EBGP.

Os labels MPLS são incluídos nas mensagens de update. Routers trocam os seguintes tipos de mensagens BGP:
1. Open Messages
2.Update Messages
3. Keepalive Messages
4. Notification Messages
Out of four, Update Messages contains the Network Layer Reachability Information (NLRI), which has IP addresses of the usable routes. The update message also includes path attributes and the lengths of both the usable and unusable paths. Labels for VPNv4 routes are encoded in the update message as specified in RFC 2858. The labels for the IPv4 routes are encoded in the update message as specified in RFC 3107.
Fora das quatro, Update messages contém o Network Layer Reachability Information (NLRI), que tem os endereços IP das rotas utilizáveis. A mensagem de Update  também inclui atributos de caminho e os comprimentos de ambos os caminhos utilizáveis ​​e não utilizáveis. Etiquetas para rotas VPNv4 são codificados na mensagem de update, conforme especificado no RFC 2858. Os rótulos para as rotas IPv4 são codificados na mensagem de atualização, conforme especificado no RFC 3107.

JUNOS-to-Cisco IOS/XR Command Reference

Posted: by Wairisson Gomes in
0

Retirado de:http://itlifeway.blogspot.com.br/2013/05/junos-to-cisco-iosxr-command-reference.html


Here are some very useful command references when moving between JUNOS and Cisco IOS/XR:

System Administration & General Commands

Juniper CommandDescriptionCisco CommandDescription
user@host%Unix Shell - enter cli for Operational Mode.

user@host>Operational moderouter>user exec mode

Configuration modeconfig tTo enter configuration mode. (from priveledge mode)
exitTo log outexitTo log out
show versionTo show JUNOS versionsh versionTo show IOS Version
show system processes extensiveView CPU utilization per processsh process cpuView CPU utilization per process
show system storageView free disk space in the router's file systemdirView free disk space in the router's file system
show system uptimeTo verify how long router has been upsh versionTo verify how long router has been up
show chassis forwardingView how long router components have been up.sh version, sh diagView how long router components have been up.
show chassis environmentView power supply, fan, and operating temperaturesh environmentView power supply, fan, and operating temperature
show chassis hardwareView router hardware and versionssh version, sh diagView router hardware and versions
show chassis routing-engineTo view memory usagesh memory sumView memory usage
request system rebootTo reboot router.reloadTo reboot router
show ntp associationsShow NTP associationssh ntp associationsShow NTP associations
show ntp statusShow NTP Statussh ntp statusShow NTP Status
show system alarmsView all active alarms on a router

show system usersView users logged in to a routersh usersView users logged in to a router
show system connetionsView protocols running on routersh protocolsView routing protocols running on router
request system logout usernameLog a user out of a routerclear line Log a user out of a router
| no-moreTo extend data to end of page for a single command.term length 0To extend data to end of page

Configuration

Juniper CommandDescriptionCisco CommandDescription
configure -or- editEnter configuraiton modeconfig tEnter global configuration mode
setSet a value in the configuration.Set a value in the configuration.
deleteRemove a value from the configuration.no Remove a value from the configuration.
up -or- exitMove you back up the config hierchy tree one levelexitMove you back up the config hierchy tree one level
topMove you to the top of the config hierchy.

editMoves you down the hierchy tree. Ex. edit protocols

disableShutdown an interface 'set interfaces so-0/0/0 disable'shutdownAdministratively shutdown an interface.
activateAllows the router to recognize a deactivated interface.

deactivateAdds an 'inactive' tag to the interface config.

load override teminalOpens a paste buffer in the CLI. Close the paste buffer with the Ctrl+D keystroke.Copy and paste configurationCopy a text configuration into the router.
commitIssue before the router can use any new config.

rollbackTo easily restore an old configuration.

exit -or- exit-configuration-modeExit configuration modeCntrl + Z -or - endTo exit configuration mode
run Use any operational command from configuration mode.do Enter show commands from configuration mode.

Troubleshooting

General

Juniper CommandDescriptionCisco CommandDescription
show configurationView current configuration.sh running-configurationView current configuration.
show configuration | display setView the set commands for the configuration

show class-of-service interfaceSee most of the CoS configuration for an interfaceshow policy-map interfaceView service-policy applied to interface.
show log messagesTo view router event log entriessh logView router event log entries
show interfacesTo show ip interface status and configsh ip interfacesShow ip interface status and config
show interfaces terseDisplays a summary of all interfaces.sh ip int briefDisplays a summary of all interfaces.
show interfaces queueDisplays detailed information on interface queuesshow policy-map interfaceView service-policy applied to interface.
show routeShow all IP routes the router has learned about.

show route summarySummary of all routing informationsh ip route summarySummary of all routing information
show route forwarding-tableView the current IP forwarding table.show ip routeView the current IP forwarding table.
show route 10.0.0.0/8 detailView detailed route information.

clear interfaces statistics allClear all statisticsclear countersReset all stats.
clear interfaces statistics se-0/0/0Clear statistics on anclear counters Serial0Reset data stats under interfaces or pvcs


clear ip route *Clear routing table 
request support informationSystem diagnostic info for Juniper.show techSystem diagnostic info for Cisco.

BGP

Juniper CommandDescriptionCisco CommandDescription
show bgp summaryCheck the status of BGP peers.sh ip bgp summaryCheck the status of BGP peers.
show bgp neighborView detailed informations about each BGP peersh ip bgp neighborView detailed informations about each BGP peer
show route advertising-protocol bgpView BGP routes advertised to a neighborsh ip bgp neighbor advertisedView BGP routes advertised to a peer
show route receive-protocol bgpView BGP routes received from a peer sh ip bgp neighbor receivedView BGP routes received from a peer 
show route protocol bgp (detail)View BGP routes w/BGP attributes.sh ip bgpView BGP routes w/BGP attributes.
clear bgp neighbor x.x.x.xReset BGP neighbor sessionclear ip bgp *Reset BGP neighbor session

IS-IS

Juniper CommandDescriptionCisco CommandDescription
show isis interface (detail)View IS-IS interface parameters.sh clns interfaceView IS-IS interface parameters.
show isis adjacencyView IS-IS neighbor statussh clns neighborView IS-IS neighbor status
show isis databaseView IS-IS Databasesh isis databaseView IS-IS Database
show route protocol isisCommand to view all IS-IS routes.sh ip route isisCommand to view all IS-IS routes.

OSPF

Juniper CommandDescriptionCisco CommandDescription
show ospf neighborView OSPF neighbor statussh ip ospf neighborView OSPF neighbor status
show ospf databaseView OSPF databasesh ip ospf databaseView OSPF database
show ospf interface (detail)View OSPF interface parameters.sh ip ospf interfaceView OSPF interface parameters.
show route protocol ospfCommand to view all OSPF routes.sh ip route ospfCommand to view all OSPF routes.

MPLS

Juniper CommandDescriptionCisco CommandDescription
show mpls interface


show mpls lspView all ingress, transit, and egress LSPssh mpls ldp bindings (detail)View all ingress, transit, and egress LSPs
show mpls lsp ingress (extensive)View LSP status

show mpls lsp transit (extensive)View LSP status

show mpls lsp egress (extensive)View LSP status

show rsvp interfaceView interface RSVP informationsh ip rsvp interfaceView interface RSVP information
show route table inet.3View egress address for all operational LSPs

Multicast

Juniper CommandDescriptionCisco CommandDescription
show multicast routeDisplays information about active groups and sourcessh ip mrouteDisplays information about active groups and sources
show route table inet.1Displays information about active groups and sourcessh ip mrouteDisplays information about active groups and sources
show pim bootstrapVerify the bootstrap routersh ip pim bsr-routerVerify the bootstrap router
show pim join extensiveDisplay info about known groups, sources, & interfacessh ip igmp groupsDisplay info about known groups, sources, & interfaces
show pim rpsVerify the RPsh ip pim rpVerify the RP
show pim neighborsVerify PIM neighbor establishmentsh ip pim neighborVerify PIM neighbor establishment

Firewall Filters

Juniper CommandDescriptionCisco CommandDescription
show firewallView counters and stats for all filterssh access-listsView access-list counters
clear firewallClear filter statsclear ip access-list countersClear access-list counters
show interfaces filtersView filters configured on all interfacessh ip interfacesView access-list applied to interface

IOS XRV + Virtual Box + GNS3

Posted: domingo, 22 de fevereiro de 2015 by Wairisson Gomes in
0

Comandos Cisco X Juniper

Posted: sexta-feira, 20 de fevereiro de 2015 by Wairisson Gomes in
0

" Posto aqui uma dica de equivalência entre comandos CISCO e Juniper. Bons estudos!"
Cisco CommandJuniper CommandDefinition
show runsh configurationShow running configuration
sh versh verShow version
show ip interface briefshow interface tersedisplays the status of interfaces configured for IP
show interface [intfc]show interfaces [intfc] detaildisplays the interface configuration, status and statistics.
show controller intfcshow interfaces intfc extensivedisplays information about a physical port device
show interface | incl (proto|Desc)show interfaces descriptiondisplays the interface configuration, status and statistics
show ip routeshow routedisplays summary information about entries in the routing table
show ip bgp summaryshow bgp summarydisplays the status of all Border Gateway Protocol (BGP) connections
show ip bgp net maskshow route protocol bgp prefixwill show you how that route is being advertised, look for the first line
show ip bgp net mask longer-prefixesshow route range prefixwill show you how that route is being advertised, look for the first line
show ip bgp regexp AS-regexpshow route aspath-regexp “AS-regexp”displays routes matching the autonomous system (AS) path regular expression
show ip bgp neighbors neigh received-routes
show route receive-protocol bgp neigh
Shows whether a neighbor supports the route refresh capability
show route source-gateway neigh protocol bgp
show ip bgp neighbor neigh advertised-routesshow route advertising-protocol bgp neighShows whether a neighbor supports the route refresh capability
show clns neighborsshow isis adjacencydisplays both ES and IS neighbors
show clns interfaceshow isis interfaceshows specific information about each interface
show ip route isisshow isis routesdisplays the current state of the the routing table
show isis topologyshow isis spfdisplays a list of all connected routers in all areas
show ip ospf interfaceshow ospf neighborshows neighbor ID, Priority, IP, & State if the neighbor router, dead time.
show ip ospf interfaceshow ospf interfaceshows neighbor id, pri, state, dead time, address and interface
show ip route ospfshow ospf routedisplay the current state of the routing table
show ip ospf databaseshow ospf databasedisplay list of information related to the OSPF database for a specific communication server
show versionshow version, show system uptimedisplay the system hardware config., software version, and name and source of configuration files and boot images
show diagsshow chasis hardwaredisplays power-on diagnostics status
show processes cpushow system processdisplays utilization statistics
show tech-supportrequest support infodisplays the current software image, configuration, controllers, counters, stacks, interfaces, memory and buffers
show loggingshow log messagesdisplay the state of logging to the syslog
show route-map nameshow policy namedisplayall route-maps configured or only the one specified
show ip prefix-list nameshow policy namedisplay information about a prefix list or prefix list entries
show ip community-list list
configure,
display routes that are permitted by BGP community list
show policy-options community name
show environment allshow chassis  environmentdisplays temperature and voltage information on the console
ping dest
ping dest rapid (for cisco like output)
to check to see if a destination is alive
ping dest (for unix like output)
ping (setting source int)ping dest bypass-routingto check to see if a destination is alive
terminal monitormonitor start messagesChange console terminal settings
terminal no monitormonitor stopChange console terminal settings
terminal length 0set cli screen-length 0sets the length for displaying command output

BGP VPNv4 Route Reflector

Posted: quinta-feira, 19 de fevereiro de 2015 by Wairisson Gomes in
0

Por padrão, a configuração BGP  que é feita no processo  bgp será aplicável para a Address Family Identifier - AFI IPv4 unicast . Na topologia abaixo, R2 e R4 atuam como PE routers com uma  VPN chamada COKE configurada. R3 atua como um Route reflector para R2 e R4.



As configurações :
R2 Configuration:
-----------------------
router bgp 100
no synchronization
bgp router-id 100.1.2.2
bgp log-neighbor-changes
neighbor 100.1.3.3 remote-as 100
neighbor 100.1.3.3 update-source Loopback0
neighbor 150.1.12.1 remote-as 200
no auto-summary
!
address-family vpnv4
neighbor 100.1.3.3 activate
neighbor 100.1.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf COKE
redistribute ospf 1 vrf COKE match internal external 1 external 2
no synchronization
exit-address-family

R4 Configuration:
---------------------
router bgp 100
no synchronization
bgp router-id 100.1.4.4
bgp log-neighbor-changes
neighbor 100.1.3.3 remote-as 100
neighbor 100.1.3.3 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 100.1.3.3 activate
neighbor 100.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf COKE
redistribute ospf 1 vrf COKE match internal external 1 external 2
no synchronization
exit-address-family

R3 Configuration:
---------------------
router bgp 100
no synchronization
bgp router-id 100.1.3.3
bgp log-neighbor-changes
neighbor 100.1.2.2 remote-as 100
neighbor 100.1.2.2 update-source Loopback0
neighbor 100.1.2.2 route-reflector-client
neighbor 100.1.4.4 remote-as 100
neighbor 100.1.4.4 update-source Loopback0
neighbor 100.1.4.4 route-reflector-client
no auto-summary
!
address-family vpnv4
neighbor 100.1.2.2 activate
neighbor 100.1.2.2 send-community both
neighbor 100.1.4.4 activate
neighbor 100.1.4.4 send-community both
exit-address-family

A configuração acima mostra que  R3 está configurado como router reflector com  R2 e R4 como clientes. Pode ser notado que, o router reflector não é configurado no modo VPNv4 AFI. Então R3 refletirá apenas rotas IPv4 BGP a partir de  R4 e R2 e não rotas VPNv4.

R4#
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#router bgp 100
R4(config-router)#network 100.1.4.4 mask 255.255.255.255
R4(config-router)#end
R4# sh ip bgp
BGP table version is 2, local router ID is 100.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 100.1.4.4/32 0.0.0.0 0 32768 i
R4#
R2#sh ip bgp
BGP table version is 3, local router ID is 100.1.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
r>i100.1.4.4/32 100.1.4.4 0 100 0 i
R2#

As rotas VPNv4 não estarão presentes na tabela BGP de R2.

R4#show ip bgp vpnv4 all 10.1.58.0
BGP routing table entry for 100:1:10.1.58.0/24, version 11
Paths: (1 available, best #1, table COKE)
Advertised to update-groups:
1
Local
10.1.46.6 (via COKE) from 0.0.0.0 (100.1.4.4)
Origin incomplete, metric 97, localpref 100, weight 32768, valid, sourced, best
Extended Community: RT:100:1 OSPF DOMAIN ID:0x0005:0x000000010200
OSPF RT:0.0.0.0:2:0 OSPF ROUTER ID:10.1.46.4:512
mpls labels in/out 22/nolabel
R4#
R2#show ip bgp vpnv4 all 10.1.58.0
% Network not in table
R2#

Agora configurando a reflexão de rotas dentro do modo VPNv4 fará com o que o router reflector reflita ou propague os prefixos recebidos via VPNv4 para seus demais clientes para os quais esta address family esteja ativa.

R3#
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router bgp 100
R3(config-router)#address-family vpnv4
R3(config-router-af)#neighbor 100.1.2.2 route-reflector-client
R3(config-router-af)#neighbor 100.1.4.4 route-reflector-client
R3(config-router-af)#end
R3#
R4#show ip bgp vpnv4 all 10.1.58.0
BGP routing table entry for 100:1:10.1.58.0/24, version 11
Paths: (1 available, best #1, table COKE)
Advertised to update-groups:
1
Local
10.1.46.6 (via COKE) from 0.0.0.0 (100.1.4.4)
Origin incomplete, metric 97, localpref 100, weight 32768, valid, sourced, best
Extended Community: RT:100:1 OSPF DOMAIN ID:0x0005:0x000000010200
OSPF RT:0.0.0.0:2:0 OSPF ROUTER ID:10.1.46.4:512
mpls labels in/out 22/nolabel
R4#
R2#show ip bgp vpnv4 all 10.1.58.0
BGP routing table entry for 100:1:10.1.58.0/24, version 30
Paths: (1 available, best #1, table COKE)
Flag: 0x820
Not advertised to any peer
Local
100.1.4.4 (metric 30) from 100.1.3.3 (100.1.3.3)
Origin incomplete, metric 97, localpref 100, valid, internal, best
Extended Community: RT:100:1 OSPF DOMAIN ID:0x0005:0x000000010200
OSPF RT:0.0.0.0:2:0 OSPF ROUTER ID:10.1.46.4:512
Originator: 100.1.4.4, Cluster list: 100.1.3.3
mpls labels in/out nolabel/22
R2#

Traduzido do link: http://nagendrakumar-nagendra.blogspot.com.br/2009/05/bgp-vpnv4-route-reflector.html