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.

But according to our plan, we will make link name change as part of install, 
so that you can chose your preferred link name when you install the system.

It won't be in the first delivery of the project though. We decide to 
experiment vanity naming more and add that feature later. Another thing we'd 
like to add together in the future is to change the default physical link 
name to be net<N>.

> 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.

- Cathy

> Or is there a better way?
> 
> I think there is a (4) missing from 4.3.1 in the design doc:
> 
> - how to rename your only existing network interface without
>   being at the console.
> 
> Darren
> 
> 
> _________________________________
> clearview-discuss mailing list
> clearview-discuss at opensolaris.org


Reply via email to