Kastus Shchuka wrote:
I'm trying to assign a virtual IP to the loopback interface 'lo':
/etc/sysconfig/network/ifcfg-lo:
# Loopback (lo) configuration IPADDR_1=127.0.0.1/8 NETWORK=127.0.0.0 BROADCAST=127.255.255.255 STARTMODE=onboot USERCONTROL=no IPADDR_2=192.168.2.231/32
Configuration looks good to me. I might try adding NETWORK_2=255.255.255.255
I'm sure you meant NETMASK, but according to ifcfg.template, that is ignored when I've specified the address with a subnet-mask.
I should add that the first ip-address 127.0.0.0/8 is added, but the second 192.168.2.231/32 isn't.
How do you check for that? ifconfig might not show your secondary address. Try "ip addr show dev lo"
I just checked it with 'ifconfig', thinking that I should be seeing a second interface 'lo:n' ? # ip addr show dev lo 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet 192.168.2.231/32 scope global lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever Well, there it is! Excellent. Thanks. /Per Jessen, Zürich