Notifications

3 views

Overview


"IP Address" field is not getting set with correct IP for CI with multiple IP addresses.

Logic used by Discovery to "IP Address" value on CI and Network Adapter Card


The fact that Docker is installed on the device is not meaningful here.

There are two scenarios.

=> When there are multiple IP addresses with each one configured for a different Network Adapter (thus different MAC address).

Discovery of the source target when the IP address is already set in the Configuration Item (CI) will not update the IP address if it is found in the Identification network payload that the original IP address is still enabled on the source target even though the original IP address was not the most source recent source target of the scan. In order to update it, the other IP address must be disabled on the source target or the ip_address field of the CI can be cleared and then re-scan using the preferred target.

=> When there multiple IP addresses configured on the same Network Adapter Card.

Discovery allows only one IP address per MAC in the Network Adapter record. Discovery does not allow many (IP addresses) to one (NIC) records to be created and then related to a CI. When this happens the eventual result will be the first IP address listed will be the one finalized for the CI ip_address field.

Both scenarios are out of the box (OOTB) behavior.

Example


 

This is an example for the second scenario mentioned.

Note the same MAC address but multiple IP addresses returned in the payload.


=>"name":"docker0","mac_address":"00:50:52:f9:8a:a3","ip_addresses":[{"ip_address":"172.17.0.1" 
=>"name":"eth0","mac_address":"00:50:52:f9:8a:a3","ip_addresses":[{"ip_address":"10.249.138.163" 
=> "00:50:52:f9:8a:a3" = "00:50:52:f9:8a:a3" 

"Linux - Identity" Network Adapter Payload snippett:


{"related_data":{"adapters":[{"name":"docker0","mac_address":"00:50:52:f9:8a:a3","ip_addresses":[{"ip_address":"172.17.0.1","ip_version":4,"netmask":"255.255.0.0"},{"ip_address":"fe80::42:fdff:fecd:c6a3","ip_version":6,"netmask":"64"}],"ip_address":"172.17.0.1","netmask":"255.255.0.0","routes":{"ifRoutes":[{"dest_ip_network":"172.17.0.0/16","router_interface":"docker0"}],"gwRoutes":[]}},{"name":"eth0","mac_address":"00:50:52:f9:8a:a3","ip_addresses":[{"ip_address":"10.249.138.163","ip_version":4,"netmask":"255.255.255.0"},{"ip_address":"fe80::250:52ff:fef9:8aa3","ip_version":6,"netmask":"64"}],"ip_address":"10.249.138.163","netmask":"255.255.255.0","ip_default_gateway":"10.249.138.1","routes":{"ifRoutes":[{"dest_ip_network":"10.249.138.0/24","router_interface":"eth0"},{"dest_ip_network":"169.254.0.0/16","router_interface":"eth0"}],"gwRoutes":[{"dest_ip_network":"0.0.0.0/0","next_hop_ip_address":"10.249.138.1","route_interface":"eth0"}]}}],"default_gateway":"10.249.138.1"}} 
</output>

 

Article Information

Last Updated:2019-03-15 06:27:20
Published:2019-03-15