Results 1 to 4 of 4

Thread: Change IP Address on Solaris 10

  1. #1
    Join Date
    May 2008
    Posts
    97

    Change IP Address on Solaris 10

    Hello!

    How can I run on Solaris 10, the IP address change?

    I found/etc/hostname. "interface" (as is the interface name in it) then in /etc/hosts file under this name, the IP address change.

    Is it accurate or is there any other way under Solaris 10?


    Thank you,

  2. #2
    Join Date
    May 2008
    Posts
    209

    Re: Change IP Address on Solaris 10

    You can change the IP Address by using ifconfig command.

    Code:
    ifconfig xl0 inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
    To change the IP in the hosts file :

    Code:
    vi /etc/hosts
    To change the IP address :

    IP - /etc/hosts
    Netmask - /etc/netmasks
    Gateway - /etc/defaultrouter
    IP (again) - /etc/inet/ipnodes
    DNS Servers - /etc/resolv.conf
    This will resolve your problem.

  3. #3
    Join Date
    Dec 2007
    Posts
    493

    Re: Change IP Address on Solaris 10

    To change change IP Address without reboot :

    1. Edit ->
    Code:
    /etc/hosts and  /etc/inet/ipnodes files
    2. Restart network :

    Code:
    # svcadm restart network/physical
    3. To ensure that IP address has been changed,

    Code:
    /etc/netmasks

  4. #4
    Join Date
    May 2008
    Posts
    335

    Re: Change IP Address on Solaris 10

    Quote Originally Posted by comodo View Post
    To change change IP Address without reboot :

    1. Edit ->
    Code:
    /etc/hosts and  /etc/inet/ipnodes files
    2. Restart network :

    Code:
    # svcadm restart network/physical
    3. To ensure that IP address has been changed,

    Code:
    /etc/netmasks
    Note : If you are not using IPV6 just removing the ipnodes file will cause the hosts file to assume it's previous function in setting the IP address.

Similar Threads

  1. How can I change my IP address?
    By Panchu in forum Networking & Security
    Replies: 3
    Last Post: 20-11-2009, 10:51 PM
  2. Change ip address from 10.0.2.14 to 192.168.X.X
    By dalsandhu in forum Networking & Security
    Replies: 3
    Last Post: 09-10-2009, 03:06 PM
  3. How can i change the hostname on Solaris
    By Xylina in forum Networking & Security
    Replies: 3
    Last Post: 18-08-2009, 10:05 PM
  4. How to change WAN IP address?
    By Rugby in forum Networking & Security
    Replies: 3
    Last Post: 13-01-2009, 06:33 PM
  5. Change IP address from cmd
    By Octavio in forum Networking & Security
    Replies: 3
    Last Post: 07-01-2009, 03:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,958,585.76709 seconds with 17 queries