You can also review the documentation at oracle.com:
From the Oracle Solaris Administration: Network Interfaces and Network
Virtualization
<http://download.oracle.com/docs/cd/E19963-01/html/821-1458/toc.html>guide:
http://download.oracle.com/docs/cd/E19963-01/html/821-1458/gjwiq.html#scrolltoc
-- Alan
On 05/10/11 03:41 AM, Giovanni Schmid wrote:
There is a bit of confusion here about old-style and new-style Solaris network
configuration... ;-)
You can use the (always good) "file editing" old-style
OR, ALTERNATIVELY
the new tool ipadm.
I have to say that I'm a bit perplex in mixing the two approaches...
In both cases you need first of all to disable Network magic (nwam) and enable the
network "physical"
management through SFM:
# svcadm disable svc:/network/physical:nwam
# svcadm enable svc:/network/physical:default
Then you can perform all manually, by:
1. Editing/creating the following files (in your case int_name=bge0):
/etc/hostname.int_name --> 192.168.10.10
/etc/netmasks ---> 192.168.10.0 255.255.255.0
(I'm assuming a standard class C network)
/etc/hosts --> 192.168.10.10 sol11 sol11.mynnet.local loghost
/etc/defaultrouter --> 192.168.10.1
2.Specifying that DNS is the source of information for host and network names
resolution:
/etc/resolv.conf --> domain mynnet.local
nameserver 192.168.10.25
#cp /etc/nsswitch.dns /etc/nsswitch.conf
You have to reboot the machine in order that your setting became effective.
Be aware that /etc/nodename defines the name of the host as prompted at login,
and it as nothing to
do with network configuration.... However, it is very important for the correct
operation of some software, primarily the X server.
If you wish to change the nodename of your Solaris box, FIRST disable the X
server.
ALTERNATIVELY,
you can use ipadm and route (Solaris 11) to perform step 1 above:
ipadm create-addr -T static -a 192.168.10.10/24 bge0/v4
route -p add default 192.168.10.1
giovanni
_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org