03-10-2020 02:49 AM
Hi,
As title, we would like to add DHCPv6 vendor options on embedded policy via nrcmd.
First, we try to check those policy which is set manually by command "client-policy <client-name>" and "client-policy <client-name> getV6VendorOption <opt-name | id> <opt-set-name>".
The following message is what we got by above command.
------------------------------------------------------------------
"client-policy <client-name>"
nrcmd> client 00:03:00:01:CC:40:D0:29:C2:88
100 Ok
00:03:00:01:CC:40:D0:29:C2:88:
action =
add-to-environment-dictionary =
authenticate-until =
client-class-name =
default-vpn =
domain-name =
embedded-policy = "((ClassName Policy)(name client-policy:00:03:00:01:CC:40:D0:29:C2:88)(v6-vendor-options [((ClassName Option)(number 17)(option-definition-set-name dhcp6-cablelabs-config)(value 00:00:11:8b:00:20:00:10:20:01:b0:21:00:15:70:00:01:72:00:21:00:01:01:54:00:21:00:18:4a:65:73:73:69:63:61:2f:4e:54:47:52:31:32:34:31:5f:44:33:31:2e:63:66:67:00:22:00:10:20:01:b0:21:00:15:70:00:01:72:00:21:00:01:01:54:00:25:00:10:20:01:b0:21:00:15:70:00:01:72:00:21:00:01:01:54:00:26:00:04:00:00:70:80:08:7a:00:10:00:01:00:04:ac:15:01:9a:00:02:00:04:ac:15:01:fa))]))"
host-name =
over-limit-client-class-name =
override-vpn =
policy-name =
reserved-addresses =
reserved-ip6addresses =
reserved-prefixes =
selection-criteria =
tenant-id = 0 tag: core
unauthenticated-client-class-name =
user-defined =
------------------------------------------------------------------
"client-policy <client-name> getV6VendorOption <opt-name | id> <opt-set-name>"
nrcmd> client-policy 00:03:00:01:CC:40:D0:29:C2:88 getV6VendorOption cablelabs-17 dhcp6-cablelabs-config
100 Ok
17 cablelabs-17 (dhcp6-cablelabs-config): (enterprise-id 4491((tftp-servers 32 2001:b021:15:7000:172:21:1:154)(config-file-name 33 Jessica/NTGR1241_D31.cfg)(syslog-servers 34 2001:b021:15:7000:172:21:1:154)(rfc868-servers 37 2001:b021:15:7000:172:21:1:154)(time-offset 38 8h)(cablelabs-client-configuration 2170 (primary-dhcp-server 1 172.21.1.154)(secondary-dhcp-server 2 172.21.1.250))))
------------------------------------------------------------------
However, while we try to follow the same logic to set DHCPv6 Vendor Options on embedded policy via nrcmd with command
"nrcmd> client-policy 00:03:00:01:0C:EA:C9:E8:54:6F setV6VendorOption cablelabs-17 dhcp6-cablelabs-config (enterprise-id 4491((tftp-servers 32 2001:b021:15:7000:172:21:1:154)(config-file-name 33 Jessica/NTGR1241_D31.cfg)(syslog-servers 34 2001:b021:15:7000:172:21:1:154)(rfc868-servers 37 2001:b021:15:7000:172:21:1:154)(time-offset 38 8h)(cablelabs-client-configuration 2170 (primary-dhcp-server 1 172.21.1.154)(secondary-dhcp-server 2 172.21.1.250))))"
Here's an error message showing:
316 Invalid - policy setV6VendorOption cablelabs-17 dhcp6-cablelabs-config (enterprise-id 4491((tftp-servers 32 2001:b021:15:7000:172:21:1:154)(config-file-name 33 Jessica/NTGR1241_D31.cfg)(syslog-servers 34 2001:b021:15:7000:172:21:1:154)(rfc868-servers 37 2001:b021:15:7000:172:21:1:154)(time-offset 38 8h)(cablelabs-client-configuration 2170 (primary-dhcp-server 1 172.21.1.154)(secondary-dhcp-server 2 172.21.1.250))))
On the other way, I try to change the command to "nrcmd> client-policy 00:03:00:01:0C:EA:C9:E8:54:6F setV6VendorOption cablelabs-17 dhcp6-cablelabs-config enterprise-id 4491((tftp-servers 32 2001:b021:15:7000:172:21:1:154)(config-file-name 33 Jessica/NTGR1241_D31.cfg)(syslog-servers 34 2001:b021:15:7000:172:21:1:154)(rfc868-servers 37 2001:b021:15:7000:172:21:1:154)(time-offset 38 8h)(cablelabs-client-configuration 2170 (primary-dhcp-server 1 172.21.1.154)(secondary-dhcp-server 2 172.21.1.250)))"
It shows "100 OK".
However, while we twice confirm the result by getV6VendorOption command and on GUI.
The value is blank.
nrcmd> client-policy 00:03:00:01:0C:EA:C9:E8:54:6F getV6VendorOption cablelabs-17 dhcp6-cablelabs-config
100 Ok
17 cablelabs-17 (dhcp6-cablelabs-config):
Best regards,
Rex Chang
Solved! Go to Solution.
03-10-2020 05:08 AM
Hi,
Looks like a "feature" to me. Try upgrading to the latest version of 7.2 and see how it works. I thinks CNR is even out of support, feature request and bug fixing? Alternatively, you could take a demo of Prime Network Registrar and see if it works.
Regards,
Cristian Matei.
03-10-2020 05:08 AM
Hi,
Looks like a "feature" to me. Try upgrading to the latest version of 7.2 and see how it works. I thinks CNR is even out of support, feature request and bug fixing? Alternatively, you could take a demo of Prime Network Registrar and see if it works.
Regards,
Cristian Matei.
03-10-2020 08:36 PM
03-11-2020 03:05 PM
My pleasure.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide