Cathy Zhou wrote:

> Darren Reed wrote:
>
>> If I'm ssh'd into a system and it has only one NIC (or the
>> NIC that I want to rename has the IP# of the target of my
>> ssh session), how do I do it?  (Note that I can't unplumb
>> the NIC I want to rename.)
>>
>> Is there a magic file I can put some commands into so that
>> when the box reboots, it can rename /etc/hostname.hme0
>> to /etc/hostname.bugbear0 and also execute dladm to
>> rename hme0 to bugbear0 too?
>>
> Today, there is no such mechanism. One can only rename a link when it 
> is not used.


At the very least, there's some important opinion fodder here for
the case.
 

>> It seems I can:
>> 1) edit /etc/dladm/datalink.conf, changing "name=string,hme0"
>>    to "name=string,bugbear0"
>> 2) rename /etc/hostname.hme0 to /etc/hostname.bugbear0
>> 3) reboot
>>
>> This will work?
>
>
> No, that file is private, and chaning it directly is not a supported 
> approach.


But will it work?  (I'm not interested in the supported bit.)

Darren


Reply via email to