What files are associated with DHCP (ubuntu)
I got a rootfs built manually (basically copying files instead of debootstrap) for UML.
Static ip works, but when i try to use DHCP ip, no ip address acquired.
So what files should i manually copy over to set up DHCP ?
guess i need /etc/dhcp3, /etc/network
what else pls ?
---------- Post added 11-26-11 at 09:45 AM ----------
# This is a sample configuration file for dhclient. See dhclient.conf's
grep: ./blkid.tab: No such file or directory
what are these apparmor files pls ?
It isn't clear whether you're trying to set up a dhcp server, dhcp client, or both. On the server host, monitor /var/log/messages, using 'tail -f'. See if the requests from dhcp clients are arriving. You can exercise the server by running the program 'dhclient', on the client. Do you believe you already have a working dhcp server on your LAN?
'apparmor' is some kind of system hardening scheme used by Suse, maybe others.
It is hard to guide you, as there isn't really a completely standard system for configuration of dhcp clients. I suggest using ISC dhcp, and follow the guidelines in their documentation pages. In systems where ISC DHCP is installed by package installers, there is usually a static component in the /sbin tree, including at least the dhclient binary, and a script that gets called by dhclient whenever it executes. In the /etc tree, there is a system of scripts that are called under different conditions related to the state of a dhclient transaction with the server. Often, there is a script there with a variable 'DEBUG', which you can edit to be 'True', and thus cause some log files to be left behind for inspection. This can probably be found in a directory tree with the words 'enter-hooks' &/or 'exit-hooks' in the directory name.
If it is your intention to simply copy files from some existing host, it would be helpful to describe the nature of that host OS.
Thanks for the reply 1st. I'll read it through.
My case is like this, we need a ubuntu UML.
So we made the UML rootfs by copying files (/etc, /sbin, ...) from a ubuntu desktop.
This should be the dhcp client i guess. The desktop can get dhcp ip from server successfully.
(debootstrap didn't work well from some reason.)
Sorry, still confused. You say 'The desktop can get dhcp ip from server successfully', so what is the problem? What is it that does not work. Please be clear about which part(s) of the system you are trying to configure. What is UML? Is there something special about it with respect to DHCP?
sorry i didn't describe clearly, check UML here,
it's a virtual machine, has its kernel and file systems.
So i tried to match the kernel with my linux desktop,
then tried to match the file system with linux desktop.
But UML has a size limit so i can only copy the minum set of files, as i need to run many instances of UＭＬ．
So now i need to figure out what files to copy for dhcp so i can just copy them only.
Ｈｏｐｅ ｔｈｉｓ ｅｘｐｌａｉｎｓ．
|All times are GMT -5. The time now is 07:19 PM.|