Tuesday, April 20, 2010

Trouble shooting solaris Network Configuration


press ifconfig -a on terminal and find the network connection (eg –bnx0, elxl0,lo0)

lo0: flags=2001000849 mtu 8232 index
inet netmask ff000000

elxl0: flags=1000843 mtu 1500 index 2
inet netmask ffffff00 broadcast
ether 0:b0:d0:69:d5:e

Then use following command to assign ip address
            bash-3.00# ifconfig bnx0 netmask up

use following command to assign default router
            bash-3.00# route add default

Trouble shooting

Check hosts file
         bash-3.00# cat /etc/hosts localhost
         192.168.1.IP mcbsol10

Check IP range (should appear as below)
         bash-3.00# cat /etc/netmasks

Check default router
         bash-3.00# etc/defaultrouter

Check nodename file
        bash-3.00# cat /etc/nodename

If Network is not working, even after you up network, then follow bellow list of commands

      bash-3.00# ifconfig bnx0 down

Unbind existing IP address to a Network Interface Card
      bash-3.00# ifconfig bnx0 unplumb

Bind an IP address to a Network Interface Card
       bash-3.00# ifconfig bnx0 plumb

       bash-3.00# ifconfig bnx0 netmask up
       bash-3.00# /etc/default/inetinit start

Enable Ftp for root

      bash-3.00# vi /etc/ftpd/ftpusers
      remove# root

Also, don't forget to edit the file /etc/ftpaccess and comment out the 'deny-uid' and 'deny-gid' lines.
If the file doesn't exist, there is no need to create it.

Configure Telnet for root logins

edit the file /etc/default/log-in as follows:

        # If CONSOLE is set, root can only login on that device.
        # Comment this line out to allow remote login by root.
        # PASSREQ determines if log-in requires a password.

       # ALTSHELL determines if the SHELL environment variable should be set

       # PATH sets the initial shell PATH variable

       # to log all root log-in at level LOG_NOTICE and multiple failed login

No comments:

Post a Comment