Solaris: LAN config ?

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

Guys, hope u can help me.
Thanks
Rodh_z
rodh_zAsked:
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.

wesly_chenCommented:
Hi,

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

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

Regards,

Wesly
0

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
wesly_chenCommented:
Ooops, typos, it should be
Then reboot the machine or do....
0
yuzhCommented:
Please have a look at my answer in http:Q_21141856.html
0
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
  /etc/hostname.<interface>
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
0
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
0
rodh_zAuthor Commented:
Thnks Guys,

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


0
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.