• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to configure network in Solaris 10

    These are the steps you need to take to configure network on your Solaris machine.

    To configure a network using static IP.

    Check whether your machine is currently configured on DHCP
    # netstat -D
    returns the interfaces using DHCP address

    mv  dhcp.e1000g0 to some other name or remove the file so that the DHCP agent is NOT invoked

    These are the files which are used in Solaris to configure the network.

    IP Address - /etc/hostname.e1000g0
    Domain name - /etc/defaultdomain
    Netmask - /etc/inet/netmasks
    Hosts database - /etc/hosts, /etc/inet/hosts
    Client DNS resolver file - /etc/resolv.conf
    Default Gateway - /etc/defaultrouter
    Node name - /etc/nodename
    Name service configuration file - /etc/nsswitch.conf

    Use can use any text editor to edit the configuration files. In my case I will use gedit which is a GUI based text editor.

    # gedit /etc/hostname.e1000g0

    # gedit /etc/defaultdomain

    # gedit /etc/inet/netmasks

    # gedit /etc/hosts solaris.test

    # gedit /etc/resolv.conf
    domain test

    # gedit /etc/defaultrouter

    Check the nsswitch file for hosts value as bydefault it is only set to resolve using files and not dns
    # gedit /etc/nsswitch.conf
    hosts: files dns

    NOTE:You will have to reboot system after transitioning from network client(DHCP) mode to local files(Static) mode.

    Once the system is rebooted you can check the IP address of the machine
    #ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet netmask ff000000
    e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
    inet netmask ffffff00 broadcast
    ether 0:c:29:70:da:5b

    To check the default route or gateway
     # netstat -rn
     Routing Table: IPv4
     Destination           Gateway           Flags  Ref     Use      Interface
    -------------------- -------------------- ----- ----- ---------- ---------
     default             UG        1     3         U       1     2       e1000g0           U       1     0       e1000g0              UH       4    121       lo0
    # ping goole.com
    google.com is alive

    Related Articles

    Follow the below links for more tutorials

    How to configure iscsi target using Red Hat Linux
    What are the different types of Virtual Web Hosting in Apache
    Comparison and Difference between VMFS 3 and VMFS 5
    How to configure PXE boot server in Linux using Red Hat 6
    How to secure Apache web server in Linux using password (.htaccess)
    How to register Red Hat Linux with RHN (Red Hat Network )
    How does a DNS query works when you type a URL on your browser?
    How to create password less ssh connection for multiple non-root users
    How to create user without useradd command in Linux
    How to give normal user root privileges using sudo in Linux/Unix
    How to do Ethernet/NIC bonding/teaming in Red Hat Linux
    How to install/uninstall/upgrade rpm package with/without dependencies
    Why is Linux more secure than windows and any other OS
    What is the difference between "su" and "su -" in Linux?
    What is the difference/comparison between Unix and Linux ?
    RAID levels 0, 1, 2, 3, 4, 5, 6, 0+1, 1+0 features explained in detail

    Deepak Prasad

    Deepak Prasad is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?

    Become an author and be a part of our GoLinuxHub Team, Click here for more information
    How to configure network in Solaris 10 How to configure network in Solaris 10 Reviewed by Deepak Prasad on Wednesday, January 09, 2013 Rating: 5

    No comments:

    Powered by Blogger.