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 ...
- 07-11-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 21
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???
- 07-11-2009 #2
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/


Reply With Quote