Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 744
  • Last Modified:

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
0
rodh_z
Asked:
rodh_z
1 Solution
 
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
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now