on solaris 10 either its x86 or sparc
here i'll assume you have GigaEthernet interface
e1000g driver name
0 is the instance number
you can determine physical interfaces using
Code:
dladm show-dev | show-link
determine plumbed and loopback interfaces using
for an example
NIC naming within Solaris OS: i.e. e1000g0
IP Address - /etc/hostname.e1000g0
domain name - /etc/defaultdomain
netmask - /etc/inet/netmasks
hosts database -
,
- loopback & ALL interfaces
client DNS resolver file -
default Gateway -
node name -
Plumb/enable the e1000g0
Code:
ifconfig e1000g0 plumb up
unplumb/disable the e1000g0
Code:
ifconfig e1000g0 unplumb down
ensure that newly-plumbed interface settings persists across reboots
Steps include updating/creating the following files:
/etc/hostname.e1000g0
Code:
echo "192.168.1.10" > > /etc/hostname.e1000g0
create entry in /etc/hosts - ipaddr xxx.xxx.xxx.xxx hostname
example
echo "dotted ipaddr dotted subnetmask" >> /etc/inet/netmasks
example
Code:
echo "192.168.1.10 255.255.255.0" >> /etc/inet/netmasks
i hope this helps