Hello,

I have a problem with localhost and the routing is not working.

I manually have to switch to CLI during boot and enter below commands after each boot of the PC, else cron, mail-daemon, and others relying on localhost-communication is not working:

ifconfig lo 127.0.0.1 up
route add -host 127.0.0.1 lo

then it works, but I cannot find a location to make this change permanent, working as it did before.

Maybe you can shed some light on this.

Here are the config files:

ls -d /etc/sysconfig/network/ifcfg-*
/etc/sysconfig/network/ifcfg-eth-id-[MY_MAC]
/etc/sysconfig/network/ifcfg-lo

[HOSTNAME]:~/bin/tst> cat /etc/sysconfig/network/ifcfg-eth-id-[MY_MAC]
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='[DRIVER_NAME]'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE=[UNIQUE_ID]
USERCONTROL='no'
_nm_name='bus-pci-0000:00:12.0'

with my eth0 all is fine.

[HOSTNAME]:~/bin/tst> cat /etc/sysconfig/network/ifcfg-lo
# Loopback (lo) configuration
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
BROADCAST=127.255.255.255
STARTMODE=onboot
USERCONTROL=no

I also tested 'ifcfg-lo' to use also (like eth0) STARTMODE='auto' instead of STARTMODE=onboot and the quotation marks in 'lo'-cfg seem to be missing, ...
It is also not working with STARTMODE='auto' and 'onboot'.

I am quite sure I haven't edited the file, but a MAC-changer script probably

The dmesg-entry is: "ifup-route: interface 'lo' is not up"

Can anybody help with this, please?