test link in solaris 10 nics

You need to plumb them to see if they have link, so

x=20;dladm show-dev| awk ‘{ print $1 }’  | while read i;do ifconfig $i plumb;((x++)) ;ifconfig $i 100.100.100.$x/24 broadcast + up;done;dladm-show-dev

Leave a Reply

Your email address will not be published. Required fields are marked *