Home / Error while configuring IP in ifcfg-eth0 on Linux Server “RTNETLINK answers: network is unreachable”

Error while configuring IP in ifcfg-eth0 on Linux Server “RTNETLINK answers: network is unreachable”

  • This error may arise if the IP address and Gateway subnets are different. Make sure both IP address and Gateway have the same subnets. For reference, the ifcfg-eth0 configuration file is given below.
TYPE="Ethernet" PROXY_METHOD="none" BROWSER_ONLY="no" BOOTPROTO="none" DEFROUTE="yes" IPV4_FAILURE_FATAL="no" IPV6INIT="yes" IPV6_AUTOCONF="yes" IPV6_DEFROUTE="yes" IPV6_FAILURE_FATAL="no" IPV6_ADDR_GEN_MODE="stable-privacy" NAME="eth0" UUID="3d9bd3c7-310c-4e46-a57c-5b3a99819f78" DEVICE="eth0" ONBOOT="yes" IPADDR="37.48.96.245" PREFIX="27" GATEWAY="37.48.96.254" DNS1="8.8.8.8" IPV6_PRIVACY="no"
  • Remove route entry from etc/sysconfig/network-scripts/route file.

Leave a Reply