CentOS Failover Cluster – SIOCADDRT: No such process (when adding a loopback)

centoscentos5failovernetworking

I'm trying to configure two web servers for a load balancing server. The load balancing aspect works fine (it sees both server, kills 'em if it needs to, and seems to direct traffic fine). The only issue is with the servers looping:

/etc/sysconfig/network-scripts/ifcfg-lo:0

DEVICE=lo:0
IPADDR=<Virtual IP>
NETMASK=255.255.255.255
ONBOOT=yes
NAME=loopback

Everytime I try a "service network restart" I get a SIOCADDRT: No such process when loading the loopback interface.

Anyone have an idea what's causing this?

Best Answer

Everytime I try a "service network restart" I get a SIOCADDRT: No such process when loading the loopback interface.

This typically comes from the route command, and means that you're trying to set up a route via an invalid gateway. For example, if I have:

# ip addr list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether b8:ac:6f:a6:bf:a6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.10/24 brd 192.168.1.255 scope global external

And then I try to add a route to 192.168.3.0 via 192.168.1.1, but accidentally make a typo and enter the wrong gateway address:

# route add 192.168.3.0/24 gw 192.168.2.1

Then I get this:

SIOCADDRT: No such process

If instead of doing a service network restart, what happens if you just use ifup lo:0? Do you still get the same error?

Related Topic