Courseiva
mediumMultiple Choice

CCNP Practice Question: Review the following configuration: vrf…

Review the following configuration:

vrf definition CUSTOMER_A rd 65000:100 route-target export 65000:100 route-target import 65000:100 !

interface GigabitEthernet0/4

vrf forwarding CUSTOMER_A

ip address 192.168.100.1 255.255.255.0

!

router bgp 65000

address-family ipv4 vrf CUSTOMER_A redistribute connected

What is the purpose of the 'redistribute connected' command under the VRF address-family?

⚠ Common exam trap

Cisco often tests the misconception that 'redistribute connected' in a VRF context applies to all connected interfaces globally, when in fact it only applies to interfaces assigned to that specific VRF.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

It advertises the directly connected network of GigabitEthernet0/4 into BGP for VRF CUSTOMER_A.

The 'redistribute connected' command under the BGP address-family for VRF CUSTOMER_A injects the directly connected network on GigabitEthernet0/4 (192.168.100.0/24) into the BGP table for that VRF. This allows BGP to advertise that subnet to BGP peers within the VRF, enabling reachability to the VRF's local interface network.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    It advertises the directly connected network of GigabitEthernet0/4 into BGP for VRF CUSTOMER_A.

    Why this is correct

    This is correct because the command, typically the BGP network statement or redistribution directive under the address-family ipv4 vrf CUSTOMER_A, injects the subnet assigned to GigabitEthernet0/4 into the BGP table for that VRF. The connected route is advertised to BGP peers in the VRF as reachable, enabling the VRF's customers to reach that directly attached network. This does not affect any other VRF or the global routing table.

  • ✗

    It redistributes all BGP routes into the VRF's routing table.

    Why it's wrong here

    This is incorrect because the operation is in the opposite direction. The command redistributes connected routes (the GigabitEthernet0/4 subnet) into BGP, not all BGP routes into the VRF's routing table. BGP routes are learned through peering and then installed into the VRF RIB as part of normal BGP path selection; there is no redistribute command that copies the entire BGP table into the VRF's routing table in the context of this configuration.

  • ✗

    It enables BGP to exchange routes with other VRFs on the same router.

    Why it's wrong here

    This is incorrect because a single BGP process can carry multiple VRF address-families, but routes remain isolated within their respective VRF instances. BGP does not inherently exchange routes between VRFs on the same router. Any inter-VRF route transfer would require explicit MP-BGP VPNv4 import/export route targets or VRF-lite redistribution, neither of which is invoked by the command in question.

  • ✗

    It is used to leak routes between VRF CUSTOMER_A and the global routing table.

    Why it's wrong here

    This is incorrect because the command does not perform VRF-to-global route leaking. Leaking routes between VRF CUSTOMER_A and the global routing table would require import/export route targets, VRF-lite configuration, or specific redistribution statements between the VRF and global protocols. The command merely advertises a directly connected network into BGP within the VRF, keeping that route confined to the VRF's address-family.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

This 350-401 question is part of Courseiva's 1,923-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.