Solaris routing basics

0 comments

This my first post on Solaris on my LinuxNIX(NIX is nothing but UNIX all flavors).

Creating routes in Solaris:
Basic Sun Solaris  routing

  • Add a route to a network
    #route add net network default-gateway
Example
          #route add net 5.23.1.0 1.9..9.1


  • Add a default route.
    #route add default  default-gateway
Example
          #route add default 1.9.9.1

  • Delete a route
    #route delete net network default-gateway
Example
          #route delete net 5.23.1.0 1.9.9.1

  • Look-up and display the route for a destination network:
    # route get destination-network
Example
          #route get 5.23.1.0

  • Get routing reports continuously
    # route monitor

  • Flushing the route table:
    # route flush

  • Seeing routing table in sun box
  • #netstat -nr
  • Use the "route add net" command with the -netmask option to make the route command to take the netmask specified on the command line

    # route add net 192.168.68.0 128.50.1.250 1 -netmask 255.255.255.192

Permanently assigning a routes in sun box

/etc/rc2.d/S69inet file can be used for routes to exits permanently

Example entries in S69inet file

/usr/sbin/route add net         1.100.0.0       1.7.16.1     1
/usr/sbin/route add net         17.48.30.0      1.7.0.48     1
/usr/sbin/route add net         17.48.30.0      1.7.48.1     1
save the file and exit so from next time on words no need to execute the route commands every time after reboot

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Linux user management - 1

    0 comments

    User Management Basics-I

    For a linux admin, knowledge of user management is must. In this we'll look at simple user management tasks such as creating users

    I) Creating a user in linux

    Syntax:
       
    #useradd username

    Example:

            #useradd phani

    here we created an user called phani. Before executing this command we should know that useradd is an admin command so only root user can execute this command,So we created user what next? simply logging in ha? if you try to login with "phani" user system will ask for password for that user so with out creating a password phani cant login

    II) Creating user password

    Syntax:

    #passwd username

    Example:

            #passwd phani

    when you enter this command you will be prompted for new password and for re-entring new password, once the password is updated to system we will get conformation saying that,password has been updated sucessfully

    thats its, Creating user in linux is this much easy.. So what next we will see some other commands to know more about user management

    III)So how to change password ?

    Syntax

    #passwd username

    Example:

    #passwd phani

    this is almost same as creating a password, but we have to know one more info suppose you logged in to user "phani" and want to change password for that user you no need to specify the user name just give passwd it will ask for new password for user "phani"

    Example:

    [phani@server1 ~]$passwd

    here it will just ask for new password for phani user.

    IV)Can we able to login to linux server with out providing password?

    the answer for this is yes we can login to linux with out password, this can be achived with -d option for password command

    Syntax

    #passwd -d username
         here -d is nothing but deleting the passwor for the specified user.

    Example:

    #passwd -d phani


    please comment if you like this topic

  • Like the post? Please Subscribe to free RSS feed to get updates
  • RPM package management-III(Advanced Package MGMT)

    0 comments

    Creating RPM packages from Source

    To start of this topic most of the times RPM packages will come as source file. This have some advantage and disadvantage
    first coming to disadvantage there is no direct command to install this source file on linux server so for newbabys it very diffucult to install the packages and coming to advantage we can compile this source packages to what ever platform we want so we are now going to see how to create compiled packages for different platforms from source files
    here are the links for my previous RPM management topics. one two.

    Step1: To create RPM packages from source we require two packages

    gcc compiler
    rpm-build

    install these two packages

    Step2:After installation of above packages install the source package which you want to compile

    #rpm -ivh packagename.src.rpm

    When we install the above src package we will get .specs file in /usr/src/redhat/SPECS which will contain all the details to create the required.

    Step3:Now we got the spec file in order to specify the platform type etc

    #cd /usr/src/redhat/SPECS

    Step4:Create rpm package

    #rpm-build -bb packagename.spec --target i386

    this command will build a package which can be installed on i386 platform

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Disk management - I ( Formating with ext2,ext3)

    0 comments

    So you saw how to create partations. If the below videos are not clear please maximize/view in full screen.

    This video explains how to create partitions and format with ext2







    Creating partitions and formatting with ext3

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here