Ubuntu Servers :: DHCP And DHCP Client Simultaneously?

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


ADVERTISEMENT

Ubuntu Servers :: DHCP Server And DHCP Client Simultaneously?

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

Networking :: Configure A (openSUSE) Client To Dhcp To EBox DHCP Server - Lease An IP Address

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

Ubuntu Networking :: Static IP And DHCP Simultaneously?

Jan 5, 2011

Where I work we use almost exclusively Ubuntu 8.04 in command-line only form. I need to know if it is possible to configure one of these devices to use DHCP and a given Static IP at the same time. I know how to do one, or the other, but not both. #1. Is this possible?
#2. If so, how?P.S. Yes, I did look around before I asked this, but I could not find anything. Maybe I suck at searching?

View 4 Replies View Related

Ubuntu Networking :: DHCP Server No Longer Responses To DHCP Requests - Can't Ping Gateway

Oct 22, 2010

Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.

Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address. When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces

Code:

auto lo
iface lo inet loopback
auto vlan100
iface vlan100 inet static

[code]....

why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.

View 6 Replies View Related

Ubuntu Networking :: DHCP Server No Longer Responds To DHCP Requests - Can't Ping Gateway

Jul 1, 2010

Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.

Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address.

When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces

Code:

auto lo
iface lo inet loopback
auto vlan100

[code]....

why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.

View 2 Replies View Related

Ubuntu Networking :: If DHCP Not Available - Fallback And Start DHCP Server?

Mar 8, 2010

Currently I have my eth0 interface getting a DHCP address but at times the DHCP server will not be reachable. Sooo what I would like my server to do is if it cannot find a DHCP server assign a static address to eth0. Then start the DHCP service so it can then dish out some addresses.How can I do this? Surely it is possible

View 2 Replies View Related

OpenSUSE Install :: PXE / Dhcp / 11.2 - Preserve Dhcp Lease On Reinit Of Driver?

Feb 8, 2010

first: PXE flawless bind to dhcp address but put next binding state to free second: when installer calls init script to reinit ethernet driver (e1000 (vmware)) binding fails 11.2 opensuse fail to reinit dhcp with log entry "no free leases" third: when manual set network install works how to preserve dhcp lease on reinit of driver?

View 1 Replies View Related

General :: How To Configure Dhcp Client

Aug 13, 2010

I'm trying to configure in fedora 13 a dhcp client that would request IP address on my finished DHCP test server.

I've already configured dhcp on eth0 on the client machine,

here is the configuration on my DHCP test server

default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
authoritative;
option domain-name "sample.testnet.com";

[Code]....

View 7 Replies View Related

Ubuntu :: Communication Between Client And Server When DHCP Is Enabled?

Sep 28, 2010

I have an embedded device which acts as a client, and a server at office. The IP address of the client is allocated by DHCP, so its IP address is actually variable. I would like to know what is the simpliest way to maintain the communication between client and server when DHCP is enabled. I once used socket many years ago to communicate between the client and the server. If I remember it right, I actually bypassed the dynamic IP issues by using the computer name to replace the IP address. Even the client is not at the same local network as the server, the scheme still worked. Correct me if my memory cheated me. if socket is still the best solution for this kind of application involving DHCP? I also heard from someone that it is necessary to implement multicast discovery protocols named BONJOUR, but I don't think it is necessary

View 2 Replies View Related

Ubuntu Networking :: Change The Default Dhcp Client

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

Networking :: Does Client Receive DHCP Options?

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

General :: BIOS Bug - No DHCP Client Installed

Oct 27, 2010

I am trying to install ununtu 10.04 but it fails every time with a message which flashes on and off with a message - mp bios bug no dhcp client installed at least I think that is what it says, it is on and off so fast. I have used Ubuntu for around three months but I also have to use windows for my work and this first started when I upgraded to win 7 and the pc gradually slowed down and became impossible to use. It also refuses to install. I suspect that I probably picked up a bug during installation of win 7 and new memory. I am having to type this on my wife's laptop.

View 5 Replies View Related

Red Hat :: Configure DHCP Client To Register Itself To DNS Server?

Aug 23, 2010

I'm a newbie to Linux and need some help in DHCP client configuration.

I'm trying to find a way to set hostname at the start up and get the DHCP client to register itself after it received an IP address.

View 2 Replies View Related

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 View Related

Networking :: Notification From DHCP Client On Lease Change?

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

General :: Assign DHCP IP For Client For 5 Interfaces At One Shot?

May 11, 2010

I have a RHEL Machine. All I have is 5 Ethernet cards.I want all of them to be assigned IP through DHCP while I boot my system.

View 4 Replies View Related

Red Hat :: Disable DHCP Client Requests On Rhel 5.4 64bit?

Jan 28, 2010

i want to disable all DHCP request, can i turn off the client that if a MAC address changes a dhcp request is not automatically made?reason for this: I have HP blade running with an Intel NC260M mezzanine card running with virtual connect. I have experienced problems with firmware levels with this card where the virtual connect mac address is ignored and the real MAC displayed. As we are using bonds on the servers and have 6 NICs installed we have to tie down the MAC address to a bond. A blade was replaced today without the firmware update and the real MAC appeared, a dhcp request was made and my-eth[2-3] and resolv.conf files were over-written by the dhcp supplied

View 3 Replies View Related

CentOS 5 Networking :: Unable To Start DHCP Client?

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

CentOS 5 Networking :: Cannot Ping From DHCP Client On Eth1

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

OpenSUSE Network :: Samba Config For DHCP Client Laptop?

Jan 11, 2010

I'll try not to be too wordy. Want to get my openSUSE 11.2 (fresh install) laptop to see my network shares ...not to be a server or share any files. I've looked at 50 websites and everything seems to be "server" and "share" oriented. Maybe I (newb) am confused by the terminology...

I have a router that provides DHCP. My LAN PC's consist of a Vista laptop, an XP DAW, and a Kubuntu file server. Somehow I got Kubuntu configured properly, all of the Windows machines can access it and vice-versa. The Kubuntu smb.conf does not work on this laptop, and it seems overkill -no shares needed here. And yes, I get DHCP and interweb on the laptop -posted this with it.

All I want is access to my (other) network drives from this (openSUSE 11.2) laptop. Not a server, not to share. This is easy... right? It's driving me nuts Is there a Samba configuration that will let me jump onto networks and surf Windows/Samba shares like any old Windoze box browsing Network Neighborhood? Do I have to be a Samba guru?

View 7 Replies View Related

OpenSUSE Network :: Dhcp Client Does Not Receive The Dns Server Address

May 18, 2010

I have installed a working DNS server on my home network. I have an unique server, devoted to dns, gateway, storage which runs opensuse 11.0 (I known that it is rather old). Two new clients require DHCP. I have installed, using yast, a very simple DHCP server, according to the following config:

option domain-name "XXX.XXX";
option domain-name-servers 192.168.0.1;
option routers 192.168.0.1;

[code]...

(I have tried to add "ddns-update-style none", and to remove the ntp-servers option, since my server is not a time server, without success). Unfortunately, even if the client (a mac running OSX 10.4) receives a right IP and gateway address, it displays neither dns server address nor default domain name. The same mac, on my office network (not managed by me), receives everything.

View 5 Replies View Related

Networking :: Configure Dhcp Server - Ip Is Not Getting Assigned To Client Machine

Nov 1, 2010

i hav configure dhcp server. but the ip is not getting assigned to my client machine.

View 3 Replies View Related

CentOS 5 Networking :: Configure DHCP Client To Register Itself To DNS Server?

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

Debian Configuration :: DHCP Client Don't Start With /etc/init.d/network Restart?

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

OpenSUSE Network :: Prevent Dhcp Client From Setting Default Route

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

Ubuntu Servers :: Windows DHCP Server - Multiple Boot Servers ?

Apr 1, 2011

I'm curious if anybody can shed some light for me in this department. We're in a large environment with a Windows DHCP Server. We have been tinkering with LTSP on Edubuntu as thin and fat clients. It works great, but right now we just have 1 server handling the lab, which works fine unless we want to expand, which may be very possible.

These are the instructions I received:
Login to your windows server and load the DHCP configuration screen
Create a DHCP reservation for the MAC address you obtained
Add the configuration options below to enable the machine to boot from the LTSP server
017 Root Path: /opt/ltsp/i386
066 Boot Server Host Name: <ip address>
067 Bootfile Name: ltsp/arch/pxelinux.0 # Specify CPU architecture in place of 'arch', for instance 'i386'

From: [url]

I'm curious, what if I want to have multiple Ubuntu servers on the network that I want to have bootable? For example, let's say I have 3 labs, and 3 servers. Server A to Lab A, Server B to Lab B, and Server C to Lab C. I want all C's computers to boot to C, and B to B, A to A, etc.

1 - How would I add multiple entries on the Windows DHCP Server to allow all 3 (A B C) servers to boot?

2 - How would I be able to isolate the clients so ONLY Lab A clients boot to Server A, etc?

View 7 Replies View Related

Fedora Servers :: Build A F12 Cluster To Run DHCP On Top Of Two Servers Using Pacemaker And Drbd?

Apr 28, 2010

I'm trying to build a Fedora 12 cluster to run DHCP on top of two servers using pacemaker and drbd. The pacemaker runs great but i'm having the hardest time getting DRBD installed.

My kernel version is 2.6.32.11-99.fc12.i686.PAE First i tried to [root@dhcp-primary drbd]#yum install drbd this doesn't give me everything because apparently the kernel module for DRBD must be built from source. so i unpacked drbd-8.3.6.tar.gz and tried :

[Code]...

I'm not very experienced in compiling from source i'd love to make an rpm for this but after scouring the web and trying different install methods, I am still at a loss.

View 2 Replies View Related

Ubuntu Servers :: Logwatch On 10.04 Dhcp?

Jun 16, 2010

i was wondering if there is anybody out there who has logwatch running and configured to just grab dhcp leases only

View 3 Replies View Related

Ubuntu Servers :: Unable To Get IP From The Dhcp?

May 1, 2011

I am setting up dhcp server for my public library and need to divide clients into a number of pools on the same network. The different ranges will be for different filtering requirements via squid/dansguard proxy. I have inhouse clients: staff, adult patron, and child patron, that have different filtering requirements and wireless guests that I want to shorter lease times to handle the rapid turnover rate. Trying to understand the terse manual, you assign pools via allow/deny members of classes, but classes are assigned by matching on mac address or vendor ids. Unfortunately as a poor rural library we have a hodge-podge of hardware with no matchable pattern. So I can solve the inhouse clients by using fixed-address, and remove them from the dynamic pool. Now the dhcp server would be serving only the short term wireless guests from the pool.

A common problem at libraries, you always get a few that are compelled to misbehave and break the libraries TOS. In the past the librarians would kick the offenders out of the library only to have them link in from the step or parking lot. Since I have their mac address in their initial lease I would like to prevent them from reestablishing a connection when they are banned.

My thinking is this; the library's computers are static and not part of the pool, the wireless clients would be unknown-clients, so set the pool to allow only unknown-clients, and for the "bad-boys" add their hosts in a group directive would make them "known" and therefore unable to get a IP from the dhcp server.

group {
host banned1 { hardware ethernet 00:00:00:00:00:01; }
host banned2 { hardware ethernet 00:00:00:95:a6:c1; }
host banned3 { hardware ethernet 0c:f1:b6:fe:00:01; }
}

[Code]....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved