From: Petre Bandac <g38@rdsbv.ro>
To: pa3gcu@zeelandnet.nl, linux-newbie@vger.kernel.org
Subject: Re: mac address change on an eth alias
Date: Tue, 17 Dec 2002 23:55:32 +0200 [thread overview]
Message-ID: <200212172355.32568.g38@rdsbv.ro> (raw)
In-Reply-To: <02121721144904.00388@unix.pa3gcu>
richard,
thanks for the answer; it is as you said, except I didn't manage to put 2
different macs
ifconfig eth0 hw ether 00:02:44:11:AA:AA
ifconfig eth0:1 hw ether 00:02:44:11:AA:AB
ifconfig eth0 some_IP netmask 255.255.255.0
ifconfig eth0:1 123.123.123.123 netmask 255.255.255.0
and the result is both have the same mac (the last one issued with ifconfig)
so I didn't get what I wanted - the mac of the alias being different than the
interface's; should I presume "no can do" ?
thanks,
petre
On Tuesday 17 December 2002 23:14 Anno Domini, pa3gcu wrote using one of his
keyboards:
> On Tuesday 17 December 2002 20:07, Petre Bandac wrote:
> > root@k:~# ifconfig eth0:1 123.123.123.123 netmask 255.255.255.0 hw ether
> > 00:E0:7D:02:C6:0C
> > SIOCSIFHWADDR: Device or resource busy
> > root@k:~#
> >
> > am I trying to do something impossible or is it only my NIC (Realtek
> > 8139) that can't do it ?
>
> AFAIK yes, at least the way you are doing it, you can however change a MAC
> adress before configuring the card.
>
> ifconfig eth0 00:E0:7D:02:C6:0C
> ifconfig eth0 123.123.123 netmask 255.255.255.0
>
> So what i am saying is, you cant change the MAC address when a IP# is
> assigned.
>
> I tested it on my eth0 interface but without aliasing, but i doubt if that
> is an issue here.
>
> > I want to have 2 ip's on the same interface - but with 2 different macs
> > ... why? because this is my testing server and, among others (dhcp, bind,
> > sendmail/postfix, asterisk, etc) I want to actually see how a mac address
> > can be changed ... if it's possible
>
> Down the IFC's, change the MAC(s), then configure the card and its aliases.
>
> > thank you for you patience,
> >
> > petre
--
23:50:25 up 7:20, 1 user, load average: 0.02, 0.06, 0.08
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2002-12-17 21:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-17 20:07 mac address change on an eth alias Petre Bandac
2002-12-17 21:14 ` pa3gcu
2002-12-17 21:55 ` Petre Bandac [this message]
2002-12-17 22:06 ` pa3gcu
2002-12-17 22:53 ` Ray Olszewski
2002-12-18 17:46 ` Petre Bandac
2002-12-18 20:10 ` pa3gcu
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=200212172355.32568.g38@rdsbv.ro \
--to=g38@rdsbv.ro \
--cc=linux-newbie@vger.kernel.org \
--cc=pa3gcu@zeelandnet.nl \
/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