JN0-352

Free JN0-352 practice questions

10 questions from our JN0-352 practice tests, each with the correct answer and a written explanation. Read them with the answers shown, or switch to quiz mode and answer first.

Back to the JN0-352 practice exams

Question 1 of 10, Layer 2 Switching and VLANs

An ELS switch has VLAN V40 with l3-interface irb.40 configured and an IP address on irb.40. The only interface in V40 is down, and hosts on other VLANs cannot ping the irb.40 address. What explains this?

  1. AIRB addresses only answer pings from hosts in the same VLAN unless a firewall filter permits it
  2. BAn IRB interface stays down until at least one Layer 2 interface in its VLAN is up Correct answer
  3. CIRB interfaces need the VLAN to also be assigned to a virtual-router instance to become active
  4. Dirb.40 must use the same unit number as the VLAN ID and the VLAN must be named vlan40

Answer and explanation: The IRB logical interface is operationally up only when the VLAN it is bound to has at least one active Layer 2 member, so with the only member down the address is not reachable. There is no default filter limiting IRB pings to the same VLAN. No routing instance is required, and while matching the unit number to the VLAN ID is a convention, neither the unit number nor the VLAN name is mandated.

Question 2 of 10, Spanning Tree

On an RSTP switch, a unidirectional link failure causes an alternate port to stop receiving BPDUs, and the engineer fears it will start forwarding and create a loop. Which configuration addresses this?

  1. Aset protocols layer2-control bpdu-block interface ge-0/0/2
  2. Bset protocols rstp interface ge-0/0/2 no-root-port and edge
  3. Cset protocols rstp interface ge-0/0/2 edge
  4. Dset protocols rstp interface ge-0/0/2 bpdu-timeout-action block Correct answer

Answer and explanation: Loop protection (bpdu-timeout-action block) keeps a non-designated port in a loop-inconsistent blocking state when BPDUs stop arriving, instead of letting it transition to designated and forward. Root protection reacts to superior BPDUs, not missing ones, and adding edge would make the port forward even faster, and BPDU blocking disables a port that receives BPDUs, which is the wrong reaction for an inter-switch link.

Question 3 of 10, Layer 2 Security

On an ELS switch, users in VLAN EMPLOYEE must only receive DHCP leases from the server on trunk ge-0/0/47, and rogue DHCP servers on access ports must be blocked. Which configuration enables this protection?

  1. Aset system services dhcp-local-server group EMPLOYEE interface ge-0/0/47.0
  2. Bset protocols dhcp-relay group EMPLOYEE interface ge-0/0/47.0
  3. Cset vlans EMPLOYEE forwarding-options dhcp-security Correct answer
  4. Dset vlans EMPLOYEE forwarding-options dhcp-security arp-inspection

Answer and explanation: Enabling dhcp-security on the VLAN turns on DHCP snooping; on ELS switches trunk ports are trusted by default and access ports untrusted, so server replies arriving on access ports are dropped. DHCP relay forwards client requests to a server in another subnet and gives no snooping protection. The arp-inspection keyword adds DAI on top of snooping but is not the statement that enables snooping by itself, and dhcp-local-server makes the switch a DHCP server.

Question 4 of 10, Protocol Independent Routing

R2 has two equal-cost OSPF paths to 10.50.0.0/16, and show route shows both next hops, but show route forwarding-table destination 10.50.0.0/16 lists only one. What must be configured so both next hops are used?

  1. AA policy with then load-balance per-packet applied as an OSPF export policy
  2. BA static route to 10.50.0.0/16 with both next hops at preference 10
  3. Cset protocols ospf multipath under the area containing both interfaces
  4. DA load-balance per-packet policy applied as a forwarding-table export Correct answer

Answer and explanation: By default Junos installs only one of the equal-cost next hops in the forwarding table; a load-balance per-packet policy exported to the forwarding table installs all of them, and modern platforms actually hash per flow. Applying the policy as an OSPF export would change what OSPF advertises. multipath is a BGP option, and a static route would override OSPF rather than balance.

Question 5 of 10, OSPF

R1 must advertise a default route into OSPF only while it has a BGP route for 0.0.0.0/0 from its ISP. Which approach is the MOST appropriate?

  1. AA stub area default-metric on R1 so OSPF advertises a default whenever BGP is up
  2. BA generated default with the ISP's BGP routes as contributors, exported into OSPF Correct answer
  3. CAn OSPF import policy that accepts 0.0.0.0/0 only when BGP is established
  4. DA static default with the retain option, exported into OSPF by an export policy

Answer and explanation: A generated route exists only while contributing routes exist, so limiting contributors to the ISP's BGP routes and exporting the generated default into OSPF makes the advertisement conditional. A retained static route stays regardless of BGP. default-metric applies to stub areas on ABRs, not conditional externals, and OSPF import policies cannot originate a route.

Question 6 of 10, OSPF

A router has a 10-Gbps and a 1-Gbps OSPF interface, and both show a metric of 1. The engineer wants OSPF to calculate different costs automatically. Which change is appropriate?

  1. Aset protocols ospf reference-bandwidth 100g Correct answer
  2. Bset protocols ospf traffic-engineering
  3. Cset protocols ospf area 0.0.0.0 interface all metric auto
  4. Dset interfaces ge-0/0/0 bandwidth 100g

Answer and explanation: Junos derives the OSPF cost from a reference bandwidth of 100 Mbps by default, so every link of 100 Mbps or faster gets cost 1; raising the reference bandwidth to 100g yields 10 and 100 for these links. No metric auto keyword exists. Setting an interface bandwidth to 100g would only make that link look faster, and traffic engineering adds TE extensions without changing the cost calculation.

Question 7 of 10, IS-IS

R4 is a Level 1 router in area 49.0004 with two L1/L2 exit routers, R1 and R2. R4 always uses R1 to reach an external prefix, although R2 has a much shorter path to it. Which configuration best fixes this suboptimal routing?

  1. ASet the overload bit on R1 so R4 prefers R2 for every destination outside the area
  2. BChange R4 to a Level 2-only router so it receives the full Level 2 database
  3. CLeak the specific Level 2 prefix into Level 1 on both R1 and R2 by policy Correct answer
  4. DConfigure ignore-attached-bit on R1 and R2 so they stop advertising the default route

Answer and explanation: Without leaking, R4 only knows the default route toward the nearest attached router; leaking the specific prefix into Level 1 lets R4 compare the real metrics through R1 and R2. Overload on R1 removes it as a transit node for everything. ignore-attached-bit is applied on Level 1 routers to ignore defaults, and making R4 Level 2-only would break its adjacencies with other Level 1 routers in the area.

Question 8 of 10, BGP

R2 runs IBGP with R3 using loopbacks. show bgp summary shows the session to 192.168.0.3 in Connect and Active states alternately. OSPF shows R3's loopback in the routing table. What is the MOST likely configuration error?

  1. Alocal-address is missing, so R2 sources TCP from its outgoing interface Correct answer
  2. Bpeer-as is missing, so R2 cannot determine whether the session is internal or external
  3. Cmultihop is missing, so the IBGP packets are dropped after a single hop by the TTL
  4. Dnext-hop self is missing, so R3 refuses the TCP connection from R2's loopback address

Answer and explanation: Without local-address, R2 uses its outgoing interface address as the TCP source, which R3 does not recognize as a configured neighbor, so the session flips between Connect and Active. IBGP does not need multihop, an internal group takes its AS from routing-options autonomous-system, and next-hop self affects route advertisement rather than session setup.

Question 9 of 10, Tunnels

On R1, the GRE tunnel source and destination addresses live in routing instance INTERNET while gr-0/0/0.0 itself is in the master instance. Which statement tells Junos where to look up the tunnel destination?

  1. Aset interfaces gr-0/0/0 unit 0 family inet routing-instance INTERNET
  2. Bset interfaces gr-0/0/0 unit 0 tunnel routing-instance destination INTERNET Correct answer
  3. Cset routing-options rib-groups GRE import-rib INTERNET.inet.0 on the gr- unit
  4. Dset routing-instances INTERNET interface gr-0/0/0.0 with tunnel source in inet.0

Answer and explanation: The tunnel routing-instance destination statement makes Junos resolve the tunnel endpoint in the named instance while the tunnel interface remains elsewhere. Moving the gr- unit into INTERNET changes the instance of the tunnel itself. There is no routing-instance knob under family inet, and a rib group copies routes but does not tell the tunnel where to resolve its destination.

Question 10 of 10, High Availability

Which statement correctly describes graceful Routing Engine switchover (GRES) when it is enabled without NSR or graceful restart?

  1. ABoth the forwarding and routing tables are flushed, and the system reboots its line cards
  2. BNeighbors keep forwarding because GRES signals graceful restart to them automatically
  3. CRouting protocol adjacencies stay up because the backup RE replicates all protocol state
  4. DForwarding continues on the PFE, but routing protocol adjacencies restart after the switchover Correct answer

Answer and explanation: GRES keeps kernel and interface state synchronized so the PFE keeps forwarding, but routing protocol daemons restart on the new primary RE, so neighbors see sessions drop unless NSR or graceful restart is also in place. Replicating protocol state is what NSR adds. GRES does not signal graceful restart on its own, and preserving line cards and forwarding state is the whole point of GRES.