JN0-363 Cheatsheet
Service Provider Routing and Switching, Specialist (JNCIS-SP)
Download free PDFEthernet switching and aggregation
MAC learning and VLAN handling
- **Learning** records a frame's source MAC address, ingress interface and bridge domain. Forwarding looks up the destination MAC; dynamic entries age out after inactivity.
- **Unknown unicast**, broadcast and applicable multicast traffic are flooded within the bridge domain, subject to filtering. Known unicast uses the learned egress interface.
- **Access ports** normally carry one VLAN as untagged traffic. **Trunk ports** carry tagged traffic for their permitted VLANs; untagged handling depends on native-VLAN configuration and platform behavior.
- **VLAN rewrite** can push, pop or swap tags. Trace ingress tag matching, input rewrite, bridge-domain membership and output rewrite separately; the outer service tag and inner customer tag have different roles.
Bridge domains, IRB and spanning tree
- A **virtual-switch routing instance** isolates Layer 2 switching. Assign the relevant logical interfaces and bridge domains to that instance. An **IRB interface** supplies the IP gateway for hosts in a bridge domain.
- **STP** elects the lowest bridge ID: priority first, then MAC address. With equal priorities, the lowest MAC wins. Lower root-path cost selects the preferred path toward the root.
- Compare **root ID**, local bridge ID, root port and port roles in spanning-tree output. A non-root switch reaches the root through its root port; blocked paths prevent Layer 2 loops.
LACP and multichassis aggregation
- **Aggregated Ethernet (ae)** combines physical members into one logical link. Members need compatible settings and normally equal speeds; ports need not be contiguous. Capacity limits depend on the platform.
- **LACP active** initiates negotiation; **passive** responds. At least one side must be active. Fast and slow periodic settings control protocol timing; **minimum-links** controls when the bundle is operational.
- **MC-LAG** spreads a logical bundle across two chassis. Active/active forwarding uses links on both peers. **ICCP** coordinates peers; the **interchassis link (ICL)** carries traffic that must cross between them.
- **Per-flow hashing** keeps a flow on one member to preserve ordering. Packet-by-packet distribution can reorder traffic. On many Junos platforms, the policy action named **per-packet** enables hardware flow-based load balancing.
IP routing, instances and tunnels
Static routes and route synthesis
- **Route preference** selects among eligible routes to the same prefix; lower values win. Packet forwarding then uses **longest-prefix match**, so a more-specific route beats a summary regardless of preference.
- **Qualified next hops** give a static route alternative next hops with separate preferences or metrics. Check next-hop reachability when the expected route is inactive.
- **no-readvertise** prevents a static route from being exported to dynamic routing protocols. Export policy otherwise controls which eligible routes a protocol advertises.
- **Aggregate routes** summarize active contributing more-specific routes and normally use a reject next hop. **Generated routes** normally inherit a contributor's forwarding next hop. Check contributors and generation policy if a summary is hidden.
Routing instances and selective forwarding
- **Routing instances** maintain separate routing contexts. IPv4 routes appear in tables such as **instance.inet.0**; a route in the default table is not automatically available inside another instance.
- **instance-import** uses policy to import eligible routes from other instances. A **RIB group** installs routes into multiple routing tables. Control the leaked prefixes and ensure their next hops resolve in the receiving context.
- **Filter-based forwarding (FBF)** applies a firewall filter to matching traffic and selects a forwarding routing instance. Populate that instance with the routes and interface reachability it needs; include an action for unmatched traffic.
- **Logical tunnel (lt)** interfaces can connect routing instances internally. Physical interfaces can also connect separate contexts through external cabling. Verify both forward and return routes.
- Test in the correct table with **ping 10.0.0.2 routing-instance vr3 count 5**. Use an appropriate source address when testing a specific interface or return path.
IPv6 and encapsulation
- **FE80::/10** is IPv6 link-local space. Link-local addresses stay on one link and need interface scope when ambiguous. Junos normally creates a link-local address when IPv6 is enabled.
- **Unicast** identifies one interface; **multicast** identifies a group; **anycast** uses a shared address and routing selects a reachable, typically nearest, member. IPv6 has no broadcast.
- **Modified EUI-64** can derive a 64-bit interface identifier from a 48-bit MAC by inserting FFFE and flipping the universal/local bit. It is one address-generation method; an IPv6 address need not encode a MAC.
- The IPv6 base header includes a **flow label** and **hop limit**, with no header checksum. Routers do not fragment IPv6 packets; the source uses a Fragment extension header when needed.
- **gr** interfaces provide GRE tunnels; **ip** interfaces provide IP-over-IP tunnels. Verify outer endpoint reachability, inner addressing, tunnel routes, MTU and the ping source independently.
OSPF routing
Router identity and neighbor formation
- **OSPF** is a link-state protocol. Configure a stable, unique **32-bit router ID** under routing-options. Without an explicit ID, Junos prefers a loopback address before falling back to other eligible local addresses.
- **Hello packets** discover and maintain neighbors. On IPv4 broadcast networks, AllSPFRouters is **224.0.0.5**; AllDRouters is **224.0.0.6**. Common broadcast defaults are a 10-second hello and 40-second dead interval.
- Check area, subnet, network type, hello/dead timers, authentication and area options when adjacency fails. An adjacency stuck in **ExStart/Exchange** commonly points to an MTU or database-description negotiation problem.
- **Passive interfaces** advertise their connected network through OSPF without sending hellos or forming neighbors. Use passive operation for a subnet that must be advertised but has no intended OSPF peer.
Database exchange and designated routers
- **Database Description (DBD)** packets negotiate master/slave roles and exchange LSA headers. **Link-State Request** asks for missing or newer LSAs; **Link-State Update** carries LSAs; **Link-State Acknowledgment** confirms receipt.
- **DR/BDR election** applies on broadcast and NBMA networks. Higher interface priority wins, then higher router ID. Priority **0** makes a router ineligible; an existing DR is not displaced merely by a new higher-priority router.
- **Point-to-point** OSPF links have no DR/BDR election. On broadcast links, DROther routers normally become fully adjacent with the DR and BDR, while remaining 2-Way with one another.
LSA scope, area types and OSPFv3
- **Type 1** router and **Type 2** network LSAs describe an area. An **ABR** connects areas and uses **Type 3** summary LSAs for interarea prefixes. An **ASBR** redistributes external routes.
- **Type 5** LSAs carry AS-external prefixes. An **NSSA** originates external routes as **Type 7** LSAs; the translating NSSA ABR converts eligible Type 7 advertisements to Type 5 outside that NSSA.
- **Stub areas** exclude Type 5 externals. A **totally stubby area** also suppresses ordinary interarea summaries: Type 1 and 2 LSAs remain, along with the ABR's Type 3 default route.
- **OSPFv3** carries IPv6 routing with **protocols ospf3** and IPv6-enabled interfaces. Its router ID remains **32 bits**; it is not an IPv6 address. Inspect **show ospf3 neighbor** separately from OSPFv2.
IS-IS routing
Adjacencies and level boundaries
- **IS-IS** is link-state routing carried directly over Layer 2. Configure an ISO **NET** on the loopback, **family iso** on participating interfaces, and those interfaces under **protocols isis**.
- **Level 1** routing operates within an area and requires compatible area IDs. **Level 2** connects areas and permits differing area IDs. A Level 1-only router cannot form an adjacency with a Level 2-only router.
- **L1/L2 routers** advertise Level 1 reachability into Level 2 by default. Detailed Level 2 routes are not automatically leaked into Level 1; attached Level 1 routers normally use a default toward an L1/L2 exit.
- Use **show isis adjacency** for neighbor state and level, and **show isis database** for link-state information. Check ISO family, level compatibility, area, authentication and hello reception before changing metrics.
Metrics and DIS election
- Junos IS-IS links normally use a default **metric of 10**. Unlike OSPF, bandwidth does not automatically determine the default cost; explicit metrics or configured reference-bandwidth behavior can change it.
- **Narrow metrics** allow a link cost up to **63**, with a legacy total path limit of **1023**. **Wide metrics** extend the link field to **16,777,215**; **wide-metrics-only** permits the wider range without legacy metric advertisements.
- On a LAN, IS-IS elects a **designated intermediate system (DIS)** separately for each level. Highest priority wins, then highest interface MAC on Ethernet. The election is preemptive, and there is no backup DIS.
BGP peering and route policy
Sessions, states and messages
- **IBGP** peers share an AS; **EBGP** normally connects different ASes. Configure the local AS, neighbor AS and session type correctly. BGP uses **TCP 179**; ordinary single-hop EBGP uses an IP TTL of **1**.
- Loopback peering requires IP reachability to both peer addresses and a suitable **local-address**. For EBGP beyond a directly connected hop, configure multihop intentionally. A next-hop-self policy cannot repair a missing TCP path.
- **Idle** initializes the session, **Connect/Active** deal with TCP establishment or retries, **OpenSent/OpenConfirm** negotiate the BGP session, and **Established** permits route exchange. Active is not a successfully established session.
- **UPDATE** carries route advertisements and withdrawals. **KEEPALIVE** maintains the session; **NOTIFICATION** reports an error and closes it. **ROUTE-REFRESH** requests renewed advertisements; the routes themselves arrive in UPDATEs.
Attributes and best-path comparisons
- **ORIGIN**, **AS_PATH** and **NEXT_HOP** are well-known mandatory attributes. **AS_PATH** supports loop detection: a router normally rejects a path containing its own AS.
- First ensure route eligibility and **next-hop resolution**. Among comparable BGP paths, the key sequence is higher **LOCAL_PREF**, shorter **AS_PATH**, lower **ORIGIN** code, then lower **MED** where comparison applies.
- **ORIGIN** preference is IGP, EGP, then incomplete. MED is normally compared between paths from the same neighboring AS unless configuration changes that behavior; later tie-breakers include EBGP versus IBGP and IGP cost to the next hop.
- **Communities** are optional transitive policy tags. They do not inherently change forwarding; policy assigns their meaning. Ordinary communities can propagate unchanged unless export policy modifies or removes them.
Next hops, propagation and hidden routes
- **EBGP** normally changes NEXT_HOP when advertising a route; **IBGP** normally preserves it. An internal router therefore needs reachability to the external next hop or an intentional next-hop-self design.
- Apply **next-hop self** in an **export policy toward IBGP peers** when the border router should become their forwarding next hop. Ensure the address used for that next hop is reachable through the internal network.
- A **hidden route** is unusable for route selection. Inspect the reason with **show route hidden extensive**; unresolved next hops, policy rejection and AS loops are distinct causes. An inactive route may simply have lost to a better route.
- By default, eligible **EBGP-learned routes** can be advertised to IBGP. **IBGP-learned routes** are not advertised to another IBGP peer unless a mechanism such as route reflection or confederations permits it. Export policy still controls advertisements.
Traffic direction and operational checks
- Use higher **LOCAL_PREF** on import to favor an outbound exit throughout your AS. Use **AS-path prepending** on export to make an inbound path less attractive to other ASes; remote policy can override this influence.
- **More-specific prefixes** attract traffic before a covering summary is considered. Compare routes for the same prefix before reasoning about LOCAL_PREF, AS-path length or MED.
- **Routing policy** evaluates ordered terms and actions. Attribute changes such as next-hop self need not terminate evaluation; explicit accept/reject and the protocol's default policy determine the final result.
- **show bgp summary** gives session and prefix counts; **show bgp neighbor** gives detailed peer state. Compare **show route receive-protocol bgp** with **show route advertising-protocol bgp** to distinguish received routes from outgoing policy results.
MPLS transport and segment routing
LSP roles, labels and routing tables
- An **ingress** router selects an LSP and pushes labels; a **transit** router swaps labels; an **egress** removes the transport label. A provider **P router** is usually transit, while **PE routers** connect customer services.
- An **LSP is unidirectional**. Multiple destination prefixes can share one transport LSP to a common egress; return traffic needs its own forwarding path.
- Enable **family mpls** on the logical core interface and add it under **protocols mpls**. Enable the chosen signaling protocol on its required interfaces as well.
- **inet.0** holds IPv4 unicast routes. **inet.3** normally supplies MPLS transport next hops for BGP resolution. **mpls.0** maps incoming labels to forwarding operations; transit label switching does not look up an IP destination in inet.3.
- **Penultimate-hop popping (PHP)** removes the transport label one hop before the egress. **ultimate-hop-popping** is configured at the LSP ingress to retain a label to the egress. Explicit-null signaling also retains a label on the final link.
LDP and RSVP signaling
- **LDP** distributes labels for forwarding equivalence classes and normally follows the IGP shortest path. Enable it on core links and ensure transport-address reachability; learned transport LSPs can populate inet.3 without individually named paths.
- **RSVP-TE** signals an LSP along a selected path and can reserve bandwidth. **Path** messages travel from ingress toward egress; **Resv** messages return toward ingress and establish reservations and label mappings.
- **PathTear** travels downstream to remove path state and dependent reservations. **ResvTear** travels upstream to remove reservation state. Soft-state refreshes maintain RSVP state; absent refreshes eventually expire.
- **Primary paths** are preferred for traffic. Ordinary secondary paths are signaled when needed; **standby** pre-signals a secondary for faster failover. A signaled secondary can be up while the primary still carries traffic.
Constraints and forwarding choices
- **CSPF** uses the traffic engineering database to prune links that fail bandwidth, administrative-group or explicit-path constraints, then computes a path. Check **unreserved bandwidth**, not just physical link speed.
- Enable the IGP's **traffic engineering extensions** to advertise TE information when CSPF requires it. OSPF TE must be configured explicitly. **no-cspf** disables constraint-based calculation; it does not supply missing TE information.
- MPLS **traffic-engineering bgp** is the default and installs ingress transport routes in inet.3. **bgp-igp** uses inet.0; **bgp-igp-both-ribs** retains ingress routes in both tables.
- **mpls-forwarding** allows BGP and IGP traffic to use ingress LSP routes for forwarding without replacing the IGP routes used by routing policy. Check **show mpls lsp**, **show rsvp session** and the relevant route tables.
Segments and label ranges
- **SR-MPLS** encodes an ordered segment list as a label stack. **OSPF** or **IS-IS** extensions advertise segment information, so SR does not require a separate LDP or RSVP signaling session for basic segment forwarding.
- A **node/prefix SID** steers traffic along the IGP shortest path to its prefix. An **adjacency SID** steers traffic over a specific advertised adjacency and commonly has local significance.
- The **SRGB** reserves labels for global segments. With base **10,000** and size **500**, indices **0-499** map to labels **10,000-10,499**. Interpret a SID index against the advertising router's SRGB.
- SR still depends on working **IGP adjacencies** and label forwarding. Moving path instructions into the packet reduces per-LSP signaling state in transit routers; it does not eliminate neighbor or forwarding state.
High availability and gateway resilience
Routing Engine continuity
- **GRES** preserves forwarding and replicates kernel/interface state during Routing Engine switchover. **NSR** also replicates supported routing protocol state, allowing peers to retain their sessions through the change.
- For NSR, configure **chassis redundancy graceful-switchover**, **routing-options nonstop-routing** and **system commit synchronize**. Verify synchronization before switchover; **show system switchover** runs on the backup Routing Engine.
- **Graceful restart** depends on helper peers retaining routes while the restarting router recovers. NSR preserves supported protocol state locally and does not depend on the same helper mechanism.
- **Unified ISSU** requires a supported dual-RE platform with GRES and NSR enabled. Confirm the supported upgrade path and readiness; dual Routing Engines alone do not guarantee an in-service upgrade.
Virtual gateway election
- **VRRP** presents one virtual IP and virtual MAC for a group. One router is primary for that group and others are backups; different groups can use different primary routers.
- Higher **VRRP priority** wins. The normal default is **100**; the IP address owner uses **255**. Equal priorities use the higher primary interface IP address as the tie-breaker.
- Two primaries in one group suggest advertisement loss or mismatched configuration. Check common VLAN/subnet, group ID, virtual IP, timers and filtering. VRRP handles gateway resilience; it does not synchronize Routing Engines.