LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [OT] Binding A Second NIC to A Device

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [OT] Binding A Second NIC to A Device
From: Jacob Coby <jcoby@xxxxxxxxxxxxxxx>
Date: Fri, 03 Dec 2004 18:56:37 -0500
Peter Mueller wrote:
PS, just saw on another mailing list about a tool called nameif.  Check it
out.

Hmm.  I just looked at the source for ifup, and it calls nameif:

if [ -n "${HWADDR}" ]; then
    FOUNDMACADDR=`LC_ALL= LANG= ip -o link show ${REALDEVICE} | \
        sed 's/.*link\/ether \([[:alnum:]:]*\).*/\1/'`
    if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
        /sbin/nameif "${REALDEVICE}" "${HWADDR}" || {
echo $"Device ${DEVICE} has different MAC address than expected, ignoring."
           exit 1
        }
    fi
fi

Looks like the HWADDR directive will work for me if I reboot the machine. Thanks Peter, and secroft@xxxxxxxxxx!

--
-Jacob

<Prev in Thread] Current Thread [Next in Thread>