I've installed and set up dhcp-3.0.4 as a client on my mates PC.  My mates PC 
is connected to an ADSL router whitch has its own DHCP server.  

Without using iptables (firewall),  would the following configurations be any 
good?  And will it enable him to have access to the net?:-

I just want to make sure this will work, before I go over and set it up for 
him.

 
---------------------------------------
"/etc/sysconfig/network-devices/ifconfig.eth0/dhclient"

ONBOOT="yes"
SERVICE="dhclient"
DHCP_START="-q"
DHCP_STOP="-q -r"
DEVICE="eth0"
MACADDR="00:0f:ea:e0:68:0a"  # This is the clients eth0 MAC Address
DHCP_HOSTNAME="linux23dragon"  #This is the clients Host name

# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
PRINTIP="no"

# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
PRINTALL="no"

-------------------------------------------

"/etc/dhclient.conf"

interface "eth0"{
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
}

---------------------------------------------

"/etc/hosts"

127.0.0.1 localhost
192.168.1.1 linux23dragon.example.org linux23dragon

-----------------------------------------------

"/etc/hosts.conf"

order hosts,bind

-----------------------

"/etc/nsswitch.conf"

passwd: files
group: files
shadow: files

hosts: files dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

-------------------------

"/etc/resolv.conf"

# no entry placed in this file #

-------------------------

"/etc/dhclient.conf"

interface "eth0"{
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
}

---------------------------

Man I wish I had my own ADSL 5 port router to test this out on :(

Regards
Dave

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to