nic naming within solaris oS: i.e .e1000g0

netstat -D -returns DHCP configuration for all interfaces
ifconfig -a -returns configuration
#ifconfig e1000g0 dhcp status
#ps -ef|grep -i agent
#netstat -nr

#echo "192.168.1.10">/etc/hostname.e1000g0&&echo $?
#echo "linuxcbt.internal">/etc/defaultdomain
#vi /etc/hosts
127.0.0.1  localhost
192.168.1.101 linuxcbtwin1
#vi /etc/resolv.conf
domain linuxcbt.internal
search linuxcbt.internal
nameserver
#vi /etc/defaultrouter
192.168.1.1

reboot system after transitioning from network mode to static mode

6 key files
/etc/hostname.e1000g0
/etc/hosts
/etc/inet/netmask
/etc/defaultdomain
/etc/defaultrouter
/etc/resolv.conf

#domainname
#cat /etc/dhcp.e1000g0.old

mv dhcp.e1000g0 to some other name or remove the file so that the dhcp agent is not invoked
echo "linuxsun1" >/etc/nodename

### plumb/enable the iprb0 100Mb/s interface###
plumbing inerfaces is analagous to enabling interfaces
Note:172.16.20.11 is a linux host

steps:
1.
ifconfig iprb0 plumb up - this will enable iprb0 interface
2.ifconfig iprb0 172.16.20.10 netmask 255.255.255.0 -this will enable layer-3 ipv4 address

steps to unplumb an interface
1. ifconfig iprb0 umplumb down

###ensure that newly-plumbed interface settings persists across reboots###
steps inculde update/creating the following files
1. echo "172.16.20.10" >/etc/hostname.iprb0
2. create entry in /etc/hosts -172.16.20.19 linuxcbtsun
3. echo "172.16.20.0 255.255.255.0">>/etc/inet/netmasks

Note: to down interface , excute:
ifconfig interface_name down





# ifconfig iprb0 plumb up
# ifconfig -a
#dladm show-dev
# ifconfig iprb0 umplumb down
# uptime
# dladm show-dev
# ls -ltr /ect/hostname.ipbr0
# internet host table
#

### sub-interface/logical interfaces###
e1000g0(Physical interface) -192.168.1.50(primary appache website) -192.168.1.51(secondary apache website)
-192.168.1.52(userd for ssh)

iprb0 -172.16.20.10
iprb1  -

use 'ifconfig interface_name addif ip_address <netmask>'
ifconfig e1000g0 addif 192.168.1.51(RFC1918 -defaults /24)
Note: this will automatically create an 'e1000g0:1'

#