[opensuse] multiple fixed dhcp addresses
Hi, Im trying to give all of my hosts multiple fixed addresses, So if one host is (accidentily) repluged from one lan to another lan, i will still get predictable results. Avvording to the dhcpd.conf info that should be possible: "If it is desirable to be able to boot a DHCP or BOOTP client on more than one subnet with fixed addresses, more than one address may be specified in the fixed-address declaration, or more than one host statement may be specified matching the same client." So i tried at my 11.4 box multiple addresses in a single host declaration. The deaemon responds however with: dhcpd: /var/lib/dhcp//etc/dhcpd.conf line 18: Only one fixed address declaration per host. Any comment at the unexpected behaviour? (sure, i can put multiple host definitions, but it should work, not?) hw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, Pardon me for being a GUI person more than a text config file person. But have you tried the following? If you open YaST, select "Network Settings", in the "Overview" tab choose the appropriate NIC, then click "Edit", in the "Address" tab you have a box for "Additional addresses". Click "Add", and add as many as you like. Then select dynamic addressing by DHCP. Haro On 06/10/11 09:25, Hans Witvliet wrote:
Hi,
Im trying to give all of my hosts multiple fixed addresses, So if one host is (accidentily) repluged from one lan to another lan, i will still get predictable results.
Avvording to the dhcpd.conf info that should be possible:
"If it is desirable to be able to boot a DHCP or BOOTP client on more than one subnet with fixed addresses, more than one address may be specified in the fixed-address declaration, or more than one host statement may be specified matching the same client."
So i tried at my 11.4 box multiple addresses in a single host declaration. The deaemon responds however with:
dhcpd: /var/lib/dhcp//etc/dhcpd.conf line 18: Only one fixed address declaration per host.
Any comment at the unexpected behaviour? (sure, i can put multiple host definitions, but it should work, not?)
hw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/10/11 10:25, Hans Witvliet wrote:
Hi,
Im trying to give all of my hosts multiple fixed addresses, So if one host is (accidentily) repluged from one lan to another lan, i will still get predictable results.
Avvording to the dhcpd.conf info that should be possible:
"If it is desirable to be able to boot a DHCP or BOOTP client on more than one subnet with fixed addresses, more than one address may be specified in the fixed-address declaration, or more than one host statement may be specified matching the same client."
So i tried at my 11.4 box multiple addresses in a single host declaration. The deaemon responds however with:
dhcpd: /var/lib/dhcp//etc/dhcpd.conf line 18: Only one fixed address declaration per host.
Any comment at the unexpected behaviour? (sure, i can put multiple host definitions, but it should work, not?)
hw
On my system portable computers can be connected either by ethernet or wifi therefore the mac is different but I want the same IP so I have one dhcpd.conf entry as "portable1E" with its mac and another as "portable1R" with its mac but they both give out the same IP address /etc/hosts, I use dnsmasq, then has just "portable1: ipaddress". So however they are connected I can refer to them as "portable". DC -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 2011-10-06 at 13:13 +0200, Dave Cotton wrote:
On 06/10/11 10:25, Hans Witvliet wrote:
Hi,
Im trying to give all of my hosts multiple fixed addresses, So if one host is (accidentily) repluged from one lan to another lan, i will still get predictable results.
Avvording to the dhcpd.conf info that should be possible:
"If it is desirable to be able to boot a DHCP or BOOTP client on more than one subnet with fixed addresses, more than one address may be specified in the fixed-address declaration, or more than one host statement may be specified matching the same client."
So i tried at my 11.4 box multiple addresses in a single host declaration. The deaemon responds however with:
dhcpd: /var/lib/dhcp//etc/dhcpd.conf line 18: Only one fixed address declaration per host.
Any comment at the unexpected behaviour? (sure, i can put multiple host definitions, but it should work, not?)
hw
On my system portable computers can be connected either by ethernet or wifi therefore the mac is different but I want the same IP so I have one dhcpd.conf entry as "portable1E" with its mac and another as "portable1R" with its mac but they both give out the same IP address /etc/hosts, I use dnsmasq, then has just "portable1: ipaddress".
So however they are connected I can refer to them as "portable".
DC Yes, it can be done, but in an ugly way. My work around:
host t43lan3 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.13.43;} host t43lan4 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.14.43;} host t43lan5 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.15.43;} host t43lan6 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.16.43;} host t43lan7 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.17.43;} while i was under the impression that i should be able to do: host t43lan3 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.13.43; fixed-address 172.16.14.43; fixed-address 172.16.15.43; fixed-address 172.16.16.43; fixed-address 172.16.17.43 } or perhaps something like: host t43lan3 {hardware ethernet 00:11:25:b2:fe:56;fixed-address 172.16.13.43 172.16.14.43 172.16.15.43 172.16.16.43 172.16.17.43 } been googling about. All that i did find is that is _should_ be possible, but no example how to do it, yet.... hw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hans Witvliet wrote:
Yes, it can be done, but in an ugly way. My work around:
host t43lan3 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.13.43;} host t43lan4 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.14.43;} host t43lan5 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.15.43;} host t43lan6 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.16.43;} host t43lan7 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.17.43;}
while i was under the impression that i should be able to do: host t43lan3 {hardware ethernet 00:11:25:b2:fe:56; fixed-address 172.16.13.43; fixed-address 172.16.14.43; fixed-address 172.16.15.43; fixed-address 172.16.16.43; fixed-address 172.16.17.43 }
or perhaps something like:
host t43lan3 {hardware ethernet 00:11:25:b2:fe:56;fixed-address 172.16.13.43 172.16.14.43 172.16.15.43 172.16.16.43 172.16.17.43 }
been googling about. All that i did find is that is _should_ be possible, but no example how to do it, yet....
The correct way is comma-separated: host t43lan3 {hardware ethernet 00:11:25:b2:fe:56;fixed-address 172.16.13.43,172.16.14.43,172.16.15.43,172.16.16.43,172.16.17.43 } There is even an exmaple on the man page you quoted from. -- Per Jessen, Zürich (19.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 2011-10-06 at 14:14 +0200, Per Jessen wrote:
The correct way is comma-separated:
host t43lan3 {hardware ethernet 00:11:25:b2:fe:56;fixed-address 172.16.13.43,172.16.14.43,172.16.15.43,172.16.16.43,172.16.17.43 }
There is even an exmaple on the man page you quoted from.
oops, shame on me. ;-8 Tnx, it works for me, But obviously, i quoted from a different page... I presume it's the same for dhcpd6, will try that later on. Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hans Witvliet wrote:
I presume it's the same for dhcpd6, will try that later on.
IPv6 doesn't need DHCP for assigning addresses. With IPv6, addresses are automagically determined, based on the subnet address and either the MAC address or a random number. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Dave Cotton
-
Hans Witvliet
-
Haro de Grauw
-
James Knott
-
Per Jessen