NIC Question on Solaris 8

NIC Question on Solaris 8

Post by Chamb » Sat, 02 Feb 2002 05:07:29



Hello all !!

I have two nic on my E450....hme0 and hme1....

When a reboot my E450, the ifconfig -a result is :

ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 162.203.103.87 netmask ffffff00 broadcast 162.203.103.255
        ether 8:0:20:b1:4a:10
hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.128.1 netmask ffffff00 broadcast 192.168.128.255
        ether 8:0:20:b1:4a:10

You see the ether is the same....but my problem is that both nic are in the
same Switch on different VLAN....so i need to do this command to make the
LAN working for my sunray...

ifconfig hme1 8:0:20:bd:52:16

I want to know where i can put a value for the ether to stay always
ok....after a reboot....no need to do the ifconfig command to make both LAN
working...

Is it in /etc/rc?.d/....  or it's possible to do some twik with the NIC to
remember is ether (mac) adress ???

Any help, hints will be appreciated !!!

Thank's in advance ...

Chamby

 
 
 

NIC Question on Solaris 8

Post by Joshua Goul » Sat, 02 Feb 2002 05:15:14



> ifconfig -a
> lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
>         inet 127.0.0.1 netmask ff000000
> hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>         inet 162.203.103.87 netmask ffffff00 broadcast 162.203.103.255
>         ether 8:0:20:b1:4a:10
> hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
>         inet 192.168.128.1 netmask ffffff00 broadcast 192.168.128.255
>         ether 8:0:20:b1:4a:10

> You see the ether is the same....but my problem is that both nic are in the
> same Switch on different VLAN....so i need to do this command to make the
> LAN working for my sunray...

A better way of doing what you are asking is setting the OpenBoot
variable local-mac-address? to true. You can do this from the command
line with:

/usr/sbin/eeprom local-mac-address? true

or in OpenBoot with:

setenv local-mac-address?=true

This will cause your Sun to use the MAC address on each card (which
will be different).

  Joshua

 
 
 

NIC Question on Solaris 8

Post by Casper Berri » Sat, 02 Feb 2002 07:07:25


Halt the machine and at the OK prompt you type:

setenv local_mac_address? true

boot the machine, et voila!

Cheers,
Casper



Quote:> Hello all !!

> I have two nic on my E450....hme0 and hme1....

> When a reboot my E450, the ifconfig -a result is :

> ifconfig -a
> lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
>         inet 127.0.0.1 netmask ff000000
> hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>         inet 162.203.103.87 netmask ffffff00 broadcast 162.203.103.255
>         ether 8:0:20:b1:4a:10
> hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
>         inet 192.168.128.1 netmask ffffff00 broadcast 192.168.128.255
>         ether 8:0:20:b1:4a:10

> You see the ether is the same....but my problem is that both nic are in
the
> same Switch on different VLAN....so i need to do this command to make the
> LAN working for my sunray...

> ifconfig hme1 8:0:20:bd:52:16

> I want to know where i can put a value for the ether to stay always
> ok....after a reboot....no need to do the ifconfig command to make both
LAN
> working...

> Is it in /etc/rc?.d/....  or it's possible to do some twik with the NIC to
> remember is ether (mac) adress ???

> Any help, hints will be appreciated !!!

> Thank's in advance ...

> Chamby

 
 
 

NIC Question on Solaris 8

Post by Wolfgang Stie » Sat, 02 Feb 2002 14:39:33


Hi!

Quote:> /usr/sbin/eeprom local-mac-address? true

Wrong syntax. You need an equal sign and you have to escape the ?
(otherwise the shell will interpret it for filename substitution):

 /usr/bin/eeprom "local-mac-address?=true"
 /usr/bin/eeprom local-mac-address\?=true

both should work.

Quote:> or in OpenBoot with:

> setenv local-mac-address?=true

Wrong syntax: No '=' allowed here:

 setenv local-mac-address? true

wolfgang