RE: [LARTC] multiple MAC addresses from one network card

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I havent tried or figured the way to do this with iproute2, but in the non
iproute2 way you can change the mac address by:

> ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx

-- Ingram Leedy


-----Original Message-----
From: lartc-admin@xxxxxxxxxxxxxxx [mailto:lartc-admin@xxxxxxxxxxxxxxx]On
Behalf Of James A. Crippen
Sent: Friday, April 06, 2001 6:10 PM
To: Alexey Marinichev
Cc: lartc@xxxxxxxxxxxxxxx
Subject: Re: [LARTC] multiple MAC addresses from one network card


On Fri, 6 Apr 2001, Alexey Marinichev wrote:

> Hello,
>
> It is possible to get several interfaces assigned to one card, the
> simplest way is to use aliases, like:
> 	ifconfig eth0:0 <address>
>
> Is it possible to assign a different MAC address to an aliased
> interface?  ifconfig eth0:0 hw ether <MAC> doesn't seem to work...

DON'T USE IFCONFIG AND fooN:M ALIASES IF YOU CAN HELP IT.  Use the
iproute2 utility 'ip' and assign multiple addresses with

# ip address add <address> dev <device>

And you can add as many addresses as the kernel will let you (what's the
limit?).  Make sure aliasing support is on in the kernel.

Honestly I'd avoid using route and ifconfig at all.  Replace them
everywhere you can with 'ip'.

This doesn't answer your question, but I considered it a Public Service
Message. :)

'james

--
James A. Crippen <james@xxxxxxxxxxxx> ,-./-.  Anchorage, Alaska,
Lambda Unlimited: Recursion 'R' Us   |  |/  | USA, 61.2069 N, 149.766 W,
Y = \f.(\x.f(xx)) (\x.f(xx))         |  |\  | Earth, Sol System,
Y(F) = F(Y(F))                        \_,-_/  Milky Way.


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux