HPE7-A08 practice question 6 of 35

Which CLI command assigns an interface to a VRF on an Aruba CX switch?

Full set: 342 questions
Answer options
A: interface 1/1/1 vrf attach vrf1 Correct answer
B: set vrf 1/1/1 vrf1
C: interface vrf assign 1/1/1 vrf1
D: switchport vrf add vrf1
Correct Answer:
A. interface 1/1/1 vrf attach vrf1
Explanation

On an Aruba CX switch, assigning a Layer 3 interface to a Virtual Routing and Forwarding (VRF) instance is a two-step process in the CLI. First, you enter the configuration context of the specific interface (e.g., interface 1/1/1). Second, within that context, you use the vrf attach command to associate the interface with the desired VRF. Option A, interface 1/1/1 vrf attach vrf1, accurately represents this required command sequence and syntax.

Why Incorrect

B. set vrf 1/1/1 vrf1: This is not a valid ArubaOS-CX command syntax for interface configuration or VRF assignment.
C. interface vrf assign 1/1/1 vrf1: The keywords vrf assign are incorrect. The correct command uses vrf attach within the interface context.
D. switchport vrf add vrf1: The switchport command is used for Layer 2 configurations. VRF assignment is a Layer 3 function, making this command contextually incorrect.

References

1. ArubaOS-CX 10.12 Virtual Routing and Forwarding (VRF) Guide

Page 12

Section: "Associating a layer 3 interface with a VRF". The guide explicitly shows the command vrf attach being used within the interface context (switch(config-if)#).

2. ArubaOS-CX 10.12 Command-Line Interface Guide

Page 7818. The entry for the vrf attach command specifies its function as "Attaches the current interface to a VRF" and confirms its usage within the config-if context.

Scroll to Top