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

Main Menu

Fixed IP

Started by brononius, July 21, 2011, 10:51:18 AM

Previous topic - Next topic

brononius

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
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
/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?


Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

That's the reason for dhcp-extra.conf :)
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

brononius

Quote from: posde on July 21, 2011, 11:07:26 AM
That's the reason for dhcp-extra.conf :)

Always nice to have confirmation. ;)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

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.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]