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?

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


Reply via email to