Friday, 18 January 2013

Configuration of Static IP on Solaris 10

Configuring the static ip on Solaris 10 is different with the other linux. You have to configure a few files.

Firstly you must know your interface name of your solaris. You can get your interface name with following command.

#dladm show-link


If your solaris is configured with the DHCP, you must delete file /etc/dhcp.interface (/etc/dhcp.e1000g0). Now you have to configure with below files :

/etc/hosts
/etc/hostname.interface
/etc/nodename
/etc/inet/hosts
/etc/inet/ipnodes
/etc/defaultrouter

Add the IP and hostname at /etc/hosts


Add IP and Netmask at /etc/hostname.interface (/etc/hostname.e1000g0)


Add the hostname at /etc/nodename , If nodename file isn't available at /etc by the default, create byself.


/etc/inet/hosts and /etc/inet/ipnodes will updated automatically if you updated your hostname on /etc/hosts. If not, add the same entries as /etc/hosts.

Add default gateway ip at /etc/defaultrouter, If defaultrouter file isn't available at /etc by the default, create byself.


Now, restart the Network service using following command or reboot the server for the changes to take effect.

# svcadm restart network/physical



 >>

UTEE

Ref: Forums

No comments:

Post a Comment