Difference between revisions of "Dhcpd"

From ArchWiki
Jump to: navigation, search
(Created page with "Category:HOWTOs (English) dhcpd is the [http://www.isc.org/software/dhcp/documentation Internet Systems Consortium] DHCP Server == Installation == # pacman -S dhcpd == Confi...")
 
(Directly connecting another computer)
Line 6: Line 6:
 
=== Directly connecting another computer ===
 
=== Directly connecting another computer ===
 
{{Note|The process described is untested}}
 
{{Note|The process described is untested}}
If you are directly connecting your Arch computer to another host (e.g. over ethernet), and want the other computer to have its IP automatically assigned:
+
Read if you are directly connecting your Arch computer to another host (e.g. over ethernet), and want the other computer to have its IP automatically assigned.
 +
 
 
Assign an IPv4 address to the interface you want to use (usually {{Codeline|eth0}}). The first 3 bytes of this address cannot be exactly the same as those of another interface.
 
Assign an IPv4 address to the interface you want to use (usually {{Codeline|eth0}}). The first 3 bytes of this address cannot be exactly the same as those of another interface.
 
  # ifconfig eth0 139.96.30.100 # arbitrary address
 
  # ifconfig eth0 139.96.30.100 # arbitrary address
Line 18: Line 19:
 
  # /etc/rc.d/
 
  # /etc/rc.d/
 
Now, any computer you connect over ethernet will be assigned an IPv4 address (139.96.30.200 in this example).
 
Now, any computer you connect over ethernet will be assigned an IPv4 address (139.96.30.200 in this example).
 +
 
== Notes ==
 
== Notes ==
 
You will see configuration files, etc. related to {{Codeline|dhcpcd}}. This is the DHCP client executable and has nothing to do with {{Codeline|dhcpd}}.
 
You will see configuration files, etc. related to {{Codeline|dhcpcd}}. This is the DHCP client executable and has nothing to do with {{Codeline|dhcpd}}.

Revision as of 02:46, 19 May 2011

dhcpd is the Internet Systems Consortium DHCP Server

Installation

# pacman -S dhcpd

Configuration

Directly connecting another computer

Note: The process described is untested

Read if you are directly connecting your Arch computer to another host (e.g. over ethernet), and want the other computer to have its IP automatically assigned.

Assign an IPv4 address to the interface you want to use (usually Template:Codeline). The first 3 bytes of this address cannot be exactly the same as those of another interface.

# ifconfig eth0 139.96.30.100 # arbitrary address

The default dhcpd.conf contains many uncommented examples, so relocate it

# mv /etc/dhcpd.conf /etc/dhcpd.conf.example

Edit Template:Filename to contain

subnet 139.96.30.0 netmask 255.255.255.0 {
 range 139.96.30.200 139.96.30.200;
}

Start the daemon

# /etc/rc.d/

Now, any computer you connect over ethernet will be assigned an IPv4 address (139.96.30.200 in this example).

Notes

You will see configuration files, etc. related to Template:Codeline. This is the DHCP client executable and has nothing to do with Template:Codeline.