From: Tomek Mrugalski Date: Tue, 23 Dec 2014 10:41:43 +0000 (+0100) Subject: [3554] Config examples updated X-Git-Tag: trac3504_base~21^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a98bfd3927c5f2d5d78ec5c60b420aafb1c5c48e;p=thirdparty%2Fkea.git [3554] Config examples updated - clarified that order in mac-sources is important - tweaked all examples to use eth9 rather than more common eth0 --- diff --git a/doc/examples/kea4/multiple-options.json b/doc/examples/kea4/multiple-options.json index 9b125dc1b9..9b66c01501 100644 --- a/doc/examples/kea4/multiple-options.json +++ b/doc/examples/kea4/multiple-options.json @@ -4,8 +4,8 @@ { "Dhcp4": { -# Kea is told to listen on eth0 interface only. - "interfaces": [ "eth0" ], +# Kea is told to listen on eth9 interface only. + "interfaces": [ "eth9" ], # We need to specify lease type. As of May 2014, three backends are supported: # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require diff --git a/doc/examples/kea4/several-subnets.json b/doc/examples/kea4/several-subnets.json index aff824b640..006ae51d77 100644 --- a/doc/examples/kea4/several-subnets.json +++ b/doc/examples/kea4/several-subnets.json @@ -5,8 +5,8 @@ { "Dhcp4": { -# Kea is told to listen on eth0 interface only. - "interfaces": [ "eth0" ], +# Kea is told to listen on eth9 interface only. + "interfaces": [ "eth9" ], # We need to specify lease type. As of May 2014, three backends are supported: # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require diff --git a/doc/examples/kea4/single-subnet.json b/doc/examples/kea4/single-subnet.json index 0c2e10ca07..9edb61905b 100644 --- a/doc/examples/kea4/single-subnet.json +++ b/doc/examples/kea4/single-subnet.json @@ -5,8 +5,8 @@ { "Dhcp4": { -# Kea is told to listen on eth0 interface only. - "interfaces": [ "eth0" ], +# Kea is told to listen on eth9 interface only. + "interfaces": [ "eth9" ], # We need to specify lease type. As of May 2014, three backends are supported: # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require diff --git a/doc/examples/kea6/advanced.json b/doc/examples/kea6/advanced.json index 0cee002050..426f902f56 100644 --- a/doc/examples/kea6/advanced.json +++ b/doc/examples/kea6/advanced.json @@ -3,12 +3,15 @@ # Topology wise, it's a basic scenario with one IPv6 subnet configured. # It is assumed that one subnet (2001:db8:1::/64) is available directly # over eth0 interface. +# +# The following features are currently showcased here: +# 1. Configuration of MAC/hardware address sources in DHCPv6 { "Dhcp6": { -# Kea is told to listen on eth0 interface only. - "interfaces": [ "eth0" ], +# Kea is told to listen on eth9 interface only. + "interfaces": [ "eth9" ], # We need to specify lease type. As of May 2014, three backends are supported: # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require @@ -27,6 +30,10 @@ # alias for remote-id, subscriber-id, rfc4580 (which is an alias for # subscriber-id) and docsis. # +# Note that the order matters. Methods are attempted one by one in the order +# specified until hardware address is obtained. If you don't care which method +# is used, using 'any' is marginally faster than enumerating them all. +# # If mac-sources are not specified, a default value of 'any' is used. "mac-sources": [ "client-link-addr-option", "duid", "ipv6-link-local" ], diff --git a/doc/examples/kea6/multiple-options.json b/doc/examples/kea6/multiple-options.json index 682b3b5102..333192e714 100644 --- a/doc/examples/kea6/multiple-options.json +++ b/doc/examples/kea6/multiple-options.json @@ -4,8 +4,8 @@ { "Dhcp6": { -# Kea is told to listen on eth0 interface only. - "interfaces": [ "eth0" ], +# Kea is told to listen on eth9 interface only. + "interfaces": [ "eth9" ], # We need to specify lease type. As of May 2014, three backends are supported: # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require diff --git a/doc/examples/kea6/several-subnets.json b/doc/examples/kea6/several-subnets.json index f138c059ea..78a090bea0 100644 --- a/doc/examples/kea6/several-subnets.json +++ b/doc/examples/kea6/several-subnets.json @@ -5,8 +5,8 @@ { "Dhcp6": { -# Kea is told to listen on eth0 interface only. - "interfaces": [ "eth0" ], +# Kea is told to listen on eth9 interface only. + "interfaces": [ "eth9" ], # We need to specify lease type. As of May 2014, three backends are supported: # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require diff --git a/doc/examples/kea6/simple.json b/doc/examples/kea6/simple.json index dec58f42b8..3ac9fc1f10 100644 --- a/doc/examples/kea6/simple.json +++ b/doc/examples/kea6/simple.json @@ -6,8 +6,8 @@ { "Dhcp6": { -# Kea is told to listen on eth0 interface only. - "interfaces": [ "eth0" ], +# Kea is told to listen on eth9 interface only. + "interfaces": [ "eth9" ], # We need to specify lease type. As of May 2014, three backends are supported: # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require