Internet.com
Get your
ISP-News
courtesy of
internetnews.com




Search ISP-Lists
Search:
ISP Channel
CLEC-Planet
ISP Glossary
ISP News
ISP-Planet
ISP-Lists
E-mail Newsletters
Opt-in Announcements
Discussion Forums
internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

The ISP-Lists.com Email Discussion List Community

<- Previous Message | Next Message ->
Thread Index
RE: unique mac address
Hi Geroge,

Check the following portion that I found on sunsolve.This might help you

3.5: All my ethernet interfaces have the same ether address. How do I modify
the interfaces to have unique ethernet Mac address? 


intinfod 17018 What are the steps in configuring more than one Ethernet
interfaces connected to same physical subnet on Solaris 2.6 ? 
intinfod 16733 Why do all my ethernet interfaces have the same ether MAC
address? 
intinfod 15572 Can I configure two Ethernet interfaces on the subnet? 
I Have multiple interfaces, but they show up as the same ethernet MAC
address as my built-in interface. Setting
NVRAM parameter local-mac-address?=true does not seem to effect the address?


** This note only applies to ethernet interfaces, for token ring, atm, fddi
and other networks should refer to the documentation for these cards.
   For example fddi has a "nf_macid nf<inst> " utility to display the
on-board ethernet number.

If you are configuring a multi-homed host with more than one interface on
the same physical subnet (connections to same hub), choosing and
configuring a unique ether address that is different from the primary
host-based assigned ethernet Mac address may be necessary. 

Usually it does not present a problem. Only systems on the same subnet (
connected to same switch/hub) are going to use the hardware address.
 IEEE leaves it up to the vendor to use the station address approach vs. per
port approach. Sun uses the concept of a host-based MAC identity prior to
the newer nic cards. 

Except for the QFE (quadfastethernet), The drivers in Sun systems get the
MAC address from the PROM on the system.` The MAC address does not come from
the
ethernet chip or interface hardware. There is just one ethernet MAC address
for all interfaces on a system. Sun reserved ethernet range starts with
8:0:20:xx:xx:xx 

The QFE is presently the only Sun ethernet card that has unique Ethernet
Numbers, and future cards are expected to use this feature.

The le ethernet interfaces along with the SunSwift and SunFastEthernet 1.0
and 2.0 Adapters use the host assigned address of the CPU
OpenBoot PROM. 

The Sun Quad FastEthernet SBUS Adapter has four MAC (machine access code)
addresses encoded in the Fcode Prom. The local-mac-address
property in eeprom is used to enable this feature. 

Use the ifconfig "ether" option if this is needed on a NIC that do not
implement local-mac-address. 

      ok local-mac-address? 
      Defaults to false. 

      This can be set for true = network drivers use their own MAC address,
not system's.
      Fxcept for the QFE (QuadFastEthernet) or newer NIC's. 

      
Section 3.2.3(4) of the IEEE 802.3 spec defines a reserved bit in the
Ethernet Address that can be used to administer a universally assigned
ethernet addresses. A Locally administered address (LAA) can be implemented
to ensure a unique HW address. 

Setting the LAA bit can be done by using a 0A hex (second bit set 1010) as
the first digit instead of 08 (1000). 8:00:20:x:x:x is Sun's universal
assignment. (1010) a:00:20:x:x:x would be local administer address. The
first bit is "individual/group" bit and used by multicasting (1001 = 09) and
should be avoided. 


Examples ( use for qe, le and hme devices ):

 ifconfig -a shows that hme0 is 8:0:20:77:dc:7b

  Command to change ether number on additional hme interfaces:
    (using first 3 bytes of 0a:0:20 and last 3 bytes of host-assigned
address) 
       ifconfig hme1 ether 0a:0:20:77:dc:7b

  sequential numbering:      
       ifconfig hme1 ether 0a:0:20:00:00:1
       ifconfig hme2 ether 0a:0:20:00:00:2

  numbering scheme based on part of IP address ( ex: hme1 =192.9.200.2 hme2
= 192.9.200.16
    (Using 0a:0:20 for first 3 bytes and last 3 octets of IP number).
       ifconfig hme1 ether 0a:0:20:09:c8:2
       ifconfig hme2 ether 0a:0:20:09:c8:10



This change can be permanently added to an rc startup script) 


Another method is to ping the broadcast address and randomly choose a number

that is not being used on the network. in the form of 8:0:20:XX:XX:XX 





another method is to modify the S30rootusr.sh backup original script and
modify 
the script to read /etc/ether\.$1 files. 

##################
interface_names="`echo /etc/hostname.*[0-9]             2>/dev/null`"
if test "$interface_names" != "/etc/hostname.*[0-9]"
then
        (
		echo "configuring network interfaces:\c"
                IFS="$IFS."
                set `echo /etc/hostname\.*[0-9]`
                while test $# -ge 2
                do
                        shift
                        if [ "$1" != "xx0" ]; then
				 addr=`shcat /etc/hostname\.$1`
				 if [ -f /etc/ether\.$1 ]
				 then
				 	/sbin/ifconfig $1 ether `cat
/etc/ether\.$1` plumb
				 else
				 	/sbin/ifconfig $1 plumb
				 fi
				 if test -n "$addr"
				 then
					/sbin/ifconfig $1 inet "$addr"
netmask + \ 
						broadcast + -trailers up \ 
						2>&1 > /dev/null
				 fi
				 echo " $1\c"
                        fi
                        shift
                done
		echo "."
        )
fi
##################



Note: Do not use an odd number ( ex: "09:") for the first byte due to the
fact 
that if you are implementing multicasting, the 1st bit transmitted
("individual/group" 
bit) of a 1 represents a multicast address. 


see INFODOC ID: 15572 SYNOPSIS: Can I configure two Ethernet interfaces on 
the subnet? 


Additional note: For Security and network isolation. You can set
ip_forwarding 
off and ip_strict_dst_multihoming on, if you are trying to prevent access to

the other interfaces. 


ndd /dev/ip ip_forwarding Determines if the workstation will route packets. 



ndd /dev/ip p_strict_dst_multihoming Determines whether to use Strict
Destination 
Multihoming. If this variable is set to True, and ip_forwarding is turned
off, 
then the machine will not except packets destined for a different interface.

RFC112 3.6: How do I set the fast ethernet port as the primary interface? 

Solaris 2.x:

  sys-unconfig : 
    For newly installed systems or if a system is considered
re-configurable, 
    see the sys-unconfig (1M) command, this will allow the root user to
reassign 
    the hostname, network and ip information upon reboot. 

  Manually : 
    The /etc/nodename should be the same name as your primary interface
    which is identified as /etc/hostname.XXX# (XXX=devicei, # is the
instance) 
    Also you may need to verify that the hosts files (used for the transport
providers) in 
       /etc/net/ticlts, ticots, ticotsord  reflect new hostname ( uname -n )
    
    Note: /etc/hosts is a link to /etc/inet/hosts. 
    ls -al /etc/hosts
    lrwxrwxrwx   1 root root  12 Dec  7  1996 /etc/hosts -> ./inet/hosts


     Example: le0 was primary interface when system was initially loaded. 
       To implement hme0 as the primary host and disable le0. 
       # mv /etc/hostname.le0 /etc/hostname.hme0. 

SunOS 4.x:

 Edit the /etc/rc.boot file: 

(example - using hme1 interface as primary hostname) 

   modify this line /etc/rc.boot:

       hostname="`shcat /etc/hostname.??0 2/dev/null`" 

    Change the hostname.??0 to hostname.hme1 and save the changes. 

    The entry should now appear as: 

        hostname="`shcat /etc/hostname.hme1 2/dev/null`" 

<- Previous Message | Next Message ->
Thread Index

ISP Glossary
Find an ISP Term

Need Help?