cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1695
Views
0
Helpful
3
Replies

Set DHCPv6 Vendor Options on embedded policy on CNR7.2 via nrcmd

RexChang32809
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Cristian Matei
VIP Alumni
VIP Alumni

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.

View solution in original post

3 Replies 3

Cristian Matei
VIP Alumni
VIP Alumni

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.

Hi,

Thanks for you reply and patience to finish my question.
I've upgrade my CNR to the latest version and that feature still not meet our expected behavior.
For now, I may give up using embedded policy and try to build up a policy first.
Anyway, thanks for your help!

Regards,
Rex Chang

My pleasure.

Review Cisco Networking for a $25 gift card