Skip to content
Ask AI

IP-Conflict Configuration

[Command] show ip-conflict detect config

[Purpose] Display the IP address conflict detection configuration

[View] System view

[Use Cases]

sonic# show ip-conflict detect config
enabled:true
max-records:2000
+-------------+
| INTERFACE |
+=============+
| Ethernet1 |
+-------------+
| Ethernet11 |
+-------------+

[Command] show ip-conflict detect status

[Purpose] Display the IP address conflict detection entries

[View] System view

[Use Cases]

sonic# show ip-conflict detect status
+-------------+-----------+-------------------+-------------------+---------------------+
| INTERFACE | Self-IP | Self-MAC | Conflict-MAC | TIMESTAMP |
+=============+===========+===================+===================+=====================+
| Ethernet1 | 10.1.1.1 | 86:15:7D:DC:3D:86 | 00:00:02:01:01:04 | 2024-09-02 11:06:46 |
| | | | 00:00:02:01:01:02 | 2024-09-02 10:59:54 |
+-------------+-----------+-------------------+-------------------+---------------------+
| Ethernet11 | 20.1.1.1 | 86:15:7D:DC:3D:86 | 60:EB:5A:01:10:CB | 2024-09-02 11:05:10 |
+-------------+-----------+-------------------+-------------------+---------------------+
+-------------+------------+-------------+----------------+-------------+
| INTERFACE | Neigh-IP | Neigh-MAC | Conflict-MAC | TIMESTAMP |
+=============+============+=============+================+=============+

show ip-conflict detect status This command display description table

FieldsDescription
Self-IPDisplays the IP address that is in conflict on the interface
self-MACShows the MAC address corresponding to the conflicting IP address on the device
Conflict-MACDisplays the MAC address associated with the conflicting IP address.
TIMESTAMPIndicates the time when the conflict was detected
Neigh-IPShows the IP address of the neighbor entry that is in conflict
Neighbor-MACDisplays the MAC address recorded in the ARP table for the conflicting IP address before the conflict

[Command] ip-conflict detect enable

[Purpose] Enable IP address conflict detection; it is disabled by default

[View] System configuration view

[Usage Scenario] In scenarios where devices in a network experience IP address conflicts, this can lead to frequent oscillations in ARP and routing table entries, significantly impacting business operations. To mitigate the effects of such conflicts, enabling IP address conflict detection helps log these events as alerts. This allows administrators to quickly identify and address the issues, minimizing disruption to network services and improving overall stability.

[Notes] After enabling the global IP address conflict detection feature, you also need to enable IP address conflict detection at the interface and VLAN view. If there is an IP conflict on an interface, the device will continue to use that IP address, log a warning message to syslog, and record it in the address conflict table, while responding to gratuitous ARP or NA messages. If there is a neighbor table conflict, a warning message will be logged to syslog, and it will be recorded in the address conflict table.

[Use Cases]

sonic(config)# interface ethernet 1
sonic(config-if-1)# ip-conflict detect enable

[Command] ip-conflict detect max-records number

[Purpose] Configure the global conflict record limit

[Parameter]

ParameterDescription
numberdefault 2000.the range value:1..20000

[View] System configuration view

[Notes] The default maximum number of IP addresses is 2000, with each IP corresponding to 10 MAC addresses. If the limit is exceeded, the oldest entries will be overwritten.

[Use Cases]

sonic(config)# ip-conflict detect max-records 20

[Command] ip-conflict detect reset

[Purpose] Forcefully clear all IP conflict detection records

[View] System configuration view

[Notes] When deleting a Layer 3 interface or IP address, the associated conflict record entries will also be deleted

[Use Cases]

sonic(config)# ip-conflict detect reset