Pages

Tuesday, April 20, 2010

Trouble shooting solaris Network Configuration

ADD NETWORK ON SOLARIS 10 x86


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

lo0: flags=2001000849 mtu 8232 index
inet 127.0.0.1 netmask ff000000



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

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

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

Trouble shooting

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

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

Check default router
         bash-3.00# etc/defaultrouter
        192.168.1.1

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

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 192.168.1.220 netmask 255.255.255.0 up
(optional)
       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.
        #CONSOLE=/dev/console
        # PASSREQ determines if log-in requires a password.
        #
        PASSREQ=YES

       # ALTSHELL determines if the SHELL environment variable should be set
       #
       ALTSHELL=YES

       # PATH sets the initial shell PATH variable
       #PATH=/usr/bin:

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

No comments:

Post a Comment