How to configure IP in SUN Machine

Hi Experts,

I am new for solaris, i am using Solaris10,can you anyone assist me how to configure IP in my machine.

Thanks

Use ifconfig -a ( to check ip address)

To set ip address use,

ifconfig <interface name> < ip address> netmask <netmask>

ex: ifconfig hme0 10.40.44.2 netmask 255.255.255.0

Locate you network interface i.e. qfe0.

Which can be located like below

Once you have identify the interface you have to plum it with the help of

Once you have plumb check the interface with

you will get some thing like below against the plumb interface

< interface name > flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 0.0.0.0 netmask 0

Assign the required IP and netmask as below with ifconfig

Check the same with

place the entry in /etc/hosts and /etc/hostname.<instance name>

Hi,

to make your network configuration permanent do the following:
put the hostname in /etc/hostname.<interfacename>
put ip-nr. and hostname in /etc/inet/hosts
put netmask in /etc/inet/netmasks

Have a look at Solaris 10 System Administrator Collection - Sun Microsystems

Good Luck
lowbyte

Thanks all of you