26 Aug
2006
26 Aug
'06
14:04
Per Jessen wrote:
Per Jessen 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
Can anyone spot why this isn't working?
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.
You can't set multiple IP addresses to a single interface. You need to create an alias interface, lo:1, for instance. However, you shouldn't be adding ip addresses to the loopback, unless absolutely necessary. Add it to eth0 instead. Just `ifconfig eth0:1 192.168.2.231`.