Request For Info - Hotplug Network Plan

Alexander E. Patrakov see at the.sig
Thu Jul 1 20:02:16 PDT 2004


Nathan Coulson wrote:
> in the network script, can you default HOTPLUG to no?  [compatible with
> old sets of configuration files].

That's the only sane default :)

> 
> BTW, try this out
> cat > /etc/sysconfig/network-devices/ifconfig.eth0:0 << "EOF"ONBOOT=yes
> IP=192.168.1.100
> NETMASK=255.255.255.0
> BROADCAST=192.168.1.255
> GATEWAY=192.168.1.2
> SERVICE=static
> EOF
> 
> Aliases work just fine *shrug*.

This won't work with hotplug. Suppose that I want to give the 
hot-plugged eth1 card the following addresses: 192.168.2.1 
192.168.2.254. You seem to suggest to write the following:

cat > /etc/sysconfig/network-devices/ifconfig.eth1 << "EOF"
ONBOOT=no
HOTPLUG=yes
IP=192.168.2.1
NETMASK=255.255.255.0
BROADCAST=192.168.2.255
SERVICE=static
EOF

cat > /etc/sysconfig/network-devices/ifconfig.eth1:0 << "EOF"
ONBOOT=no
HOTPLUG=yes
IP=192.168.2.254
NETMASK=255.255.255.0
BROADCAST=192.168.2.255
SERVICE=static
EOF

But hotplug will then ifup only eth1, not eth1:0, and that's the 
problem. Hotplug just calls ifup with the name of the newly-detected 
interface.

-- 
Alexander E. Patrakov
To get my address: echo '0!42!+/6 at 5-3.535.25' | tr \!-: a-z | tr n .



More information about the lfs-dev mailing list