RagHon Consulting
+47 98237711
  • Home
  • Services
  • Products
    • Oracle Enterprise Ops Center >
      • Links
      • Youtube
    • Self Extracting Zip Files
    • RC 2 SMF toolkit
    • RBAC aware user provisioning
    • Oracle Software
    • Oracle Hardware
    • Citrix Software
  • Partners
  • Blog
  • Contact
  • About
  • Support
    • Documents
  • Apps
  • Hjem

Change ip and hostname on Solaris 11

15/2/2012

2 Comments

 
As of Solaris 11, a lot of configuration files are obsolete. The config has moved to SMF. 

Enable static ip definition; disabling NWAM
- netadm enable -p ncp DefaultFixed
Change hostname: 
- svccfg -s node setprop config/nodename = "new_hostname"
- svccfg -s node setprop config/loopback = "new_hostname"
- svcadm refresh svc:/system/identity:node
- svcadm restart svc:/system/identity:node (svcadm restart node works as well)

Change IP: 
- identify current interface/ip   
- ipadm show-addr ; (ADDROBJ identifies the interface)
- delete current interface definition   
- ipadm delete-addr net0/v4 (net0/v4 is the ADDROBJ from ipadm show-addr)   
- ipadm create-ip net0 (if not already defined)

- ipadm create-addr -T static -a 10.0.1.52/24 net0/v4
- verify the new configuration   
- ipadm show-addr ; or ifconfig -a

Define default router
- route -p add default 10.0.1.1
2 Comments
    View my profile on LinkedIn

    Author

    Ragnar Hongset @ RagHon Consulting. Independent consultant with 9 years of experience working for SUN Microsystems, and 15+ years experience with Solaris systems.

    Archives

    Mai 2014
    Februar 2014
    Mars 2013
    Februar 2013
    Januar 2013
    April 2012
    Februar 2012
    November 2011

    Categories

    Alle
    Cheat
    Comstar
    Dns
    Encryption
    Ios
    Ipadm
    Iscsi
    Ledvil
    Mac
    Mpxio
    Nexenta
    Nsswitch.conf
    Opensolaris
    Oracle Virtual Desktop Infrastructure
    Osx
    Pgp
    Resolv.conf
    Smf
    S/MIME
    Snap
    Solaris
    Solaris 11
    Solaris 9
    Sun Ray
    Svccfg
    Svcs
    Trusted Extentions
    Tx
    Unix
    Vdi
    Windows
    Xp

    RSS-feed