Find the answer to your Linux question:
Results 1 to 2 of 2
i want to set the ip and mac address on the start up.... so i can prevent changing it everytime... upon learning from web i came to know i need ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    21

    Smile startup

    i want to set the ip and mac address on the start up....
    so i can prevent changing it everytime...

    upon learning from web i came to know i need to edit the /etc/rc.d/rc.local file...

    i have changed it to...

    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.

    touch /var/lock/subsys/local
    ifconfig eth0 xx.xx.xx.xx netmask 255.255.255.0 broadcast xx.xx.xx.xx
    ifconfig eth0 hw ether xx.xx.xx.xx.xx.xx

    ------------------------------------------------

    but i have to set the dns client on startup ...
    how to set the dns client???

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,393
    Instead of doing this in rc.local, you should use the system tool for network configuration. It's called 'system-config-network', and if it's not installed already it should be just a yum install away. If you don't run X, there is a text mode version that should work too.

    In the tool, you can specify these settings for your network connection, and make it activate on bootup.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...