JNCIE-SP cheat sheet
JNCIE-SP · Keep the key ideas within reach.
System and Platform Configuration
Junos configuration is hierarchical and commit-based:
commit checkvalidates syntax,commit confirmed <minutes>auto-rolls back unless confirmed withcommit, protecting remote changes.User classes (super-user, operator, read-only, unauthorized) map to permission bits;
allow-configuration/deny-configurationregexes scope login classes to specific hierarchy paths.set system syslog file <name> any infologs all facilities at info; facility/severity pairs areany,authorization,daemon,firewall,interactive-commands,kernel,pfe,user.NTP:
set system ntp server <ip> prefer,set system ntp authentication-key, andset system ntp trusted-key; verify withshow ntp statusandshow ntp associations.SNMPv3 requires
set snmp v3 usm local-engine user <u> authentication-sha authentication-keyplusvacmaccess andcommunity/trap-groupfor traps; v2c usesset snmp community <name> authorization read-only.Software upgrade:
request system software add <pkg> no-validate reboot; dual-root partitioning usesrequest system snapshotto sync alternate root, andrequest system reboot media diskto boot it.Interface config:
set interfaces ge-0/0/0 unit 0 family inet address 10.0.0.1/30;commitapplies, butshow interfaces terseconfirms link state;mtu,speed,link-modeare physical-level.Rescue configuration:
request system configuration rescue savestores a known-good config;rollback rescuerestores it, useful before risky commits.show system uptime,show chassis alarms, andshow chassis hardwareverify platform health;show log messagesis the primary syslog file for faults.
Interior Gateway Protocols and Routing Policy
OSPF areas: area 0 is backbone; all non-backbone areas must connect to area 0 via virtual link (
set protocols ospf area <n> virtual-link <rtr-id>) or ABR.IS-IS levels: L1 intra-area, L2 inter-area/backbone;
set protocols isis level 1 disablemakes a pure L2 router;wide-metrics-onlyenables TE extensions.Junos routing policy is a list of terms evaluated top-down; first match wins, and an implicit deny follows unless an
acceptterm exists.frommatch conditions includeprotocol,neighbor,route-filter <prefix> exact|longer|orlonger|upto,community,as-path, andprefix-list;thenactions includeaccept,reject,next term,metric,local-preference,community add.Redistribution:
export <policy>underprotocols ospf/isiscontrols what enters the IGP;importfilters what is accepted from the protocol.BGP-IGP interaction:
set protocols bgp group <g> family inet unicastplusset routing-options router-id; IGP provides next-hop reachability, sonext-hop-selfon iBGP is required when the IGP does not carry the next hop.Route filtering:
route-filter 10.0.0.0/8 orlongermatches more-specifics;prefix-listis a reusable named list;policy-statementchains vianext policy.show route protocol ospf,show isis adjacency, andshow route policy <name>verify IGP and policy behavior;test policy <name> <prefix>simulates policy evaluation.
BGP and Service Provider Routing
iBGP requires a full mesh or route reflector/confederation;
set protocols bgp group <g> type internalandlocal-addressdefine the session; eBGP usestype externalwithpeer-as.Route reflection:
set protocols bgp group <g> cluster <id>; the RR reflects client routes to other clients and non-clients, andno-client-reflectdisables client-to-client reflection.Confederations:
set routing-options confederation <as> members <as-list>; external confederation peers useconfederationin the group, and the AS path shows the confederation AS.BGP attributes:
local-preference(default 100, iBGP only),MED(default 0, compared across eBGP),AS-path(length is tiebreaker),next-hop,origin,community.Best-path order: weight, local-preference, locally originated, AS-path length, origin, MED, eBGP over iBGP, IGP metric to next hop, router ID, cluster list length.
Scaling:
set protocols bgp group <g> family inet unicastplusmultipathenables ECMP;add-pathadvertises multiple paths;dampingsuppresses flapping routes withhalf-life,reuse,suppress,max-suppress.Graceful restart:
set protocols bgp graceful-restartandset routing-options graceful-restart;long-lived-graceful-restartextends the stale timer for control-plane restarts.show bgp summary,show route advertising-protocol bgp <peer>, andshow route receive-protocol bgp <peer>verify session state and advertised/received routes.
MPLS and Label Distribution
LDP:
set protocols ldp interface <if>andset protocols ldp interface lo0.0; labels are advertised for IGP routes and the loopback; verify withshow ldp neighborandshow ldp database.RSVP-TE:
set protocols rsvp interface <if>andset mpls lsp <name> to <ip> ...; LSPs signal withbandwidth,priority,setup-priority,hold-priority.MPLS forwarding:
show route table inet.3holds the label-switched routes;show mpls lspandshow mpls lsp statisticsverify LSP state and traffic.Label stacking: an outer transport label (LDP/RSVP) pushes over an inner service label (VPN/VC);
show route table mpls.0shows the label operations (swap, pop, push).Traffic engineering:
set protocols mpls traffic-engineering bgp-igp(orbgp-igp-both-ribs) makes BGP next hops resolve over RSVP LSPs;set protocols mpls label-switched-path <n> primary <path>.Constrained-path LSPs:
set protocols mpls path <name> <hop> strict|loose;set protocols mpls label-switched-path <n> primary <path> standby <path>for protection.show mpls interface,show rsvp session, andshow mpls lsp detailverify interface, session, and LSP state;traceroute mpls ldp/traceroute mpls rsvptrace label paths.
Layer 3 VPNs
VRF config:
set routing-instances <vrf> instance-type vrf,route-distinguisher <rd>,vrf-target target:<as>:<n>,vrf-table-label,interface <if>,route-target export/import.MP-BGP:
set protocols bgp group <g> family inet-vpn unicast; PE routers exchange VPN-IPv4 routes with RD+prefix and extended communities (route targets).Route targets:
vrf-targetsets both import and export;vrf-import/vrf-exportpolicies allow selective leaking;vrf-target export target:... import target:...separates them.VRF route leaking:
set routing-instances <vrf> routing-options auto-exportorvrf-import/vrf-exportpolicies withfrom communityandthen accept.Hub-and-spoke: hub VRF exports its RT, spokes import hub RT; spokes export a distinct RT the hub imports; hub uses
next-hop-selforvrf-table-label.Inter-AS options: Option A (back-to-back VRF subinterfaces), Option B (MP-eBGP between ASBRs with
family inet-vpn), Option C (MP-eBGP between PEs withfamily inet labeled-unicast).Carrier-of-carriers:
set routing-instances <vrf> instance-type vrfwithvrf-targetandvrf-table-label; customer routes are carried as VPN routes, and the carrier does not import customer RTs.show route table <vrf>.inet.0,show bgp summary, andshow route table bgp.l3vpn.0verify VRF routes and VPN NLRIs.
Layer 2 VPNs and EVPN
VPLS:
set routing-instances <vpls> instance-type vpls,protocols vpls site <s> site-identifier <n>,interface <if>;vpls-idandroute-distinguisherare required for BGP-signaled VPLS.L2VPN:
set routing-instances <l2vpn> instance-type l2vpn,protocols l2vpn site <s> site-identifier <n> interface <if>;encapsulation-type ethernetandcontrol-wordare optional.EVPN-MPLS:
set protocols evpn encapsulation mpls,set routing-instances <evpn> instance-type evpn,vlan-id,route-distinguisher,vrf-target,protocols evpn interface <if>.EVPN-VXLAN:
set protocols evpn encapsulation vxlan,set switch-options vtep-source-interface lo0.0,set routing-instances <evpn> vxlan vni <n>; VTEP is the loopback.Multihoming:
set protocols evpn multihoming encapsulation mpls,set interfaces <if> esi <id>; EVPN advertises Ethernet Segment routes and Designated Forwarder election.MAC learning and mobility:
set protocols evpn mac-learning,set protocols evpn mac-ip; MAC mobility uses the MAC Mobility extended community with a sequence number.show evpn instance,show evpn mac-table, andshow evpn databaseverify EVPN state, MAC entries, and designated forwarder status.
Multicast
IGMP:
set protocols igmp interface <if>; IGMPv3 supports SSM;show igmp groupandshow igmp interfaceverify membership.PIM-SM:
set protocols pim rp static address <ip>,set protocols pim interface <if> mode sparse; RP is required for shared tree;set protocols pim rp local addressmakes a router the RP.PIM-SSM:
set protocols pim rp static address <ip>plusset protocols pim ssm; SSM uses (S,G) with IGMPv3 and does not require an RP.MSDP:
set protocols msdp peer <ip>andset protocols msdp local-address <ip>; MSDP connects RPs across PIM domains and advertises active sources.Multicast VPN:
set routing-instances <mvpn> instance-type mvpn,protocols mvpn,provider-tunnel rsvp-teorldp-p2mp; control plane uses PIM/MLDP.mLDP:
set protocols mldp interface <if>,set protocols mldp p2mp;set protocols rsvp p2mpfor RSVP-TE P2MP;show mldpverifies tree state.PIM over MPLS:
set protocols pim interface <if> mode sparseandset protocols pim rp; PIM can run over MPLS LSPs whenset protocols pim interface lo0.0andset protocols pim rpare configured.show pim neighbors,show pim join,show multicast route, andshow msdp summaryverify multicast state and source discovery.
High Availability, Security, and Troubleshooting
BFD:
set protocols bfd min-interval <ms>,multiplier <n>, andset protocols ospf/isis/bgp ... bfd-liveness-detection; BFD detects sub-second failures.NSR/NSB:
set routing-options nonstop-routing(NSR) andset protocols bgp graceful-restart; NSB is enabled per-protocol withset protocols ospf nonstop-routingfor stateful switchover.GRES:
set chassis redundancy graceful-switchover;set routing-options graceful-restart;set protocols bgp graceful-restart;show system switchoververifies RE state.CoS:
set class-of-service classifiers,forwarding-classes,schedulers,scheduler-maps, anddrop-profiles;set class-of-service interfaces <if> scheduler-map <name>.Firewall filters:
set firewall family inet filter <name> term <t> from <match> then <action>; actions includeaccept,discard,reject,count,policer,log.show firewall,show firewall filter <name>, andshow class-of-service interface <if>verify filter counters and CoS mapping.Troubleshooting:
show log messages,show interfaces <if> extensive,show route <prefix> detail,monitor traffic interface <if>, andshow system alarmsisolate faults.
High Availability, Security, and Troubleshooting (Extended)
Graceful restart for routing protocols:
set routing-options graceful-restartandset protocols <proto> graceful-restart; helper mode is enabled by default on peers.BFD timers:
min-interval(default 1000 ms),min-receive-interval,multiplier(default 3);set protocols bfdapplies globally and per-protocol overrides.CoS hierarchy: classifier → forwarding class → scheduler → drop profile;
set class-of-service classifiers inet-precedence <name> forwarding-classesmaps DSCP/IP precedence.Firewall filter match conditions:
source-address,destination-address,protocol,destination-port,source-port,tcp-flags,dscp,icmp-type;then count <name>for counters.show system switchovershows RE role and NSR state;show chassis routing-engineshows hardware state;show system core-dumpsfor crash analysis.monitor traffic interface <if> matching <filter>captures packets;show log messages | match <pattern>filters syslog;show route <prefix> detailshows attributes.request support informationandshow tech-supportcollect diagnostic data for TAC;show system uptimeandshow chassis alarmsfor platform health.
System and Platform Configuration (Junos OS Essentials)
Junos commit model:
commit checkvalidates,commitapplies,commit confirmed <min>auto-rolls back unless confirmed;rollback <n>restores prior config.Login classes:
set system login class <name> permissions <list>;allow-configuration/deny-configurationregexes scope hierarchy access.Syslog:
set system syslog file <name> <facility> <severity>; facilities includeany,authorization,daemon,firewall,kernel,pfe,user.NTP:
set system ntp server <ip> prefer,set system ntp authentication-key <n> type md5 value <key>,set system ntp trusted-key <n>; verify withshow ntp status.SNMPv3:
set snmp v3 usm local-engine user <u> authentication-sha authentication-key <key>plusset snmp v3 vacm access group <g> ...; v2c usesset snmp community <name> authorization read-only.Software upgrade:
request system software add <pkg> no-validate reboot;request system snapshotsyncs alternate root;request system reboot media diskboots it.Interface config:
set interfaces ge-0/0/0 unit 0 family inet address 10.0.0.1/30;show interfaces terseconfirms link state;mtu,speed,link-modeare physical-level.Rescue config:
request system configuration rescue saveandrollback rescue; useful before risky commits.show system uptime,show chassis alarms,show chassis hardware, andshow log messagesverify platform health.
Interior Gateway Protocols and Routing Policy (OSPF/IS-IS)
OSPF areas: area 0 is backbone; non-backbone areas connect via ABR or
set protocols ospf area <n> virtual-link <rtr-id>.IS-IS levels: L1 intra-area, L2 inter-area/backbone;
set protocols isis level 1 disablemakes a pure L2 router;wide-metrics-onlyenables TE extensions.Junos policy: list of terms evaluated top-down; first match wins; implicit deny follows unless an
acceptterm exists.frommatches:protocol,neighbor,route-filter <prefix> exact|longer|orlonger|upto,community,as-path,prefix-list;thenactions:accept,reject,next term,metric,local-preference,community add.Redistribution:
export <policy>underprotocols ospf/isiscontrols what enters the IGP;importfilters what is accepted.BGP-IGP interaction: IGP provides next-hop reachability;
next-hop-selfon iBGP is required when the IGP does not carry the next hop.Route filtering:
route-filter 10.0.0.0/8 orlongermatches more-specifics;prefix-listis a reusable named list;policy-statementchains vianext policy.show route protocol ospf,show isis adjacency,show route policy <name>, andtest policy <name> <prefix>verify IGP and policy behavior.
BGP and Service Provider Routing (Attributes and Scaling)
iBGP requires full mesh or RR/confederation;
set protocols bgp group <g> type internalandlocal-addressdefine the session; eBGP usestype externalwithpeer-as.Route reflection:
set protocols bgp group <g> cluster <id>; RR reflects client routes to other clients and non-clients;no-client-reflectdisables client-to-client reflection.Confederations:
set routing-options confederation <as> members <as-list>; external confederation peers useconfederationin the group.BGP attributes:
local-preference(default 100, iBGP only),MED(default 0, compared across eBGP),AS-pathlength,next-hop,origin,community.Best-path order: weight, local-preference, locally originated, AS-path length, origin, MED, eBGP over iBGP, IGP metric to next hop, router ID, cluster list length.
Scaling:
multipathenables ECMP;add-pathadvertises multiple paths;dampingsuppresses flapping routes withhalf-life,reuse,suppress,max-suppress.Graceful restart:
set protocols bgp graceful-restartandset routing-options graceful-restart;long-lived-graceful-restartextends the stale timer.show bgp summary,show route advertising-protocol bgp <peer>, andshow route receive-protocol bgp <peer>verify session state and advertised/received routes.
MPLS and Label Distribution (LDP/RSVP-TE)
LDP:
set protocols ldp interface <if>andset protocols ldp interface lo0.0; labels are advertised for IGP routes and the loopback; verify withshow ldp neighborandshow ldp database.RSVP-TE:
set protocols rsvp interface <if>andset mpls lsp <name> to <ip>; LSPs signal withbandwidth,priority,setup-priority,hold-priority.MPLS forwarding:
show route table inet.3holds label-switched routes;show mpls lspandshow mpls lsp statisticsverify LSP state and traffic.Label stacking: outer transport label (LDP/RSVP) over inner service label (VPN/VC);
show route table mpls.0shows label operations (swap, pop, push).Traffic engineering:
set protocols mpls traffic-engineering bgp-igp(orbgp-igp-both-ribs) makes BGP next hops resolve over RSVP LSPs;set protocols mpls label-switched-path <n> primary <path>.Constrained-path LSPs:
set protocols mpls path <name> <hop> strict|loose;set protocols mpls label-switched-path <n> primary <path> standby <path>for protection.show mpls interface,show rsvp session, andshow mpls lsp detailverify interface, session, and LSP state;traceroute mpls ldp/traceroute mpls rsvptrace label paths.
Layer 3 VPNs (VRF and MP-BGP)
VRF config:
set routing-instances <vrf> instance-type vrf,route-distinguisher <rd>,vrf-target target:<as>:<n>,vrf-table-label,interface <if>,route-target export/import.MP-BGP:
set protocols bgp group <g> family inet-vpn unicast; PE routers exchange VPN-IPv4 routes with RD+prefix and extended communities (route targets).Route targets:
vrf-targetsets both import and export;vrf-import/vrf-exportpolicies allow selective leaking;vrf-target export target:... import target:...separates them.VRF route leaking:
set routing-instances <vrf> routing-options auto-exportorvrf-import/vrf-exportpolicies withfrom communityandthen accept.Hub-and-spoke: hub VRF exports its RT, spokes import hub RT; spokes export a distinct RT the hub imports; hub uses
next-hop-selforvrf-table-label.Inter-AS options: Option A (back-to-back VRF subinterfaces), Option B (MP-eBGP between ASBRs with
family inet-vpn), Option C (MP-eBGP between PEs withfamily inet labeled-unicast).Carrier-of-carriers:
set routing-instances <vrf> instance-type vrfwithvrf-targetandvrf-table-label; customer routes are carried as VPN routes; the carrier does not import customer RTs.show route table <vrf>.inet.0,show bgp summary, andshow route table bgp.l3vpn.0verify VRF routes and VPN NLRIs.
Layer 2 VPNs and EVPN (VPLS/L2VPN/EVPN)
VPLS:
set routing-instances <vpls> instance-type vpls,protocols vpls site <s> site-identifier <n>,interface <if>;vpls-idandroute-distinguisherare required for BGP-signaled VPLS.L2VPN:
set routing-instances <l2vpn> instance-type l2vpn,protocols l2vpn site <s> site-identifier <n> interface <if>;encapsulation-type ethernetandcontrol-wordare optional.EVPN-MPLS:
set protocols evpn encapsulation mpls,set routing-instances <evpn> instance-type evpn,vlan-id,route-distinguisher,vrf-target,protocols evpn interface <if>.EVPN-VXLAN:
set protocols evpn encapsulation vxlan,set switch-options vtep-source-interface lo0.0,set routing-instances <evpn> vxlan vni <n>; VTEP is the loopback.Multihoming:
set protocols evpn multihoming encapsulation mpls,set interfaces <if> esi <id>; EVPN advertises Ethernet Segment routes and Designated Forwarder election.MAC learning and mobility:
set protocols evpn mac-learning,set protocols evpn mac-ip; MAC mobility uses the MAC Mobility extended community with a sequence number.show evpn instance,show evpn mac-table, andshow evpn databaseverify EVPN state, MAC entries, and designated forwarder status.
Multicast (IGMP/PIM/MSDP/MVPN)
IGMP:
set protocols igmp interface <if>; IGMPv3 supports SSM;show igmp groupandshow igmp interfaceverify membership.PIM-SM:
set protocols pim rp static address <ip>,set protocols pim interface <if> mode sparse; RP is required for shared tree;set protocols pim rp local addressmakes a router the RP.PIM-SSM:
set protocols pim rp static address <ip>plusset protocols pim ssm; SSM uses (S,G) with IGMPv3 and does not require an RP.MSDP:
set protocols msdp peer <ip>andset protocols msdp local-address <ip>; MSDP connects RPs across PIM domains and advertises active sources.Multicast VPN:
set routing-instances <mvpn> instance-type mvpn,protocols mvpn,provider-tunnel rsvp-teorldp-p2mp; control plane uses PIM/MLDP.mLDP:
set protocols mldp interface <if>,set protocols mldp p2mp;set protocols rsvp p2mpfor RSVP-TE P2MP;show mldpverifies tree state.PIM over MPLS:
set protocols pim interface <if> mode sparseandset protocols pim rp; PIM can run over MPLS LSPs whenset protocols pim interface lo0.0andset protocols pim rpare configured.show pim neighbors,show pim join,show multicast route, andshow msdp summaryverify multicast state and source discovery.
High Availability, Security, and Troubleshooting (BFD/NSR/CoS)
BFD:
set protocols bfd min-interval <ms>,multiplier <n>, andset protocols ospf/isis/bgp ... bfd-liveness-detection; BFD detects sub-second failures.NSR/NSB:
set routing-options nonstop-routing(NSR) andset protocols bgp graceful-restart; NSB is enabled per-protocol withset protocols ospf nonstop-routingfor stateful switchover.GRES:
set chassis redundancy graceful-switchover;set routing-options graceful-restart;set protocols bgp graceful-restart;show system switchoververifies RE state.CoS:
set class-of-service classifiers,forwarding-classes,schedulers,scheduler-maps, anddrop-profiles;set class-of-service interfaces <if> scheduler-map <name>.Firewall filters:
set firewall family inet filter <name> term <t> from <match> then <action>; actions includeaccept,discard,reject,count,policer,log.show firewall,show firewall filter <name>, andshow class-of-service interface <if>verify filter counters and CoS mapping.Troubleshooting:
show log messages,show interfaces <if> extensive,show route <prefix> detail,monitor traffic interface <if>, andshow system alarmsisolate faults.
High Availability, Security, and Troubleshooting (Verification and Fault Isolation)
Graceful restart for routing protocols:
set routing-options graceful-restartandset protocols <proto> graceful-restart; helper mode is enabled by default on peers.BFD timers:
min-interval(default 1000 ms),min-receive-interval,multiplier(default 3);set protocols bfdapplies globally and per-protocol overrides.CoS hierarchy: classifier → forwarding class → scheduler → drop profile;
set class-of-service classifiers inet-precedence <name> forwarding-classesmaps DSCP/IP precedence.Firewall filter match conditions:
source-address,destination-address,protocol,destination-port,source-port,tcp-flags,dscp,icmp-type;then count <name>for counters.show system switchovershows RE role and NSR state;show chassis routing-engineshows hardware state;show system core-dumpsfor crash analysis.monitor traffic interface <if> matching <filter>captures packets;show log messages | match <pattern>filters syslog;show route <prefix> detailshows attributes.request support informationandshow tech-supportcollect diagnostic data for TAC;show system uptimeandshow chassis alarmsfor platform health.
System and Platform Configuration (Junos OS)
Junos commit model:
commit checkvalidates,commitapplies,commit confirmed <min>auto-rolls back unless confirmed;rollback <n>restores prior config.Login classes:
set system login class <name> permissions <list>;allow-configuration/deny-configurationregexes scope hierarchy access.Syslog:
set system syslog file <name> <facility> <severity>; facilities includeany,authorization,daemon,firewall,kernel,pfe,user.NTP:
set system ntp server <ip> prefer,set system ntp authentication-key <n> type md5 value <key>,set system ntp trusted-key <n>; verify withshow ntp status.SNMPv3:
set snmp v3 usm local-engine user <u> authentication-sha authentication-key <key>plusset snmp v3 vacm access group <g> ...; v2c usesset snmp community <name> authorization read-only.Software upgrade:
request system software add <pkg> no-validate reboot;request system snapshotsyncs alternate root;request system reboot media diskboots it.Interface config:
set interfaces ge-0/0/0 unit 0 family inet address 10.0.0.1/30;show interfaces terseconfirms link state;mtu,speed,link-modeare physical-level.Rescue config:
request system configuration rescue saveandrollback rescue; useful before risky commits.show system uptime,show chassis alarms,show chassis hardware, andshow log messagesverify platform health.
Interior Gateway Protocols and Routing Policy (OSPF/IS-IS)
OSPF areas: area 0 is backbone; non-backbone areas connect via ABR or
set protocols ospf area <n> virtual-link <rtr-id>.IS-IS levels: L1 intra-area, L2 inter-area/backbone;
set protocols isis level 1 disablemakes a pure L2 router;wide-metrics-onlyenables TE extensions.Junos policy: list of terms evaluated top-down; first match wins; implicit deny follows unless an
acceptterm exists.frommatches:protocol,neighbor,route-filter <prefix> exact|longer|orlonger|upto,community,as-path,prefix-list;thenactions:accept,reject,next term,metric,local-preference,community add.Redistribution:
export <policy>underprotocols ospf/isiscontrols what enters the IGP;importfilters what is accepted.BGP-IGP interaction: IGP provides next-hop reachability;
next-hop-selfon iBGP is required when the IGP does not carry the next hop.Route filtering:
route-filter 10.0.0.0/8 orlongermatches more-specifics;prefix-listis a reusable named list;policy-statementchains vianext policy.show route protocol ospf,show isis adjacency,show route policy <name>, andtest policy <name> <prefix>verify IGP and policy behavior.
BGP and Service Provider Routing (Attributes and Scaling)
iBGP requires full mesh or RR/confederation;
set protocols bgp group <g> type internalandlocal-addressdefine the session; eBGP usestype externalwithpeer-as.Route reflection:
set protocols bgp group <g> cluster <id>; RR reflects client routes to other clients and non-clients;no-client-reflectdisables client-to-client reflection.Confederations:
set routing-options confederation <as> members <as-list>; external confederation peers useconfederationin the group.BGP attributes:
local-preference(default 100, iBGP only),MED(default 0, compared across eBGP),AS-pathlength,next-hop,origin,community.Best-path order: weight, local-preference, locally originated, AS-path length, origin, MED, eBGP over iBGP, IGP metric to next hop, router ID, cluster list length.
Scaling:
multipathenables ECMP;add-pathadvertises multiple paths;dampingsuppresses flapping routes withhalf-life,reuse,suppress,max-suppress.Graceful restart:
set protocols bgp graceful-restartandset routing-options graceful-restart;long-lived-graceful-restartextends the stale timer.show bgp summary,show route advertising-protocol bgp <peer>, andshow route receive-protocol bgp <peer>verify session state and advertised/received routes.
MPLS and Label Distribution (LDP/RSVP-TE)
LDP:
set protocols ldp interface <if>andset protocols ldp interface lo0.0; labels are advertised for IGP routes and the loopback; verify withshow ldp neighborandshow ldp database.RSVP-TE:
set protocols rsvp interface <if>andset mpls lsp <name> to <ip>; LSPs signal withbandwidth,priority,setup-priority,hold-priority.MPLS forwarding:
show route table inet.3holds label-switched routes;show mpls lspandshow mpls lsp statisticsverify LSP state and traffic.Label stacking: outer transport label (LDP/RSVP) over inner service label (VPN/VC);
show route table mpls.0shows label operations (swap, pop, push).Traffic engineering:
set protocols mpls traffic-engineering bgp-igp(orbgp-igp-both-ribs) makes BGP next hops resolve over RSVP LSPs;set protocols mpls label-switched-path <n> primary <path>.Constrained-path LSPs:
set protocols mpls path <name> <hop> strict|loose;set protocols mpls label-switched-path <n> primary <path> standby <path>for protection.show mpls interface,show rsvp session, andshow mpls lsp detailverify interface, session, and LSP state;traceroute mpls ldp/traceroute mpls rsvptrace label paths.
Layer 3 VPNs (VRF and MP-BGP)
VRF config:
set routing-instances <vrf> instance-type vrf,route-distinguisher <rd>,vrf-target target:<as>:<n>,vrf-table-label,interface <if>,route-target export/import.MP-BGP:
set protocols bgp group <g> family inet-vpn unicast; PE routers exchange VPN-IPv4 routes with RD+prefix and extended communities (route targets).Route targets:
vrf-targetsets both import and export;vrf-import/vrf-exportpolicies allow selective leaking;vrf-target export target:... import target:...separates them.VRF route leaking:
set routing-instances <vrf> routing-options auto-exportorvrf-import/vrf-exportpolicies withfrom communityandthen accept.Hub-and-spoke: hub VRF exports its RT, spokes import hub RT; spokes export a distinct RT the hub imports; hub uses
next-hop-selforvrf-table-label.Inter-AS options: Option A (back-to-back VRF subinterfaces), Option B (MP-eBGP between ASBRs with
family inet-vpn), Option C (MP-eBGP between PEs withfamily inet labeled-unicast).Carrier-of-carriers:
set routing-instances <vrf> instance-type vrfwithvrf-targetandvrf-table-label; customer routes are carried as VPN routes; the carrier does not import customer RTs.show route table <vrf>.inet.0,show bgp summary, andshow route table bgp.l3vpn.0verify VRF routes and VPN NLRIs.
Layer 2 VPNs and EVPN (VPLS/L2VPN/EVPN)
VPLS:
set routing-instances <vpls> instance-type vpls,protocols vpls site <s> site-identifier <n>,interface <if>;vpls-idandroute-distinguisherare required for BGP-signaled VPLS.L2VPN:
set routing-instances <l2vpn> instance-type l2vpn,protocols l2vpn site <s> site-identifier <n> interface <if>;encapsulation-type ethernetandcontrol-wordare optional.EVPN-MPLS:
set protocols evpn encapsulation mpls,set routing-instances <evpn> instance-type evpn,vlan-id,route-distinguisher,vrf-target,protocols evpn interface <if>.EVPN-VXLAN:
set protocols evpn encapsulation vxlan,set switch-options vtep-source-interface lo0.0,set routing-instances <evpn> vxlan vni <n>; VTEP is the loopback.Multihoming:
set protocols evpn multihoming encapsulation mpls,set interfaces <if> esi <id>; EVPN advertises Ethernet Segment routes and Designated Forwarder election.MAC learning and mobility:
set protocols evpn mac-learning,set protocols evpn mac-ip; MAC mobility uses the MAC Mobility extended community with a sequence number.show evpn instance,show evpn mac-table, andshow evpn databaseverify EVPN state, MAC entries, and designated forwarder status.
Multicast (IGMP/PIM/MSDP/MVPN)
IGMP:
set protocols igmp interface <if>; IGMPv3 supports SSM;show igmp groupandshow igmp interfaceverify membership.PIM-SM:
set protocols pim rp static address <ip>,set protocols pim interface <if> mode sparse; RP is required for shared tree;set protocols pim rp local addressmakes a router the RP.PIM-SSM:
set protocols pim rp static address <ip>plusset protocols pim ssm; SSM uses (S,G) with IGMPv3 and does not require an RP.MSDP:
set protocols msdp peer <ip>andset protocols msdp local-address <ip>; MSDP connects RPs across PIM domains and advertises active sources.Multicast VPN:
set routing-instances <mvpn> instance-type mvpn,protocols mvpn,provider-tunnel rsvp-teorldp-p2mp; control plane uses PIM/MLDP.mLDP:
set protocols mldp interface <if>,set protocols mldp p2mp;set protocols rsvp p2mpfor RSVP-TE P2MP;show mldpverifies tree state.PIM over MPLS:
set protocols pim interface <if> mode sparseandset protocols pim rp; PIM can run over MPLS LSPs whenset protocols pim interface lo0.0andset protocols pim rpare configured.show pim neighbors,show pim join,show multicast route, andshow msdp summaryverify multicast state and source discovery.
High Availability, Security, and Troubleshooting (BFD/NSR/CoS)
BFD:
set protocols bfd min-interval <ms>,multiplier <n>, andset protocols ospf/isis/bgp ... bfd-liveness-detection; BFD detects sub-second failures.NSR/NSB:
set routing-options nonstop-routing(NSR) andset protocols bgp graceful-restart; NSB is enabled per-protocol withset protocols ospf nonstop-routingfor stateful switchover.GRES:
set chassis redundancy graceful-switchover;set routing-options graceful-restart;set protocols bgp graceful-restart;show system switchoververifies RE state.CoS:
set class-of-service classifiers,forwarding-classes,schedulers,scheduler-maps, anddrop-profiles;set class-of-service interfaces <if> scheduler-map <name>.Firewall filters:
set firewall family inet filter <name> term <t> from <match> then <action>; actions includeaccept,discard,reject,count,policer,log.show firewall,show firewall filter <name>, andshow class-of-service interface <if>verify filter counters and CoS mapping.Troubleshooting:
show log messages,show interfaces <if> extensive,show route <prefix> detail,monitor traffic interface <if>, andshow system alarmsisolate faults.
High Availability, Security, and Troubleshooting (Verification and Fault Isolation)
Graceful restart for routing protocols:
set routing-options graceful-restartandset protocols <proto> graceful-restart; helper mode is enabled by default on peers.BFD timers:
min-interval(default 1000 ms),min-receive-interval,multiplier(default 3);set protocols bfdapplies globally and per-protocol overrides.CoS hierarchy: classifier → forwarding class → scheduler → drop profile;
set class-of-service classifiers inet-precedence <name> forwarding-classesmaps DSCP/IP precedence.Firewall filter match conditions:
source-address,destination-address,protocol,destination-port,source-port,tcp-flags,dscp,icmp-type;then count <name>for counters.show system switchovershows RE role and NSR state;show chassis routing-engineshows hardware state;show system core-dumpsfor crash analysis.monitor traffic interface <if> matching <filter>captures packets;show log messages | match <pattern>filters syslog;show route <prefix> detailshows attributes.request support informationandshow tech-supportcollect diagnostic data for TAC;show system uptimeandshow chassis alarmsfor platform health.