• 13

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

How To Use host tag In dhcp.conf

My question is simple. I tried to assign a fixed IP address to wlan0 connected users using dhcp.conf. From configuration file:

host clientA{
  hardware ethernet 00:80:c6:f6:72:00;

My confusion is clientA. What can I use instead of that? If that is a hostname, where do I find it? I'm using Ubuntu 14.04 LTS.

Depending on how the client is configured, it may or may not send the hostname when it makes a DHCP request. But, as the example shows, you can access it via the MAC address. On my own home set up, I use the hostname field in the dhcpd.conf so I know which machine it is (livingroom-tv, my-desktop, wifes-iphone, etc) and depend on the MAC address hardware ethernet option to determine which machine is actually getting that particular IP. DNS is handled separately with a fake domain (my.house) because only a few machines actually need DNS entries (for me/my convenience) and is not integrated in any way with DHCP. Almost all of my static-dynamic MAC address based IPs are given out to control access - I have a VERY short lease time, and when the kids need to be blocked from access, I simply change their default gateway or point them at a second DNS server that restricts where they can go/what they can do (ie, on their phone facebook.com may say "you should be doing homework!" :) )

  • 0
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags