Using Trixbox For DHCP

From Asterisk Australia

Using Trixbox For DHCP
Jump to: navigation, search

Contents

Overview

A quick guide on how to setup trixbox to be a valid DHCP server for your network.

  • You can only have 1 dhcp server on a network, so if you are setting up Trixbox for dhcp, you will need to disable dhcp on your router.

Notes

  • Note down details before starting.
 Default Gateway ________________ (This will be the router IP address)
 Start IP Address ________________ (The first IP address you want the DHCP server to assign)
 End IP Address   _________________ (The last IP address you want the DHCP server to assign)
 DNS Server 1 ____________ (Your provider DNS Server)
 DNS Server 2 ____________(A second DNS Server from your provider)
 Domain Name ____________(not super important, use internal.local if you are not sure. hostnames will be prepended to the domain.)

Setup Trixbox DHCP

  • Simple! at the command prompt of your Trixbox server type:
 setup-dhcp
  • Edit the dhcp config file with your network information.
  • example of first.three.ip is 192.168.1.0.
 nano /etc/dhcpd.conf (this will open a file editor)
 # DCHP_Server
 subnet first.three.ip.0 netmask 255.255.255.0 {
 option routers ip.address.of.defaultgateway;
 option subnet-mask 255.255.255.0;
 option nis-domain "internal.mydomain";
 option domain-name "internal.mydomain.com";
 option domain-name-servers 10.10.38.3;
 option time-offset 36000; # GMT+10  Standard Time
 option ntp-servers ip.of.trixbox;
 option tftp-server-name "ip.of.trixbox.server";
 default-lease-time 43200;
 max-lease-time 86400;
 range dynamic-bootp start.ip.address end.ip.address;
 }
 Restart DHCP server /etc/init.d/dhcpd restart.
  • Congratulations, Finished!. Your phones and computers should all receive he DHCP information from the Trixbox server.

Wierd DHCP happenings?

Use DHCP explorer to find extra dhcp extra DHCP servers on your network. It will also tell you information dhcp is sending. Use this only if you are having problems.

What is DHCP ?

  • DHCP is Dynamic Host Configuration Protocol.
  • Automatically assigns network information to devices, saving time in network setup.
  • Allows easy movement of devices between networks.
Personal tools