SUMMARY: explizit MAC Adresses for each interface on a Sun

From: boenning (boenning@capcom.de)
Date: Thu May 06 1999 - 08:37:22 CDT


Hello,

original question:

> i've a dual homed firewall-1 on a sun system. Cause my backbone is based on
> a virtual LAN System I have to group thess two interfaces into two different
> VLAN's. Therefor I need two different MAC Adresses for the two different
> Interfaces. I know 'bout the ether option from ifconfig, but at which time I
> should set this ? I also heard 'bout a nvram feature which will force the
system
> to use the MAC adress of the interface card for each card individual.
> It's "local-mac-address = TRUE". Will this give me really a MAC adress for
> each interface.
>
> What's your experience, ideas or recommendation.
>

thanx for sharing your KnowHow and ideas. For a couple of people the solution
was to change the NVRAM option loacal-mac-address? to true. This seems to
work especially for quad ethernet interfaces. I've tried it now on an older
sparc4 Solaris 2.6 with one onboard interface and one additional Sun Swift
card. In my case, both cards holds the same old MAC address. So the NVRAM
seems not to work for any environment.
My final solution is an additional editing in /etc/init.d/rootusr. Just after
the loopback rule looking like
/sbin/ifconfig lo0 127.0.0.1 up 2>&1 >/dev/null
i added this lines:
if [ -f /etc/hostname.hme0 ]; then
    /sbin/ifconfig hme0 ether 08:00:20:01:02:03
fi
if [ -f /etc/hostname.hme1 ]; then
    /sbin/ifconfig hme1 ether 08:00:20:01:02:04
fi

This works fine for me.

Thanx to all the people, Dirk.

 ______________________________________________________________
| _|_|_| _|_| _|_|_| _|_|_| _|_|_| _| _| |
| _| _| _| _| _| _| _| _| _|_| _|_| |
| _| _|_|_|_| _|_|_| _| _| _| _| _| _| |
| _| _| _| _| _| _| _| _| _| |
| _|_|_| _| _| _| _|_|_| _|_|_| _| _| |
|______________________________________________________________|
| CAPCom Technologie Beratung | Dirk Boenning |
| Entwicklung und Vertrieb GmbH | Tel.: +49 (0)6151/155-900 |
| Rundeturmstrasse 6 | Fax.: +49 (0)6151/155-909 |
| 64283 Darmstadt / Germany | E-Mail: boenning@capcom.de |
|______________________________________________________________|



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:19 CDT