Koozali.org: home of the SME Server

Faking a MAC adress

Jan

Faking a MAC adress
« on: January 20, 2002, 03:52:13 PM »
How can I fake the MAC adress on the external interface ? My ISP needs this adress for access control. I want to try the e-smith system but do not want to swap my ethernet cards. On my old router (Freesco) I can use

ifconfig $INTNAME0 hw ether 00:80:AD:83:8A:55
ifconfig $INTNAME0 up

but in e-smith it seems one has to make changes in config files but where ??.

Thanks

Jan

Gary Parker

Re: Faking a MAC adress
« Reply #1 on: January 21, 2002, 01:38:41 PM »
This is so weird, I was just about to ask exactly the same question....

A friend of mine has taken my advice and moved from SmoothWall to E-Smith and used to have:

ifconfig -i eth2 hw ether 00e09872e436

in /etc/rc.d/rc.netaddress.up just before it sent out it's DHCP request but I'm damned if I can figure out where to put it on the E-Smith...

Any help on this would be greatly appreciated...

Gary Parker

Re: Faking a MAC adress
« Reply #2 on: January 21, 2002, 02:03:51 PM »
Ummm...I been doing some digging and I think it needs to go somewhere in /sbin/ifup before it sets up the interface, still not sure exactly where, though...

G.

ekke

Re: Faking a MAC adress
« Reply #3 on: January 22, 2002, 05:12:09 AM »
in /etc/sysconfig/network-scripts/ifcfg-eth?
MACADDR=blabla
Don't forget to set in your templates.

Gary Parker

Re: Faking a MAC adress
« Reply #4 on: January 22, 2002, 07:37:52 PM »
Cheers chap, yer a star :)

/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-/template-begin

seems to be the right place, pop it in the line before the first curly bracket and Bob's your mother's brother, as they say...

Gary

Jan

Re: Faking a MAC adress
« Reply #5 on: January 23, 2002, 10:55:24 PM »
Thanks ! Gonna try this soon. Now my baby boy born monday needs my attention !

see ya soon in this forum

Gary Parker

Re: Faking a MAC adress
« Reply #6 on: January 24, 2002, 01:45:55 PM »
Congratulations to you and your partner, Jan! I hope your child is healthy and well...

And good luck with sorting out the MAC address...

Gary