Solaris: LAN config ?

How can I change IP address of my ethernet card? My current ethernet was in eri0: then change it to with the same gateway and netmask.

Guys, hope u can help me.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


   Edit /etc/hosts file to reflect the change of IP   <hostname in /etc/hostname.eri0>

   The reboot the machine or do
ifconfig eri0 down; ifconfig eri0 netmask up
to change the IP without reboot. (/etc/hosts needs to be change so your IP will keep the changed one after reboot).



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ooops, typos, it should be
Then reboot the machine or do....
Please have a look at my answer in http:Q_21141856.html
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
For each network interface, there is a file named
in which you can either ut the IP address directly or (recommended) the host's name,
which than in turn must be found in /etc/hosts
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
Additionally, you can define netmask settings in the file /etc/netmasks and the default router in /etc/defaultrouter
rodh_zAuthor Commented:
Thnks Guys,

I tried ifconfig eri0 netmask up without reboot, it works.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.