Simple DHCPD Config

Discussion in 'Linux / Unix Discussion' started by Phoenix, May 7, 2005.

  1. Phoenix
    Honorary Member

    Phoenix 53656e696f7220 4d6f64

    5,749
    200
    246
    For those of you experimenting with linux, you may know that alot of its use lies in its networking components

    here is a quick simple config to get your box working as a DHCP server on your network, important options have comments


    Code:
    # DHCP Config for pheo.lan
    
    ### Global Options ###
    allow booting;
    allow bootp;
    authoritative;
    ddns-update-style none;
    
    option domain-name "pheo.lan"; # Specifies the domain suffix applied to clients
    option domain-name-servers 212.158.192.3, 212.158.192.2 ; # DNS Server assignment
    option routers 172.17.27.1 ; # Default gateway assignment
    
    ### Lease Options ###
    default-lease-time 600;
    max-lease-time 7200;
    
    ### Subnet Options ###
    subnet 172.17.27.0 netmask 255.255.255.0 {
            range 172.17.27.50 172.17.27.254; # Defines subnet with given range, options can also be assigned here
    }
    
    host enterprise { # Used for reserved hosts so they always get the same address
            hardware ethernet 00:00:00:00:00:00; # Use your own mac address nosey!
            fixed-address xxx.xxx.xxx.xxx; # User your own IP address nosey!
            option host-name "enterprise";
    }
    
     
    Certifications: MCSE, MCITP, VCP
    WIP: > 0

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.