Networking :: Change Debian Default Dhcp Client?
Nov 5, 2010
I would like to use dhcpcd instead of dhclient in my Debian installation, because I had some trouble with dhclient in the past and I assume the problem is still exists now with some equipments.
So I would like to use dhcpcd, but I couldn't find a way to tell the system to give higher priority to dhcpcd than dhclient.
Also, I've tried to remove the package 'isc-dhcp-client', but it also would like to remove the following packages: isc-dhcp-client knm-runtime network-manager network-manager-kde
Moreover, it says no need the following packages anymore: usb-modeswitch dnsmasq-base libnm-util1 usb-modeswitch-data network-manager-ppp pptp-linux network-manager-openvpn libnm-glib-vpn1 libnm-glib2 modemmanager vpnc network-manager-vpnc
I would like to still be able to use kde-network-manager, because it is much easier to manage wifi connections using this interface.
View 2 Replies
ADVERTISEMENT
Jun 1, 2011
I want to use dhcpcd instead of dhclient on Ubuntu. The 'interfaces' man page say: "The dhcp Method This method may be used to obtain an address via DHCP with any of the tools: dhclient, pump, udhcpc, dhcpcd. (They have been listed in their order of precedence.)"
I can't find where to change this default order. I can uninstall dhcp3-client, but this will also remove ubuntu-minimal, which is not a good solution.
View 2 Replies
View Related
Jan 26, 2011
Is there any way to get an async notification (perhaps through something like a Linux message queue or Unix socket) when a DHCP client is either unable to renew its lease, or the address obtained changes from the previous value? I've got the ISC client and will dig into it to determine if it supports such a feature, but thought I'd ask here in parallel. (I'm trying to find out if there are any DHCP clients out there which already support this capability.)
If you're curious: We have an application where we're doing auto-registration of an IP camera to an external server. If the camera's dynamically assigned address changes, we need to restart the auto-reg state machine. I've seen implementations where a socket is opened and a SIOCGIFADDR ioctl used to fetch the IP addr, but I'd sure like to avoid polling like this if possible.
View 1 Replies
View Related
Mar 25, 2010
I am puzzled with trying to configure a linux (openSUSE) client to dhcp to eBox DHCP server. I am using dhclient to lease an IP address with dhclient eth0 -s 10.45.48.108 and get a response
openSUSE11232CL1 dhclient: DHCPDISCOVER on eth0 to 10.45.48.108 port 67 interval 4
openSUSE11232CL1 dhclient: DHCPOFFER from 10.45.48.108
openSUSE11232CL1 dhclient: DHCPREQUEST on eth0 to 10.45.48.108 port 67
openSUSE11232CL1 dhclient: send_packet: Network is unreachable
openSUSE11232CL1 dhclient: send_packet: please consult README file regarding broadcast address.
The server reports eBox141 dhcpd: DHCPDISCOVER from 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
eBox141 dhcpd: DHCPOFFER on 10.45.200.2 to 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
I interpret this as the server receives the request and the client accepting it but the lease does not last long and the connection breaks. what this could be and why the connection breaks? Or my undestanding is totally wrong on how it works and should work? And BTW, where is that README file that's referenced in the message I receive on the client?
View 2 Replies
View Related
Aug 18, 2010
In 11.3, if in "/etc/sysconfig/network/ifcfg-eth0" i set DHCLIENT_SET_DEFAULT_ROUTE="no" this seems to have no effect. If i start my box, the routing table has the "default route"-entry offered by a remote DHCP-Server. More Info: My Susebox has eth0 and eth1 and both network devices should use DHCP4. But from DHCP-offer on eth0 i want to use
* "offered IP-Adress for eth0"
* "offered NTP-Server"
* "offered Host-Name"
From DHCP-offer on the eth1 i want to use
* "offered IP-Adress for eth1"
* "offered DNS-Servers"
* "offered Default Route"
View 1 Replies
View Related
Apr 7, 2010
I am contemplating the use of DHCP options as a way of passing host-specific information to hosts that are booting disklessly from a network server. My intention is to have the DHCP client request certain options, and use the reply to configure the diskless hosts accordingly. The theory and rules behind all of this seem well documented on web sites such as die.net. However, the practical application of the protocol seems to be a lot less clear. What I am looking for is an explanation of what (existing, I hope) tool(s) are used, and how they are applied so that I can grab information from the DHCP server, and use it in userspace scripts or other programs. Specifically, my intention is to use a locally defined option that would give a host-specific directory name or filesystem to use by the diskless host to obtain host-specific applications and configuration data.
So far, all of the DHCP client documentation I've found relates to the usual function of assigning IPs, etc. I've looked at dhclient-script on a Redhat system and can't figure out the relationship between it and the dhclient program. Clearly, the script is invoked somehow by dhclient, but I don't understand where the transfer of data received from the server gets into the script. Does dhclient just create a list of exported environment variables the child script then gets access too? What are the rules for how variables are created and what variables are created?
View 7 Replies
View Related
Aug 4, 2010
I have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices.My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server.One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network.
View 4 Replies
View Related
Jul 23, 2009
I have Centos 5 installed on a PC in the local network. I have installed the RPM dhcpv6-client-1.0.10-16.el5.i386.rpm on this PC to configure it as DHCP V6 client. The RPM was installed successfully, and I have done modifications to the following files:
1. /etc/sysconfig/network, set the networking to yes.
2. /etc/sysconfig/network-scripts/ifcfg-eth1 set the BOOTPROTO=DHCP.
Now the problem is when I start the client on this pc as dhclient, it throws the following errors, and logs out after some time. All the network configurations were lost and the PC gets disconnected from the network.
[root@ServerB]# dhclient
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
[Code]...
View 4 Replies
View Related
Nov 24, 2010
I have a Lan with 100 computers with microsoft windows xp and vista on it, and I need to build a CentOS Primary domain control- PDC. So I am building a PDC , with samba 3.x +Ldap ( Light Directory Acess Protocol), with static eth0 and DHCP-server( Dynamic Host Control Protocol) on eth1.
Eth0 : 192.168.1.3
Eth1 : 192.168.1.5
Here is the configurations files:
== BEGIN uname -rmi ==
2.6.18-194.17.4.el5 x86_64 x86_64
== END uname -rmi ==
== BEGIN rpm -q centos-release ==
centos-release-5-5.el5.centos
== END rpm -q centos-release ==
== BEGIN cat /etc/redhat-release ==
CentOS release 5.5 (Final)
== END cat /etc/redhat-release ==
== BEGIN getenforce ==
Permissive
== END getenforce ==
== BEGIN rpm -q yum rpm python ==
yum-3.2.22-26.el5.centos
rpm-4.4.2.3-20.el5_5.1
python-2.4.3-27.el5
== END rpm -q yum rpm python ==
== BEGIN ifconfig -a == .....
View 3 Replies
View Related
Oct 31, 2010
I have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices. My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server. One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network. However I have no idea how this could be setup.
View 2 Replies
View Related
May 28, 2011
I installed the latest Debian on a computer to make a backup appliance. No GUI.When the computer starts, everything is okay. The DHCP client is running, the network interface have an address, fine.If I do a /etc/init.d/network restart (or stop + start), no more DHCP client. t is stopped when the interface is down. When the interface is up, I have to start it manually.1 - is it normal ?2 - isn't ifup's job to launch the dhcp client ?3 - can /etc/network/if-up.d be the right place to resolve this ?
View 4 Replies
View Related
Nov 1, 2010
i hav configure dhcp server. but the ip is not getting assigned to my client machine.
View 3 Replies
View Related
Aug 23, 2010
I'm new to CentOS and has recently use it.
I'm looking for a way to configure DHCP client so it would dynamically set the hostname and register itself to a DNS server. I don't have access to the DNS server.
View 6 Replies
View Related
Feb 21, 2011
I'm looking for a method to assign a default gateway via dhcp randomly depending on ether the last char of the mac being odd or even, or the time the user connects. Is there a good reliable way to achieve this?
View 2 Replies
View Related
Jun 16, 2011
I have installed dhcp-server on ubuntu. And server is providing ip address to clients (Window machines) but not default-gateway but I have another network in my network and same configuration and same dhcp-server provides every information.
View 5 Replies
View Related
Jun 29, 2011
I need to place an Ubuntu machine on a network where I have a DHCP server which does not configure the Degault Gateway parameter (we don't want ordinary users to browse the internet). Is it possible to leave the machine using DHCP and define the Default Gateway manually (as in Windows XP i.e.)? How?
View 1 Replies
View Related
Jan 6, 2011
trying to create a "local network" by directly connecting an IBM Thinkpad with Debian Linux installed on it to an Alix computer running Voyager Linux. I'm following a "how to" I found to create a music server, hence the requirement. My issue is I can't get a static IP address to be configured on the Debian machine.I've trawled the net and have found the instructions about editing the /etc/network/interfaces and have tried to do this. First I tried to get DHCP working so I could connect the Debian machine to the net and this proved successful. I edited the interfaces file to look as follows:
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Then I tried adding a static IP address to the machine. As this is a network purely between two machines I made up the IP addres and used 192.168.0.1 and used a NetMask calculator to give me a NetMask of 255.255.255.254 (I told the calculator there would be 2 machines on the network). I then edited the interfaces file as follows:
# The loopback network interface
auto lo
iface lo inet loopback
[code]....
I re-booted the machine (ifdown eth0 followed by ifup eth0 keeps saying that eth0 hasn't been configured - a problem there that I don't understand), but during boot up time it failed to assign the Static IP address to eth0 and made me go into SU mode. To fix it I simply replaced the interface file with the static IP inputs with the file that had the DHCP entries (I'd made a copy of the DHCP file), and re-started the machine. Everthing came up fine. So the first question is how do I get a static IP address to be assigned to eth0 such that whenever I shut down and restart the machine the static IP address is always loaded?
The second question is around creating the network via the cross over cable. From what I've found via Google, all I should have to do is create a static IP address on the Debian machine and a static IP address on the Voyager machine. Once they're connected by the cross over cable they should see each other. Is that correct, or do I have to do anything else?
View 2 Replies
View Related
Jan 16, 2010
Can't change from dhcp to static ip address.I've installed Oracle's version of Linux Redhat 5, but I'm having no success changing from dhcp to a static IP address. My machine is plugged directly into a Belkin router which has the IP address: 192.168.2.1.If I use the gui: /usr/bin/system-config-network and set the network device to dhcp,it works fine. But if I set the IP address manually, I get no internet traffic, and if I ping an internet website, "network unreachable".The installation instructions for Oracle say that they want a full domainname. I've tried gateway.2wire.net. This worked in the last place I did a successful installation.It was the address of my ATT router. If I plunked that into a browser, I got the router configuration.
View 7 Replies
View Related
Feb 3, 2011
For some time, I've had DSL and used Fixed-IP internally. I moved, no DSL, no cable, no nuthin' but dial-up and flaky cell-phone modem. Ugh. Along comes American Recovery and Reinvestment Act providing funding for making high-speed internet available to those of us in the boonies; no up-front or monthly equipment costs, affordable monthly changes, whoo-boy, that's for me. Installed, works, bada-boom, bada bing.
I have three servers, a network printer and a large format pen plotter that have all happily played together with fixed-IP for years connected via a Linksys BEFSR41 router and CAT-5 or CAT-6 cables and I do not want to screw around with DHCP (and the printer and plotter don't particularly like DHCP in any event). The servers talk to each other with SSH, their names and addresses are in /etc/host and all has been well with the world. DSL connected with PPPoE, HughesNet connects "automatically" to the modem with DHCP. I also have a switch available for additional LAN stuff as needed. Of course I had to do a hard reset of the router when setting up HugheNet (right back to infancy).
I do need to have DHCP enabled in the router for the limited occasions that a Winders thing gets connected to it (not my box, I don't mess with it).
Now, the actual question: is there any setting in the router that will enable fixed-IP, ignore DHCP leases unless the server is running DHCP (like a Winders box) and not bother me with screwy lease addresses that override my fixed-IP addresses? My servers are running Slackware 13.1, all configured with fixed-IP, all configured to "know" each other via /etc/hosts, /etc/resolv.conf has DNS Server address in it (and DHCP is not permitted to overwrite /etc/resolv.conf.
View 4 Replies
View Related
Nov 14, 2010
Does anyone know an easy way to do this? I can't seem to figure it out.
View 6 Replies
View Related
Jul 5, 2011
I used to connect to the internet via a Linksys router using the following terminal commands (Network Manager has never worked for me on any Ubuntu install):
Code:
sudo ifconfig wlan0 down
sudo dhclient -r wlan0
sudo ifconfig wlan0 up
[code]....
However, I recently changed the old modem + router for a new wireless modem (a Thomson TG585v8 ). Now, the result of that last command is this:
Code:
amosupremo@amosupremo:~$ sudo dhclient wlan0
Internet Systems Consortium DHCP Client V3.1.3
[code]....
No working leases in persistent database-sleeping. I've tried to connect in Natty(both Ubuntu and Kubuntu) and it's not working either.I also purged Network Manager and installed wicd and I managed to get an intermittent, slow connection.
1 ) Machine Brand and Model (PC/Laptop): No brand. I built it with the following specs:
AMD Athlon II X4 2.6GHz
2 HD: 100GB Sata (Ubuntu and XP64 install) / 80GB IDE (XP)
4GB RAM
Gigabyte Motherboard
2 ) Wireless Brand, Model and Wireless Chipset:
Code:
amosupremo@amosupremo:~$ lsusb
Bus 002 Device 005: ID 0ace:1201 ZyDAS 802.11b
Bus 002 Device 004: ID 049f:000e Compaq Computer Corp. Internet Keyboard
[code]....
3 ) check interface:
Code:
amosupremo@amosupremo:~$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:02:72:04:d0:04
[code]...
I am also attaching the wicd log. It contains a session where I got the intermittent connection. I stopped that connection and restarted it (with the same results) two times.
View 9 Replies
View Related
Dec 26, 2009
For changing the the mac address of my lan card( eth0) in linux fedora 9(solphur) i used this command
And i could change my mac address successfully but now i couldn't connect to my network via a dhcp server ( in configuration section of my router im going to check my new mac address (because i want to spoof) ,how i can do that?
View 7 Replies
View Related
Sep 8, 2010
I need a way to find out what my dhcp vendor-class or vendor string is on a device. I want to take a client and based on the vendor string (if I can get what that string is) set up a pool for it.
View 1 Replies
View Related
Jun 20, 2015
So far I've tried to add a number to 'GRUB_DEFAULT=', but it wouldn't want to boot in anything other than Debian or Windows, same with StartUp-Manager...
I currently have the liquorix kernels installed, but I can't get to use them as the standard Debian kernel is always picked. So is there any way to change this behaviour?
View 14 Replies
View Related
Jan 9, 2011
I am currently using Debian Lenny and am having problems with my pptp vpn client. I can use the following software for as long as I like without my pptp vpn connection dropping out:
(1) iceweasel
(2) icedove
(3) gtk-gnutella
If a use a bittorrent client, however, my pptp vpn connection drops out within a few minutes. I have tried these bittorrent clients: transmission, deluge, tixati. Enabling or disabling the firewall makes no difference.I have searched pptpclient.sourceforge.net and Debian User Forums but have not been able to find any suggestions on settings to change in a bittorrent client.
View 1 Replies
View Related
Jul 22, 2011
I'm installing debian squeeze and and I've got 2 hdd (sda,sdb), but I want to install it on sdb. When i get to the "Install the grub boot loader on the hard disk" it automatically installs it on /dev/sda (and I get an error), I want to install it on /dev/sdb... Is it possible.
View 12 Replies
View Related
Apr 10, 2010
i have created a wordpress user with a symbolic link from his home (/home/wordpress) to /usr/share/wordpress but when wordpress ftps to wordpress home dir it does not follow the sym-link. is there a way to set default ftp dir for the wordpress user to /usr/share/wordpress rather than /home/wordpress?
View 6 Replies
View Related
Sep 13, 2010
how to change the default language of gnome.when i boot into x-window ,i can select the language ,But ,if boot into console ,via "startx" to run the w-window ,the language is english,i can't select .my native language is Chinese.i set the right locale .I also searched for it .Someone told to add "export LANG=zh_CN.UTF-8"to $HOME/.xinitrc.there's no this file in my home dicretion.I create it .after that,when i run "startx",it's failed to start x-window.the ~/.xsession-error file shows
Initializing gnome-mount extension
seahorse nautilus module initialized
Unrecognized number formatter: cjk-chinese-simp
Unrecognized number formatter: cjk-chinese-simp
[code]...
how can i change the default language ,i have to .because if gnome is in English ,i can't run the Chines input method.
View 1 Replies
View Related
May 13, 2015
I have a problem on a fresh install of Jessie with KDE. I have three soundcards. In Wheezy I used pavucontrol once for each application to change the sink from the internal to the external soundcard, and that setting would stick each time I rebooted the system (audio would go on the external soundcard). Now each time I reboot the audio gets routed to the internal soundcard and I have to use pavucontrol each time to route the audio back to the external one. URL...
putting this line in /etc/pulse/default.pa
set-default-sink alsa_output.usb-E-MU_Systems__Inc._E-MU_0404___USB_E-MU-0E-3F04-07D80A14-027A8-STATION_01-00-USB.analog-stereo
as well as this one, and issuing:
pacmd set-default-sink alsa_output.usb-E-MU_Systems__Inc._E-MU_0404___USB_E-MU-0E-3F04-07D80A14-027A8-STATION_01-00-USB.analog-stereo
and none of them has worked. I don't know if it's a related issue, but the settings I choose in the for Phonon in the KDE multimedia settings don't stick either. I select the external soundcard as default device and upon reboot the internal one is on top on the preferences list.
View 2 Replies
View Related
Aug 24, 2010
I recently bought a logitech headset which is working very nice, the thing is that I cannot make it my default device when I plug it in. I edited /etc/modprobe.d/alsa-base.conf to make snd-usb-audio the default card but it only works when the computer is turned on with the headset plugged in. A workaround is to plug it and then "alsa force-reload" but I find it very ugly plus it kills all apps using audio and leaves the volume indicator unstable.
View 1 Replies
View Related