I'm trying to work out how to configure a manually assigned mac address onto an interface without much luck.
Does anyone know how ?
Richard Worwood wrote:
I'm trying to work out how to configure a manually assigned mac address onto an interface without much luck.
Does anyone know how ?
Hi,
As root, do
ifconfig eth0 down ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx ifconfig eth0 up
assuming that your NIC device is eth0, and substituting the xx:xx.. with the desired MAC address.
If that does thhe job for you, you might want to edit
/etc/sysconfig/network-scripts/ifcfg-eth0
and set it there (I think the parameter was called HWADDR, but I am away from a fedora box)
Greets,
//Andro
as I suspected the ifconfig hw ether statement works just fine, unfortunately however when I specify a HWADDR within the config file it just errors telling me that the mac specified doesn't match the one on the card.
Does anyone know how to resolve this one ?
Thanks In Advance
Richard
On Thu, 2004-10-28 at 11:52 +0300, Andrey Andreev wrote:
Richard Worwood wrote:
I'm trying to work out how to configure a manually assigned mac address onto an interface without much luck.
Does anyone know how ?
Hi,
As root, do
ifconfig eth0 down ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx ifconfig eth0 up
assuming that your NIC device is eth0, and substituting the xx:xx.. with the desired MAC address.
If that does thhe job for you, you might want to edit
/etc/sysconfig/network-scripts/ifcfg-eth0
and set it there (I think the parameter was called HWADDR, but I am away from a fedora box)
Greets,
//Andro
-- Andrey Andreev University of Helsinki Dept. of Computer Science
Richard Worwood wrote:
as I suspected the ifconfig hw ether statement works just fine, unfortunately however when I specify a HWADDR within the config file it just errors telling me that the mac specified doesn't match the one on the card.
As Chris Johnson wrote:
<quote> In any case inspection of the ifup script and testing indicate that it is possible to do within the interface configurations. Include the following directive in your /etc/sysconfig/network-scripts/ifcfg-ethX configuration file, substituting the desired mac address: MACADDR=00:11:22:33:44:55 </quote>
Good luck,
Andro
PS: Please don't top post. It makes answering hard.
On Thu, 28 Oct 2004, Richard Worwood wrote:
I'm trying to work out how to configure a manually assigned mac address onto an interface without much luck.
Does anyone know how ?
There are tools to do this, for which you could google, but, other than using this as an attempt to spoof your IP address, why would you want/need to do this?
Mike Burger wrote:
On Thu, 28 Oct 2004, Richard Worwood wrote:
I'm trying to work out how to configure a manually assigned mac address onto an interface without much luck.
Does anyone know how ?
There are tools to do this, for which you could google, but, other than using this as an attempt to spoof your IP address, why would you want/need to do this?
I know this sort of thing can be useful for some failover mechanisms with active and hot spare servers, but you may be better off using clustering tools instead of home grown.
In any case inspection of the ifup script and testing indicate that it is possible to do within the interface configurations. Include the following directive in your /etc/sysconfig/network-scripts/ifcfg-ethX configuration file, substituting the desired mac address: MACADDR=00:11:22:33:44:55
Chris