Alan Maguire writes: > hi Alex > > Alex Zhang wrote: > > Hi all > > When automatic ncp worked, can I change the link's name with "dladm > > rename-link" command? > > This command failed and told me that the device is busy, so I run "ifconfig > > linkname down" > > though this command return success, the link seems is not down, but lost > > its dhcp address. > > However, when I run "ifconfig linkname up" again, it still can not find the > > dhcp address. > > > > > If I remember correctly, you'd need to unplumb > IP on the link before you can rename it. After > renaming, you'd need to run "ifconfig linkname plumb" > and "ifconfig linkname dhcp". nwamd will later > catch such rename events, but at present it does not. > Hope this helps,
That's correct, but there's more to the story. "ifconfig xxx down" changes the administrative state to 'down' for that one logical interface, but does _not_ (as you note) disconnect IP from the underlying physical interface. "ifconfig xxx up" changes it to 'up,' but does not change any other state. When you use DHCP on an interface, DHCP believes that it is solely responsible for the interface. If you change the parameters (including marking the interface up or down), then DHCP will abandon it, because it assumes that you now want direct administrative control. If that's not what you want, and you'd prefer to see DHCP return, then after making changes, you'll need to do "ifconfig xxx dhcp start". -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
