1{ 2 # DHCPv4 two subnets in shared-network declaration config 3 # shared-network declaration 4 "Dhcp4": { 5 "interfaces-config": { 6 "interfaces": [ 7 "en0" 8 ] 9 }, 10 /// Kea shared-networks are different, cf Kea #236 11 "shared-networks": [ 12 { 13 "name": "foobar", 14 "subnet4": [ 15 # subnet declaration 16 { 17 "id": 1, 18 "subnet": "10.5.5.0/27", 19 "valid-lifetime": 3600, 20 "option-data": [ 21 # another option 22 { 23 "space": "dhcp4", 24 "name": "ip-forwarding", 25 "code": 19, 26 "data": "true" 27 } 28 ], 29 "pools": [ 30 # pool inside the subnet 31 { 32 "pool": "10.5.5.5 - 10.5.5.10" 33 } 34 ] 35 }, 36 # second subnet declaration 37 { 38 "id": 2, 39 "subnet": "10.10.10.0/27", 40 "pools": [ 41 # pool inside the subnet 42 { 43 "pool": "10.10.10.5 - 10.10.10.10" 44 } 45 ] 46 } 47 ], 48 "interface": "en0", 49 "option-data": [ 50 # interface 51 # option 52 { 53 "space": "dhcp4", 54 "name": "domain-search", 55 "code": 119, 56// "original-data": "\"example.com\", \"example.org\"", 57 "data": "example.com, example.org" 58 } 59 ], 60 "valid-lifetime": 1800 61 } 62 ] 63 } 64} 65