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]

 



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.




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