nerdexam
CiscoCisco

300-435 · Question #144

300-435 Question #144: Real Exam Question with Answer & Explanation

This question tests knowledge of Ansible network automation using the cisco.ios.ios_l3_interfaces module to configure primary and secondary IPv4 addresses on router interfaces without disrupting existing configuration.

Device-Level Network Automation

Question

Refer to the exhibit. Drag and Drop Question. An engineer must automate the configuration of Layer 3 interfaces in an Ansible playbook. The engineer must configure interface GigabitEthernet0/3 with IP address 192.168.2.100/24 and define a secondary IP address on GigabitEthernet0/4 with IP address 192.168.4.100/24. The current configuration must not be overwritten. Drag and drop the code snippets from the bottom onto the boxes in the code to complete the configuration. Not all options are used.

Explanation

This question tests knowledge of Ansible network automation using the cisco.ios.ios_l3_interfaces module to configure primary and secondary IPv4 addresses on router interfaces without disrupting existing configuration.

Approach. The correct approach uses the cisco.ios.ios_l3_interfaces module with state: merged, which adds or updates configuration without overwriting what already exists (unlike state: replaced or state: overridden). GigabitEthernet0/3 is configured with a standard primary IPv4 address (192.168.2.100/24) under the ipv4: list. GigabitEthernet0/4 requires the secondary: true flag nested under its ipv4 address entry (192.168.4.100/24) to designate it as a secondary IP. The config block lists both interfaces as separate list items under the config: key, each with a name: field matching the full interface name.

Concept tested. Ansible network automation with cisco.ios.ios_l3_interfaces - specifically the distinction between state values (merged vs replaced/overridden), correct YAML structure for primary vs secondary IPv4 addresses, and idempotent interface configuration in IOS playbooks.

Reference. Cisco DevNet / CCNP Enterprise (ENAUTO 300-435) - Ansible ios_l3_interfaces module documentation; Ansible Galaxy cisco.ios collection

Topics

#Ansible#Network automation#Cisco IOS-XE#Interface configuration

Community Discussion

No community discussion yet for this question.

Full 300-435 PracticeBrowse All 300-435 Questions