Results 1 to 3 of 3
Every time i type in the long ifconfig command to make my ips 20.0.0.2(example)... after a few minutes DHCP reassigns the ip ... any ideas how to disable the DHCP ...
- 03-18-2008 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 15
Static IP...
Every time i type in the long ifconfig command to make my ips 20.0.0.2(example)... after a few minutes DHCP reassigns the ip ... any ideas how to disable the DHCP from rewriting this setting.
- 03-18-2008 #2Linux Newbie
- Join Date
- Mar 2008
- Location
- Hyderabad
- Posts
- 109
#service dhcpd stop
it wouldn't connect to any dhcp server.
- 03-20-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 67
go to ur /etc/sysconfig/network-scripts/ifcfg-eth0 file
change bootproto to none or static
give ur ip address there and restart the network scripts.
the command service dhcpd stop will stop the dhcp server running on ur machine ... but it will still look for ip from ur network dhcp server.
So to make the ip static u have to do the above steps and also make sure no body has that ip assigned to them from dhcp ....
hope this helps


Reply With Quote