Solaris Networking

 


 

Contents

  1. Overview
  2. Planning
  3. Configuration
  4. Configuration Files
  5. Multihomed Hosts
  6. Local Files
  7. Configuration Server
  8. Client Mode
  9. Routers
  10. Troubleshooting

See Also

  1. Networking


Overview

To configure networking on Sun boxes:

  1. Configure /etc/hosts. For example:

    127.0.0.1       localhost
    192.168.4.199   apollo loghost
    

  2. Configure /etc/resolv.conf.

  3. Set mn.yourcompany.com in /etc/defaultdomain, which is used by domainname

  4. Run netstat -r and verify that a default route is set. If not, run:

    route add default 192.168.4.1

  5. Do not set /etc/defaultrouter

  6. Configure logical interfaces

  7. Add a dns flag to the hosts line of nsswitch.conf, and that enabled dns within the yourcompany network...
    # /etc/nsswitch.files:
    #
    # An example file that could be copied over to /etc/nsswitch.conf; it
    # does not use any naming service.
    #
    # "hosts:" and "services:" in this file are used only if the
    # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
    
    passwd:     files
    group:      files
    hosts:      files dns
    ipnodes:    files
    networks:   files
    protocols:  files
    rpc:        files
    ethers:     files
    netmasks:   files
    bootparams: files
    publickey:  files
    
    ### There is no 'files' backend for netgroup.  The system will
    ### figure it out pretty quickly, and won't use netgroups at all.
    
    netgroup:   files
    automount:  files
    aliases:    files
    services:   files
    sendmailvars:   files
    printers:       user files
    
    auth_attr:  files
    prof_attr:  files
    project:    files
    

If you do not want to set the above files by hand, there is a menu-driven configuration script that can be accessed:

  1. As user root, run sys-unconfig

  2. At the ok prompt type: boot

  3. After the reboot, a menu should come up. Answer the config questions as best you can...


 

Home