Thank you, Razvan, >You have to define 2 subnets, each having it's own set of option-data, even if they are sharing the same network space like this:
That worked for me. I used global "option-data" for "Dhcp4" before. On Thu, Jan 12, 2017 at 5:43 PM, Razvan Becheriu < [email protected]> wrote: > Hi, > > I did a mistake in the configuration. I've missed some '[' and ']' around > option-data. > The configuration should look like this: > "subnet4": [ > { > "subnet": "192.0.2.0/24", > "pools": [ { "pool": "192.0.2.10-192.0.2.20" } ], > "interface": "eth1", > "option-data": [ > { > "name": "routers", > "code": 3, > "space": "dhcp4", > "csv-format": true, > "data": "10.4.0.1" > } ] > }, > { > "subnet": "192.0.2.0/24", > "pools": [ { "pool": "192.0.2.10-192.0.2.20" } ], > "interface": "eth2", > "option-data": [ > { > "name": "routers", > "code": 3, > "space": "dhcp4", > "csv-format": true, > "data": "10.5.0.1" > } ] > } > ] > > On Thu, Jan 12, 2017 at 3:31 PM, Razvan Becheriu < > [email protected]> wrote: > >> Hi, >> >> You have to define 2 subnets, each having it's own set of option-data, >> even if they are sharing the same network space like this: >> >> "subnet4": [ >> { >> "subnet": "192.0.2.0/24", >> "pools": [ { "pool": "192.0.2.10-192.0.2.20" } ], >> "interface": "eth1", >> "option-data": >> { >> "name": "routers", >> "code": 3, >> "space": "dhcp4", >> "csv-format": true, >> "data": "10.4.0.1" >> } >> }, >> { >> "subnet": "192.0.2.0/24", >> "pools": [ { "pool": "192.0.2.10-192.0.2.20" } ], >> "interface": "eth2", >> "option-data": >> { >> "name": "routers", >> "code": 3, >> "space": "dhcp4", >> "csv-format": true, >> "data": "10.5.0.1" >> } >> } >> ] >> >> Regards, >> Razvan >> >> On Thu, Jan 12, 2017 at 3:06 PM, Andrei Pavel < >> [email protected]> wrote: >> >>> > That helped. But now I have to use only keyspace 'keatest', so the >>> option "name" does not work. Otherwise I'm getting: >>> > >>> > 1484223384.208 [ERROR] (src/pool.cpp:388:virtual void >>> cass::Pool::on_close(cass::Connection*)): Connection pool was unable to >>> connect to host 192.168.144.133 because of the following error: Received >>> error response 'Keyspace 'keatest' does not exist' (0x02002200) >>> > 2017-01-12 16:16:24.213 ERROR [kea-dhcp4.dhcp4/10010] DHCP4_INIT_FAIL >>> failed to initialize Kea server: configuration error using file >>> '/usr/local/etc/kea/kea.conf': Unable to open database: could not connect >>> to DB reason: Keyspace 'keatest' does not exist error code: 16777231 >>> >>> For Cassandra, "name" is "keyspace". And I can confirm that those are >>> the only options that differ. "port", "user" and "password" are all >>> the same as in the other backends. >>> >>> >>> >>> On Thu, Jan 12, 2017 at 2:41 PM, Lex Ivanov <[email protected]> wrote: >>> > Thank you, Andrei, >>> > >>> > That helped. But now I have to use only keyspace 'keatest', so the >>> option >>> > "name" does not work. Otherwise I'm getting: >>> > >>> > 1484223384.208 [ERROR] (src/pool.cpp:388:virtual void >>> > cass::Pool::on_close(cass::Connection*)): Connection pool was unable >>> to >>> > connect to host 192.168.144.133 because of the following error: >>> Received >>> > error response 'Keyspace 'keatest' does not exist' (0x02002200) >>> > 2017-01-12 16:16:24.213 ERROR [kea-dhcp4.dhcp4/10010] DHCP4_INIT_FAIL >>> failed >>> > to initialize Kea server: configuration error using file >>> > '/usr/local/etc/kea/kea.conf': Unable to open database: could not >>> connect to >>> > DB reason: Keyspace 'keatest' does not exist error code: 16777231 >>> > >>> > And concerning the second question: >>> > yes, I'm using >>> > >>> > "interfaces-config": { >>> > "interfaces": [ "eth0", "eth1" ] >>> > }, >>> > >>> > But I want Kea to send 'default router' 10.4.0.1 to clients on eth0 and >>> > 10.5.0.1 to clients on eth1. >>> > Is it possible? >>> > >>> > >>> > On Thu, Jan 12, 2017 at 3:43 PM, Andrei Pavel < >>> [email protected]> >>> > wrote: >>> >> >>> >> Hello, >>> >> >>> >> Since you may specify multiple hosts, the "host" parameter has been >>> >> renamed for Cassandra to "contact_points". Try this: >>> >> >>> >> "lease-database": { >>> >> "type": "cql", >>> >> "contact_points": "192.168.144.164", >>> >> "name": "keadhcp1" >>> >> }, >>> >> >>> >> This doesn't seem to be documented. I'll try to amend a pending pull >>> >> request to fix this. >>> >> >>> >> The double interface however seems to be configurable according to the >>> >> documentation [1]. You must specify the two interfaces in the >>> >> configuration file. Search for "interfaces-config" for an example. >>> >> >>> >> "interfaces-config": { >>> >> "interfaces": [ "eth0", "eth1" ] >>> >> }, >>> >> >>> >> [1] https://jenkins.isc.org/job/Kea_doc/guide/kea-guide.html#idp >>> 1380266404 >>> >> >>> >> On Thu, Jan 12, 2017 at 7:22 AM, Lex Ivanov <[email protected]> wrote: >>> >> > Hi, >>> >> > >>> >> > I'm trying to run KEA with cassandra cluster, the settings are: >>> >> > >>> >> > "lease-database": { "type": "cql", "host": "192.168.144.164", >>> "name": >>> >> > "keadhcp1" }, >>> >> > >>> >> > But KEA seems to try to connect to 127.0.0.1 instead of one of the >>> >> > nodes. >>> >> > >>> >> > The error is: >>> >> > >>> >> > 1484117590.591 [ERROR] (src/control_connection.cpp:263:virtual void >>> >> > cass::ControlConnection::on_close(cass::Connection*)): Unable to >>> >> > establish a >>> >> > control connection to host 127.0.0.1 because of the following error: >>> >> > Connect >>> >> > error 'connection refused' >>> >> > 2017-01-11 10:53:10.592 ERROR [kea-dhcp4.dhcp4/16700] >>> DHCP4_INIT_FAIL >>> >> > failed >>> >> > to initialize Kea server: configuration error using file >>> >> > '/usr/local/etc/kea/kea.conf': Unable to open database: could not >>> >> > connect to >>> >> > DB reason: No hosts available for the control connection error code: >>> >> > 16777226 >>> >> > >>> >> > Am I doing smth wrong or KEA is not supposed to connect to cassandra >>> >> > other >>> >> > than on localhost? >>> >> > >>> >> > >>> >> > And one more question. I need KEA to work on 2 interfaces. How can I >>> >> > assign >>> >> > 2 different routers to these interfaces? >>> >> > >>> >> > Now the only option i found is to send multiple routers like this: >>> >> > >>> >> > { >>> >> > "name": "routers", >>> >> > "code": 3, >>> >> > "space": "dhcp4", >>> >> > "csv-format": true, >>> >> > "data": "10.4.0.1,10.5.0.1" >>> >> > >>> >> > } >>> >> > >>> >> > >>> >> > -- >>> >> > Best regards, >>> >> > Alex Ivanov >>> >> > >>> >> > EzeLink Telecom >>> >> > >>> >> > _______________________________________________ >>> >> > Kea-users mailing list >>> >> > [email protected] >>> >> > https://lists.isc.org/mailman/listinfo/kea-users >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> Andrei Pavel | junior c++ developer | QUALITANCE™ >>> >> RO: +40 (748) 220 135 | office: +40 (372) 944 741 >>> >> Opera Center bldg. 2, fl. 7-8, 2 Dr. Nicolae D. Staicovici, Bucharest >>> >> 050556 >>> >> [email protected] | www.qualitance.com >>> >> >>> >> a Deloitte Technology Fast 50 company | ranked in the Inc. 5000 >>> Europe for >>> >> 2016 >>> >> >>> >> -- >>> >> The information contained in this email is confidential. It is >>> >> intended only for the stated addressee and access to it by any other >>> >> person is unauthorised. If you are not an addressee, you must not >>> >> disclose, copy, circulate or in another way use or reply to the >>> >> information contained in this email. Such unauthorised use may be >>> >> unlawful. If you have received this email in error, please notify the >>> >> sender immediately and delete all copies from your computer and >>> >> network. >>> > >>> > >>> > >>> > >>> > -- >>> > Best regards, >>> > Alex Ivanov >>> > >>> > EzeLink Telecom >>> >>> >>> >>> -- >>> Andrei Pavel | junior c++ developer | QUALITANCE™ >>> RO: +40 (748) 220 135 | office: +40 (372) 944 741 >>> Opera Center bldg. 2, fl. 7-8, 2 Dr. Nicolae D. Staicovici, Bucharest >>> 050556 >>> [email protected] | www.qualitance.com >>> >>> a Deloitte Technology Fast 50 company | ranked in the Inc. 5000 Europe >>> for 2016 >>> >>> -- >>> The information contained in this email is confidential. It is >>> intended only for the stated addressee and access to it by any other >>> person is unauthorised. If you are not an addressee, you must not >>> disclose, copy, circulate or in another way use or reply to the >>> information contained in this email. Such unauthorised use may be >>> unlawful. If you have received this email in error, please notify the >>> sender immediately and delete all copies from your computer and >>> network. >>> _______________________________________________ >>> Kea-users mailing list >>> [email protected] >>> https://lists.isc.org/mailman/listinfo/kea-users >>> >> >> >> >> -- >> *Razvan Becheriu* | senior software engineer | QUALITANCE™ >> *RO:* +40 (746) 090 415 <+40%20746%20090%20415> | *office:* +40 (372) >> 944 741 <+40%20372%20944%20741> >> Opera Center bldg. 2, fl. 7-8, 2 Dr. Nicolae D. Staicovici, Bucharest >> 050556 >> <https://www.google.ro/maps/place/QUALITANCE/@44.433653,26.079464,17z/data=!4m6!1m3!3m2!1s0x40b1ff173c5bc0b9:0x7226343f810c7ede!2sQUALITANCE!3m1!1s0x40b1ff173c5bc0b9:0x7226343f810c7ede?hl=ro> >> [email protected] | www.qualitance.com >> >> a Deloitte Technology Fast 50 >> <http://www2.deloitte.com/content/dam/Deloitte/global/Documents/About-Deloitte/central-europe/CE_Fast_50_2015.pdf> >> company | ranked in the Inc. 5000 Europe >> <http://www.inc.com/inc5000eu/list/2016/> for 2016 >> -- >> The information contained in this email is confidential. It is intended >> only for the stated addressee and access to it by any other person is >> unauthorised. If you are not an addressee, you must not disclose, copy, >> circulate or in another way use or reply to the information contained in >> this email. Such unauthorised use may be unlawful. If you have received >> this email in error, please notify the sender immediately and delete all >> copies from your computer and network. >> > > > > -- > *Razvan Becheriu* | senior software engineer | QUALITANCE™ > *RO:* +40 (746) 090 415 | *office:* +40 (372) 944 741 > Opera Center bldg. 2, fl. 7-8, 2 Dr. Nicolae D. Staicovici, Bucharest > 050556 > <https://www.google.ro/maps/place/QUALITANCE/@44.433653,26.079464,17z/data=!4m6!1m3!3m2!1s0x40b1ff173c5bc0b9:0x7226343f810c7ede!2sQUALITANCE!3m1!1s0x40b1ff173c5bc0b9:0x7226343f810c7ede?hl=ro> > [email protected] | www.qualitance.com > > a Deloitte Technology Fast 50 > <http://www2.deloitte.com/content/dam/Deloitte/global/Documents/About-Deloitte/central-europe/CE_Fast_50_2015.pdf> > company | ranked in the Inc. 5000 Europe > <http://www.inc.com/inc5000eu/list/2016/> for 2016 > -- > The information contained in this email is confidential. It is intended > only for the stated addressee and access to it by any other person is > unauthorised. If you are not an addressee, you must not disclose, copy, > circulate or in another way use or reply to the information contained in > this email. Such unauthorised use may be unlawful. If you have received > this email in error, please notify the sender immediately and delete all > copies from your computer and network. > -- Best regards, Alex Ivanov EzeLink Telecom
_______________________________________________ Kea-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/kea-users
