200-901 Question 164
Select 3You are using RESTCONF to query the configuration of an interface on a network device. The device responds with the following JSON payload:
{ "ietf-interfaces:interface": { "name": "GigabitEthernet1", "enabled": true, "description": "Uplink interface", "ietf-ip:ipv4": { "address": [ { "ip": "192.168.1.1", "netmask": "255.255.255.0" } ] } } }
Based on this response, which two statements are true about the queried interface?
- A
The interface is currently enabled.
- B
The interface has no IPv4 address assigned.
- C
The interface name is GigabitEthernet1.
- D
The interface has an IPv6 address configured.
- E
The netmask for the IPv4 address is 255.255.255.0.
Show answer and explanation
Correct answers: A, C, E
Explanation
The JSON response provides details about the queried interface, such as its name, status, description, and configured IPv4 address and netmask. By interpreting the fields in the RESTCONF response, it is possible to determine that the interface is enabled, named GigabitEthernet1, and has an IPv4 netmask of 255.255.255.0. However, there is no information about an IPv6 address in the response.
- A. Correct.
Correct: The JSON response shows
"enabled": true, indicating the interface is enabled. - B. Incorrect.
Incorrect: The response shows an IPv4 address (
"ip": "192.168.1.1"), so the interface does have an IPv4 address assigned. - C. Correct.
Correct: The
"name": "GigabitEthernet1"key in the JSON payload confirms the interface name is GigabitEthernet1. - D. Incorrect.
Incorrect: The payload does not include an IPv6 address configuration (
ietf-ip:ipv6is missing). - E. Correct.
Correct: The JSON payload includes
"netmask": "255.255.255.0", indicating this is the netmask for the IPv4 address.