On 28/04/09 11:11 AM, James Carlson wrote: > Peter Memishian writes: >> > If we don't have it we'd probably need some support in the conversion of >> > /etc/hostname* files so that at the time of conversion we do a >> > getaddrinfo to get the addresses from /etc/hosts,ipnodes. >> > >> > Thus the RFE might not even be needed. >> >> Agreed. For the reasons already discussed on this thread, using hostnames >> with ipadm (and ifconfig) is problematic; we'd be better off without it. > > For what it's worth, I happen to like using names whereever I can > rather than repeating magic numbers. Thus, I normally configure > systems with static IP addresses to have an entry in /etc/hosts > corresponding to the address I'm going to use, set up > /etc/nsswitch.conf to have 'files' listed first (as it Should Always > Be), and then use the name rather than the numeric address in > /etc/hostname.* and all the other configuration files. > > This saves me from a lot of grief if I ever have to renumber the box. > In most cases, all I have to change is the /etc/hosts entry, and I'm > good to go. (Yes, some parts like /etc/resolv.conf are unusually > annoying about such things.) > > Thus, I would like to manage statically addressed interfaces by name > if it's possible. And as Erik mentioned, if it's configured by name, > that same name should be used for all operations and shouldn't be > internally translated into something else.
I think the only question with a name is if there's more than one address associated with it, do all of them get applied or just one of them? I often work as you've described above and when doing so, names used with interface address assignments have always been unique. Darren -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/brussels-dev/attachments/20090428/11784fce/attachment.html>
