On 07.02.2015 07:05, Bruce Dubbs wrote:
Bruce Dubbs wrote:
Bruce Dubbs wrote:
Tim Tassonis wrote:
Hi all


It was too easy.  Try the included script.  It goes in /lib/lsb/

Use:

cat > /etc/sysconfig/ifconfig.eth0:0  << EOF
ONBOOT=yes
IFACE=eth0
LABEL=eth0:0
SERVICE=ipv4-static
IP=192.168.219.221
PREFIX=24
BROADCAST=192.168.219.255
EOF

Note1: No GATEWAY, but you can set up a static route if you desire.

Note2: Quotes are optional around the values.  The only time they would
be needed is if there is a space needed like in:

DHCP_START="-b -q"

I need to update BLFS to be consistent.

   -- Bruce


Great, thanks a lot, works like a charm:

ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:00:24:cf:ed:18 brd ff:ff:ff:ff:ff:ff
    inet 192.168.219.21/24 scope global eth0
       valid_lft forever preferred_lft forever
inet 192.168.219.221/24 brd 192.168.219.255 scope global secondary eth0:2
       valid_lft forever preferred_lft forever

Bye
Tim








--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to