#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0

    How to set server's netmask, router, and set if it is an external or internal ip?


    Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful
    I stopped at ..

    #!/bin/sh
    A=`hostname -i`
    echo "server ip address is $A"
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,451
    Rep Power
    1751
    That sort of configuration is normally performed during the server start by the various rc scripts. What OS is the server running?
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0
    Maybe, I explained not clearly.. I should set the configurations of the server of my Internet provider, I am not sure, but I think that the OS is Linux
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0
    I found subnet mask ip, router ip and server ip. The last thing left is to write a script which sets if it is an external or internal ip, maybe someone can tell anything on that? any ideas?

IMN logo majestic logo threadwatch logo seochat tools logo