Open main menu

OpenVZ Virtuozzo Containers Wiki β

DHCP

Revision as of 21:32, 31 May 2008 by Mrjcleaver (talk | contribs) (New page: Instructions largely borrowed from http://oob.freeshell.org/nzwireless/dhcpd.html <pre> </pre> == Sample DHCPD.conf <pre> # Sample /etc/dhcpd.conf # Set DHCPD to answer requests on the...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Instructions largely borrowed from http://oob.freeshell.org/nzwireless/dhcpd.html


== Sample DHCPD.conf

# Sample /etc/dhcpd.conf

# Set DHCPD to answer requests on the wireless interface

DHCPDARGS=wlan0;

# Set some defaults for lease time and DNS update method
ddns-update-style ad-hoc;
default-lease-time 600;
max-lease-time 7200;

# Set the subnet mask for the wireless IP network
option subnet-mask 255.255.255.0;

# Set the Broadcast address. This will be 10.x.x.255,
# the "x.x" will depend upon the network assigned to you by NZWireless.
option broadcast-address 10.1.2.255;

# Set the router address, this will be 10.x.x.1, the address
# of your wireless interface WLAN0
option routers 10.1.2.1;

# Set the Name Server address. This will be the same as your WLAN0 address
# because we intend to run DNS on this machine.
option domain-name-servers 10.1.2.1;

# Set the default domain name for clients on this network.
# i.e. the DNS domain assigned to you by your wireless administrator.
option domain-name "simon.akld.nzwireless.org";

# Allocate a network range for dynamic IP addresses to hand out to clients.
# Again, this range will be in 10.x.x.x, depending upon the network allocated
# to you by your wireless administrator.
subnet 10.1.2.0 netmask 255.255.255.0 {
    range 10.1.2.10 10.1.2.20;
}