Twitter Updates

    follow me on Twitter

    G-AVLN in front of her home

    G-AVLN in front of her home

    Mostly Unix and Linux topics. But flying might get a mention too.

    Tuesday, June 10, 2008

    IP configuration in HP-UX B11.23

    Most of the start-up scripts in HP-UX are under the /sbin directory. You'll find the master scripts there, in the init.d, and you will find all run-level related directories, rc0.d, rc1.d, etc.

    The /etc does have related stuff, in the /etc/rc.config.d, but this is only service start-up directives. Each file, corresponding to a service, contains relevant parameter definition. Guess what a file called netconf might contain? All basic network interface card configuration is here...

    The file is rather large, with a lot of comments and explanation. I am after the 'meaningful' lines, those that contain the actual configuration. The following command line allows me to see those lines only, using grep to strip all comment lines, then sed to delete empty lines:

    # grep -v '^#' /etc/rc.config.d/netconf | sed '/^$/d'

    There are nearly twenty lines in total, the important one that I'm going to change are:

    HOSTNAME="itanium.piecorner.com"
    IP_ADDRESS[0]=192.168.1.43
    DHCP_ENABLE[0]=0 # was 1 for true
    ROUTE_GATEWAY=192.168.1.254

    This is only for the time being, while I'm testing this in the classroom. Once the boxes go into the machine room, will have to revisit the settings.

    Time for reboot and test.

    No comments:

    Blog Archive