www.linuxexpert.ro

Tutorials

  • Home
  • BGP Tutorials
    • Remove private AS
  • cPanel Tutorials
    • Install ImageMagick on cPanel
    • Install Softaculous
  • Linux Tutorials
    • Auto-reboot Linux after kernel panic
    • Building a firewall with Iptables
    • Change array RAID 1 disk order
    • Configure ntfs-3g on Linux Slackware
    • DHCP Option Codes
    • DansGuardian with Squid and ClamAV
    • Fetchmail for Gmail accounts
    • Install Zend & APC PHP Optimizers
    • Install Atheros AR242x PCI Express Adapter
    • Install awstats with DirectAdmin
    • Install DBD::mysql via CPAN shell
    • Install DjbDNS on Ubuntu
    • Installing fail2ban on Centos 5
    • Install GoDaddy SSL Certificate
    • Install i386 packages under x86_64
    • Install Linux via USB flashdrive
    • Install ModSecurity2 on Apache2.0.x
    • Install Nginx on CentOS
    • Install webalizer with ispconfig
    • Install intel A/B/G/N wireless on linux
    • Kernel Upgrade
    • Mobile phone access via bluetooth
    • Optimize MySQL
    • Optimize Qmail
    • Optimize server load
    • Optimize and Tune Apache for performance
    • Optimize and Tune Nginx for performance
    • Perfect Mailserver on Debian
    • Pidgin "Now Playing" Status Message
    • PHP hardening
    • PHP hardening with Suhosin
    • PHP5 Support allong with PHP4
    • Previewing your site before making DNS changes
    • Proxy Auto Configuration
    • PXE boot install rescue
    • Setup awstats on CentOS
    • Setup EC2 Amazon L2TP IPSec VPN
    • Setup email piping with Qmail
    • Setup Exim with DKIM
    • Setup Exim smart relay with cPanel
    • Setup OpenVPN
    • Setup postfix on nonstandard port
    • Setup SS5 Socks Proxy
    • Setup vsftp with no shell access
    • Sendmail smart relay with gmail auth
    • Squid proxy NCSA authentication
    • Tcpdump filters
    • Upgrade PHP to 5.3 in Plesk 10
    • Useful regular expressions
    • X with [SiS] 771/671 VGA controller
  • Joomla Tutorials
    • Hardening Joomla
    • Module Positions
    • Remove Joomla description meta tag
  • Looking Glasses
  • Optimize Firefox
  • Security
    • Crack WiFi WEP passwords
    • Defend against UDP isc.org DNS query DDOS
    • Detect DDoS attack
    • Remove malware from web sites
    • Sniff SSL passwords with ettercap
    • Snort2BGP
    • Track Hackers
    • What Is My IP
  • Troubleshooting
    • Grub error no such disk
    • named dumping master file: tmp-XXXXXXXXXX: open: permission denied
    • Nginx 413 Request Entity Too Large
    • SSH conection closed by remote host
    • Troubleshooting sis190.c
  • Unix Tutorials
    • FreeBSD reset root password
    • Installing snort on OpenBSD
    • Unix Toolbox
  • Virtualization Tutorials
    • Convert VirtualBox image to VMWare
    • VMware SNMP Enable
  • VoIP Tutorials
    • Install Elastix
    • Qos for Asterisk

Who's Online

We have 14 guests and no members online

Most Read

  • Setup SS5 Socks Proxy
  • Install webalizer with ispconfig
  • Sniff SSL passwords with ettercap
  • __404__
  • Optimize and Tune Apache for performance

Products and Services

  • Home
  • Linux Products and Services
  • Buy VPN Account
  • Privacy Policy for Linuxexpert
  • Remove malware

DHCP Option Codes

  • Print
  • Email
Details
Parent Category: Tutorials
Published: 11 December 2008
Hits: 11596

 

The Dynamic Host Configuration Protocol (DHCP) provides a framework for passing configuration information to hosts on a TCP/IP network. Configuration parameters and other control information are carried in tagged data items that are stored in the 'options' field of the DHCP message. The data items themselves are also called "options."

 

 

Here are most used DHCP options codes:

 

dhcp-option=1,255.255.255.248 # subnet mark
dhcp-option=2,+7200 # UTC +2:00
dhcp-option=3,172.16.1.1 # default g/w for LAN client
dhcp-option=4,172.16.1.1 #Set the Time Server Option
dhcp-option=5,172.16.0.3  #Set the DNS server for LAN clients
dhcp-option=6,172.16.0.2,193.226.128.1,193.226.128.129 #Set the DNS server for LAN clients
dhcp-option=7,172.16.0.3 # Set the SYSLOG server
dhcp-option=8,172.16.0.1,172.16.0.2 #Specifies a list of Quote of the Day servers available to the client. The servers SHOULD be listed in order of preference.
dhcp-option=9,172.16.0.1,172.16.0.2 #Specifies a list of LPR servers available to the client. The servers SHOULD be listed in order of preference.
dhcp-option=15,172.16.0.2 #Set the domain name that client should use when resolving hostnames via DNS
dhcp-option=16,172.16.0.2 #Set the IP address of the client's swap server.
dhcp-option=18,172.16.1.7 # BOOTP more info
dhcp-option=19,0 # Set option ip-forwarding off
dhcp-option=27,1 #Set the "all subnets are local" flag
dhcp-option=40,gigi #Set the NIS domain name to "gigi"
dhcp-option=42,172.16.0.2 # Set the NTP server
dhcp-option=44,172.16.0.2 # Set the WINS
dhcp-option=45,0.0.0.0 # Set the netbios datagram distribution server
dhcp-option=46,8 # Set the netbios node type
dhcp-option=66,172.16.0.2 # TFTP
dhcp-option=121,192.168.1.0/24,10.0.0.0/8,5.6.7.8 #Send RFC-3442 classless static routes (note the netmask encoding)
dhcp-option=128,e4:45:74:68:00:00 #Send the etherboot magic flag
dhcp-option=129,NIC=eepro100 #Send  etherboot options (a string)

 

Be aware that Windows hosts send first client-identifier while Linux hosts send the hardware-address. This is for cisco users who can configure in the dhcp pool hardware-address or client-identifier

Note:

We use Hosting and VPS Hosting, from: www.star-host.org

We like and trust them.

Good prices, high security.

fShare
Tweet