Hi Somnath,

If you intending to develop a script which can configure IP address after
loading (attaching) driver, you can do like this:
# add_drv ...
# interface=`dladm show-link | grep "^<your_interface>" | awk '{print $1}'`;
ifconfig $interface plumb <IP_address> up

For example if interface is cxge0, part of above looks like this
-bash-3.2# dladm show-link | grep "^cxge" | awk '{print $1}'
cxge0

Regards,
Gireesh

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Somnath kotur
Sent: Wednesday, September 23, 2009 5:35 PM
To: Garrett D'Amore
Cc: [email protected]
Subject: [driver-discuss] Controlling instance #'s showing up in prtconf

Hi All,
        I was wondering if there is any way to control /know the instance
#'s that show up after  i 'add_drv' my NIC driver. 
For example for me 
Box 1 : it shows up as <mydrivername2> and on another box 2 : shows up as
<mydrivername1> while actually i'd like them to show up on both boxes as
<mydrivername0> , because this is what goes on to make my ifconfig name as
well ,so ideally i'd like to have a script to configure the IP address as
soon as it its loaded,but the instance# seems to vary from one box to the
other ? 

Is is possible to control this?

Thanks
Som


      
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to