nerdexam
Cisco

300-420 · Question #176

An engineer uses Postman and YANG to configure a router with: - OSPF process ID 200 - network 172.16.10.128/26 enabled for Area 0 Which get-config reply verifies that the model set was designed…

The correct answer is A. <rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-011157936aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>0.0.0.63</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>. This question tests the understanding of OSPF network command configuration within a YANG/NETCONF XML structure, specifically focusing on the correct wildcard mask for a given prefix length.

Automation

Question

An engineer uses Postman and YANG to configure a router with:

  • OSPF process ID 200
  • network 172.16.10.128/26 enabled for Area 0

Which get-config reply verifies that the model set was designed correctly? A. B. C. D.

Exhibits

300-420 question #176 exhibit 1
300-420 question #176 exhibit 2
300-420 question #176 exhibit 3
300-420 question #176 exhibit 4

Options

  • A<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-011157936aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>0.0.0.63</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>
  • B<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-012435678aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>255.255.255.192</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>
  • C<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-021345678aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>0.0.0.192</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>
  • D<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-012354678aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>0.0.0.63</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>

How the community answered

(21 responses)
  • A
    81% (17)
  • B
    10% (2)
  • C
    5% (1)
  • D
    5% (1)

Why each option

This question tests the understanding of OSPF network command configuration within a YANG/NETCONF XML structure, specifically focusing on the correct wildcard mask for a given prefix length.

A<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-011157936aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>0.0.0.63</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>Correct

For OSPF network configuration in Cisco IOS devices, the `network` command uses a wildcard mask, which is the inverse of the subnet mask. A /26 prefix corresponds to a subnet mask of 255.255.255.192, and its inverse, the wildcard mask, is 0.0.0.63. Option A correctly represents this wildcard mask in the `get-config` reply.

B<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-012435678aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>255.255.255.192</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>

Option B uses a standard subnet mask (255.255.255.192) instead of the required OSPF wildcard mask, which is incorrect for this configuration context.

C<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-021345678aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>0.0.0.192</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>

Option C presents an incorrect wildcard mask (0.0.0.192) for a /26 network; the correct wildcard mask is 0.0.0.63.

D<rpc-reply message-id="urn:uuid:1b3d05cd-8118-3e6a-6c05-012354678aaf" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <native xmlns="http://cisco.com/ns/yang/ned/ios"> <router> <ospf> <id>200</id> <network> <ip>172.16.10.128</ip> <mask>0.0.0.63</mask> <area>0</area> </network> </ospf> </router> </native> </data> </rpc-reply>

Option D provides the same correct wildcard mask as option A, which might indicate a duplication or minor variation in a real exam, but its content is functionally correct based on the requirements.

Concept tested: OSPF network wildcard mask in YANG/NETCONF

Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-mt/iro-15-mt-cr-book/iro-ospf-cfg-ospf.html

Topics

#YANG#NETCONF/RESTCONF#OSPF Configuration#Network Automation

Community Discussion

No community discussion yet for this question.

Full 300-420 Practice