Koozali.org: home of the SME Server

[SME5.6] faking MAC is a little bit different than before

André

[SME5.6] faking MAC is a little bit different than before
« on: November 01, 2003, 11:37:52 PM »
Only a little bit...at least that's my experience for the MAC address of my LAN-card.

Was it for 5.1.2 and 5.5 the proven method
make a custom template  in ifcfg-eth1
and change the mac address betweenNETMASK & NETWORK
like:

"BOOTPROTO=nonen" .
"IPADDR=$LocalIPn" .
"NETMASK=$LocalNetmaskn" .
"MACADDR=00:C8:F8:20:89:V7" .
"NETWORK=$networkn" .
"BROADCAST=$broadcast";
..
I got messages of being NOK, the syntax was proven ok for the other versions.. but that seemed to be nog guarantee....

The solution? (it seems to work):
put the MAC address neraly on top (see example) and then expand as normal
I've tested it by changing the ip address by reconfiguring using the service manager. Other options failed as the change was lost... ;(
But this one remained, also when i try to do dynamci IP on the in-card (eth1).
In the stand-alone test I get the message:
"Determining IP info for eth1.....dhcpcd: MAC address =00:12:c3:c8:f8:89"
and because it stands still free: failed... but you see it is sending the faked address and that's what it is about.
(asap when ready with configuring i will go on -line with it)
 
Experiences from you are welcome!
 

ifcfg-eth1 (in the custum sub dir)
(it is from SME5.5 as the 5.6 is still  stand-alone for testing, the header of both is however the same, do the mod look alike)

Code: [Select]
#------------------------------------------------------------

# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org.
#
# copyright (C) 1999-2001 e-smith, inc.
#------------------------------------------------------------
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MACADDR=00:12:C3:C8:F8:89
{
    #--------------------------------------------------
    # This template will only be instantiated if dedicated
    # connection in server-and-gateway mode.
    #--------------------------------------------------

blah...blah.......
        "BROADCAST=$broadcast";
    }
}