Setting a Local Ethernet Address

In today's network environments, many systems have multiple interfaces, often on the same subnet or collision domain. Because an Ethernet address targets systems, each interface on the same network or subnet on a

multi-interface system must have a unique Ethernet address. Sun network adapters have local Ethernet addresses encoded in their programmable read-only memories (PROMs).

To view the current host-based Ethernet address, perform the command at the ok prompt:

ok banner

Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz), No Keyboard OpenBoot 3.19, 128 MB (50 ns) memory installed, Serial #12153379. Ethernet address 8:0:20:b9:72:23, Host ID: 80b97223. ok

To display the Ethernet address assigned to each interface, perform the command:

sys11# ifconfig -a lo0: flags=1000849<UP,L00PBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1

inet 127.0.0.1 netmask ff000000 hme0: flags=1000843<UP,BR0ADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 192.168.30.31 netmask ffffff00 broadcast 192.168.30.255 ether 8:0:20:b9:72:23 qfe0: flags=1000843<UP,BR0ADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255 ether 8:0:20:b9:72:23

sys11#

Set the local-mac-address? variable in the system's electrically erasable programmable read-only memory (EEPROM) to enable the use of port-based Ethernet addresses.

To view the contents of the EEPROM for the definition of the local-mac-address? variable, perform the command:

sys11# eeprom local-mac-address?

local-mac-address?=false

You can set the local MAC address to true, which enables network drivers to use their own port-based addresses after reboot and not the system default host-based addressing by performing the command:

sys11# eeprom local-mac-address?=true

The ifconfig ether command can also configure port-based addressing. This might be necessary if the interface card cannot supply its own unique Ethernet address. You can change the interface Ethernet address of 8:0:20:f0:ac:61 from a globally assigned Ethernet address to a locally assigned address of 0a:0:20:f0:ac:61 by changing the seventh bit to 1, and assigning a local unique number to the last 3 bytes.

To change the Ethernet address, perform the command:

sys11# ifconfig hme1 ether 0a:0:20:f0:ac:61

sys11#

To verify a change in the Ethernet address, perform the command: sys11# ifconfig hme1

hme1: flags=1000843<UP;BROADCAST;RUNNING,MULTICAST;IPv4> mtu 1500 index 2 inet 192.168.30.31 netmask ffffff00 broadcast 192.168.30.255 ether a:0:20:f0:ac:61

sys11#

This change of the Ethernet address is effective until you reboot the system. To make the change permanent, modify the /etc/rc2.d/S72inetsvc script by using the ifconfig command with the correct Ethernet address.

0 0

Post a comment

  • Receive news updates via email from this site