LinuxMCE Forums
May 24, 2013, 05:07:25 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Fixed IP  (Read 388 times)
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« on: July 21, 2011, 09:51:18 am »

Hey,

All my network devices use dhcp.

Nice because this way i can change whatever i want (reason of dhcp).
Not nice because i don't find the option in linuxmce to assign fix ip's.

Several things in my network must be know by their ip to interconnect internally (fe printers, workstations with shares, IP-router of KNX...)
I found out that i can add fixed ip's in /etc/dhcp3/dhcpd-extra.conf, and it works (yeahhh).

more dhcpd-extra.conf
Code:
host hostname.mydomain.net {
  hardware ethernet 00:11:22:33:44:55;
  fixed-address 192.168.111.2;
}

And then a restart of the dhcp server
Code:
/etc/init.d/dhcp3-server restart



Works great, but now my question, is this the way to do it? Or will some things not work as supposed?


Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
posde
Administrator
LinuxMCE God
*****
Posts: 2621


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #1 on: July 21, 2011, 10:07:26 am »

That's the reason for dhcp-extra.conf Smiley
Logged

brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« Reply #2 on: July 21, 2011, 10:10:43 am »

That's the reason for dhcp-extra.conf Smiley

Always nice to have confirmation. Wink
Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
posde
Administrator
LinuxMCE God
*****
Posts: 2621


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #3 on: July 21, 2011, 10:22:51 am »

Sometimes it makes sense to add the devices in question to the database. Especially as you have to manually make sure that IP addresses in the database and IP addresses you manually put into the extra file do not collide.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!