Charles,

In the light of recent (and previous) posts on leaf-devel and leaf-user 
about changing a network card's MAC address, here's what I did.

I changed the stock DCD 1.02 network.conf script to support this easily 
and elegantly. It only involves adding a couple of lines, but I think 
this can be very useful for quite a number of LEAF users. I actually use 
this myself whenever I want to update my own "live" firewall. I also 
already used this when my network card failed, and I had to replace it 
with another one - at the start of an extended weekend of course (thank 
you, Murphy!). It works like a charm... It is a perhaps somewhat simpler 
solution than the one proposed today on leaf-user, and can be used for 
*all* the interfaces if necessary (it uses the walk-through structure).

Here's the diff on the stock DCD 1.02 network.conf file:

126a127,128
 > # Uncomment to set the MAC address your ISP registered you with
 > #eth0_MACADDR=aa:bb:cc:dd:ee:ff
506a509,511
 >       # Added by Robert Sprockeels for changing MAC address
 >       eval local MACADDR=\${"$1"_MACADDR:-""}
 >
537a543,545
 >
 >               # Added by Robert Sprockeels for changing MAC address
 >               [ -n "$MACADDR" ] && ip link set $1 address $MACADDR

I will send you the modified network.conf off-list.

Anyone who needs this file can simply mail me...

Hope this helps!

Robert



_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to