Determining if ip address is already in use for device ethX

While working with the network subsystem of Centos operating systems, an error may occur

Determining if ip address is already in use for device ethX

For example, when you restart the network subsystem of the Linux RHEL / Centos operating system, the error will look like this:

# /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Determining if ip address 192.168.2.15 is already in use for device eth0… [ OK ]

There will be no errors in the output of the ifconfig command.

To correct the message that appears, add a description of the ARPCHECK = no parameter to the settings file for each network interface of the network subsystem of the Linux RHEL / Centos operating system.

After adding the corresponding parameter, the settings file for one of the network interfaces will look like this:

# nano /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=”eth0″
BOOTPROTO=none
NM_CONTROLLED=”yes”
ONBOOT=yes
TYPE=”Ethernet”
UUID=”a4568461-be96-4b7a-9rr0-07a5bqwcd3259″
HWADDR=00:1C:39:1C:E4:44
IPADDR=192.168.2.15
PREFIX=24
NETMASK=255.255.255.0
GATEWAY=192.168.2.254
ARPCHECK=no
DNS1=8.8.8.8
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=”System eth0″

After adding the required parameter, the error will no longer be displayed on the terminal console screen.

Sidebar