Excellent!
Main Topics
Browse All TopicsI am running Solaris 10 in Vmware and using NAT or Bridged for using my network. I do keep swapping of this option as per my requirement. But to get the change affect I need to reboot my virtual instance of Solaris 10.
I tried doing 'svcadm -v restart network/physical' after swapping to NAT/Bridge but no gain, IP address is not getting change.
Please advice
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: awa2008Posted on 2008-12-04 at 00:49:44ID: 23093481
Hello,
blog/pivot /entry.php ?id=573
That is, if you wanted to add a new IP to the "nge0" (nVidia Gigabit Ethernet) interface, I'd put "192.168.100.42 cuddlistic1" in /etc/hosts and "cuddlistic1" in /etc/hostname.nge0. The hostname is the only thing that goes in that file.
from this url : http://www.cuddletech.com/
On Solaris the network setup is "integrated" into the various system files in /etc. Here is a run down of how you'd manually setup a new interface on Solaris:
1. Add the name of the system to /etc/nodename. It will be the only thing in this file. This is the common name of the system reguardless of how many hostnames the system really has.
root@anysystem devices$ cat /etc/nodename
anysystem
2. Add the hostname and IP address to /etc/hosts.
3. Add any appropriate subnet masks to /etc/netmasks. These netmasks are based on the various networks your system might be part of. For 192.168.100.0/24 you'd add the line: "192.168.100.0 255.255.255.0"
4. Add the hostname that you added to /etc/hosts to /etc/hostname.(interface).
5. Add DNS information to /etc/resolv.conf
6. Add the default router address to /etc/defaultrouter. If your gateway was 192.168.1.254 you'd "echo 192.168.1.254 > /etc/defaultrouter". Again, the IP of the router is the only thing that goes in that file.
7. Now either reboot or, preferably, svcadm restart svc:/network/physical.
If you wanted to use DHCP intead, you'd simply ensure that the primary hostname was in /etc/nodename and then, instead of all that other stuff, touch /etc/dhcp.(interface). So if you want nge0 to use DHCP just touch /etc/dhcp.nge0 and your done.
This all might see like too much work and very tedious at first, but it really is much cleaner because everything hinges on itself. On most Linux systems the /etc/hosts file isn't all that important because you could remove the hostname of your system from it and you'd still be working, however on Solaris you can change you IP address simply by editing /etc/hosts and restarting the interfaces. Personally, although the Solaris method is a little longer, its much easier to manage a large number of interfaces than having everything about each interface in seperate files.
You can check the routing and interface stats just like you do anywhere else, using netstat, and of course, ifconfig works like you expect it should.
I hope that help you
Regards