diff --git a/subsys/net/lib/shell/iface.c b/subsys/net/lib/shell/iface.c index c3a3428a546db2..926da64c3bd25a 100644 --- a/subsys/net/lib/shell/iface.c +++ b/subsys/net/lib/shell/iface.c @@ -441,6 +441,29 @@ static void iface_cb(struct net_if *iface, void *user_data) PR("IPv6 retransmit timer : %d\n", ipv6->retrans_timer); } + +#if defined(CONFIG_NET_DHCPV6) + if (net_if_flag_is_set(iface, NET_IF_IPV6)) { + PR("DHCPv6 renewal time (T1) : %llu ms\n", + iface->config.dhcpv6.t1); + PR("DHCPv6 rebind time (T2) : %llu ms\n", + iface->config.dhcpv6.t2); + PR("DHCPv6 expire time : %llu ms\n", + iface->config.dhcpv6.expire); + if (iface->config.dhcpv6.params.request_addr) { + PR("DHCPv6 address : %s\n", + net_sprint_ipv6_addr(&iface->config.dhcpv6.addr)); + } + + if (iface->config.dhcpv6.params.request_prefix) { + PR("DHCPv6 prefix : %s\n", + net_sprint_ipv6_addr(&iface->config.dhcpv6.prefix)); + } + + PR("DHCPv6 state : %s\n", + net_dhcpv6_state_name(iface->config.dhcpv6.state)); + } +#endif /* CONFIG_NET_DHCPV6 */ #endif /* CONFIG_NET_IPV6 */ #if defined(CONFIG_NET_IPV4)