Fedora Linux Support Community & Resources Center
  #1  
Old 17th February 2008, 05:30 PM
Hades0523 Offline
Registered User
 
Join Date: Jan 2008
Posts: 56
how to disable dhclient?

I wanna disable dhclient that I can use static IP address.
I made a static IP address in 'ifcfg-wlan0' for wlan0,but it not works.I need to ifdown/ifup to make it works manually.unfortunately I have to do this everyboot that I can use my static IP address.need you help please.
Reply With Quote
  #2  
Old 17th February 2008, 05:51 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Post contents of current ifcfg-wlan0 and /etc/rc.local

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 17th February 2008, 06:13 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
Are you using "NetworkManager"(NM) by any chance ? NM automatically spawns dhcp - no alternatives, although static IPs will be supported in some future release.
Reply With Quote
  #4  
Old 17th February 2008, 06:33 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Ah the dreaded NetworkManager. I always forget that since I never liked it to begin with.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 17th February 2008, 06:36 PM
Hades0523 Offline
Registered User
 
Join Date: Jan 2008
Posts: 56
Quote:
Originally Posted by Brian1
Post contents of current ifcfg-wlan0 and /etc/rc.local

Brian
post here
Code:
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-wlan0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
ONBOOT=no
USERCTL=no
PEERDNS=yes
IPV6INIT=no
MTU=1500
GATEWAY=192.168.1.1
TYPE=Wireless
DEVICE=wlan0
HWADDR=00:11:f5:**:**:76
BOOTPROTO=static
NETMASK=255.255.255.0
DHCP_HOSTNAME=
IPADDR=192.168.1.150
DOMAIN=
ESSID=Kamui
CHANNEL=6
MODE=
RATE=
Code:
[root@localhost ~]# cat /etc/rc.local 
#!/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
nohup /usr/bin/pipclient -w /usr/bin &
to stevea: yes I using "NetworkManager",but I dont how can I online without NetworkManager.
Reply With Quote
  #6  
Old 17th February 2008, 07:22 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
You have ONBOOT set to no and needs to be yes.
Also set DHCPPROTO to none

ONBOOT=yes
DHCPPROTO=none

And if you have a wired nic that is say eth0 the edit ifcfg-eth0 to have ONBOOT=no. One can really only have a single interface up with a defined gateway unless routing commands are set.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #7  
Old 17th February 2008, 07:33 PM
Hades0523 Offline
Registered User
 
Join Date: Jan 2008
Posts: 56
wow!cool!I did it.Thanks a lot dear Brian1.You did me a huge favor.
Reply With Quote
  #8  
Old 17th February 2008, 07:52 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Glad to be of help.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
Reply

Tags
dhclient, disable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHClient in FC8 lbana Servers & Networking 0 25th December 2008 09:25 PM
dhclient tony2008 Servers & Networking 2 30th May 2007 02:51 PM
dhclient/DNS timomai Servers & Networking 2 2nd April 2007 03:35 PM
About dhclient satimis Using Fedora 0 8th February 2006 02:54 PM
log dhclient Konstantin Servers & Networking 0 12th June 2005 06:18 PM


Current GMT-time: 03:35 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat