Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "James A. Crippen" <james@UnLambda.COM>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] multiple MAC addresses from one network card
Date: Fri, 06 Apr 2001 22:10:00 +0000	[thread overview]
Message-ID: <marc-lartc-98659507909816@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98659466008892@msgid-missing>

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@unlambda.com> ,-./-.  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@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

  reply	other threads:[~2001-04-06 22:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-06 22:03 [LARTC] multiple MAC addresses from one network card Alexey Marinichev
2001-04-06 22:10 ` James A. Crippen [this message]
2001-04-06 22:16 ` Terry L. Ridder
2001-04-06 22:26 ` Alexey Marinichev
2001-04-06 22:35 ` James A. Crippen
2001-04-06 22:43 ` James A. Crippen
2001-04-06 22:45 ` Alexey Marinichev
2001-04-06 22:53 ` Terry L. Ridder
2001-04-06 22:59 ` James A. Crippen
2001-04-06 23:12 ` Breen Mullins
2001-04-06 23:48 ` Guy Van Den Bergh
2001-04-06 23:50 ` James A. Crippen
2001-04-07  0:24 ` Ingram Leedy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98659507909816@msgid-missing \
    --to=james@unlambda.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox