ICND2: Interconnecting Cisco Networking Devices Part 2 (legacy) — Question 116
Which configuration can you apply to enable encapsulation on a subinterface?
Answer options
- A. interface FastEthernet 0/0 encapsulation dot1Q 30 ip address 10.1.1.30 255.255.255.0
- B. interface FastEthernet 0/0.30 ip address 10.1.1.30 255.255.255.0
- C. interface FastEthernet 0/0.30 description subinterface vlan 30
- D. interface FastEthernet 0/0.30 encapsulation dot1Q 30 ip address 10.1.1.30 255.255.255.0
Correct answer: D
Explanation
The correct answer is D because it correctly configures a subinterface with both encapsulation and an IP address. Option A is incorrect as it applies encapsulation to the main interface instead of the subinterface. Option B lacks the encapsulation command, and Option C only provides a description without any functional configuration.