NETCONF配置 您所在的位置:网站首页 ecbc认证 NETCONF配置

NETCONF配置

2023-06-20 10:11| 来源: 网络整理| 查看: 265

验证配置结果

上述配置完成后,可成功通过NETCONF方式登录远端设备实现远程管理配置文件。

以下配置均在Server(SSH服务器)端执行。

# 执行命令display users,可以看到登录Server的用户信息。

[~netconf-agent] display users User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag 100 NCA 0 00:02:50 SSH 10.2.2.2 pass yes Username : client001

# 执行命令display ssh user-information,可查看到SSH用户信息。

[~netconf-agent] display ssh user-information -------------------------------------------------------------------------------- User Name : client001 Authentication-Type : password User-public-key-name : - User-public-key-type : - Sftp-directory : - Service-type : snetconf -------------------------------------------------------------------------------- Total 1, 1 printed

# 执行命令display local-user user-group manage-ug,可查看到用户组中本地用户信息。

[~netconf-agent] display local-user user-group manage-ug --------------------------------------------------------------------- Username State Type Access-limit Online --------------------------------------------------------------------- client001 Active S No 1 --------------------------------------------------------------------- Total 1, 1 printed --------------------------------------------------------------------- Type: F - Ftp, T - Telnet, M - Terminal, S - Ssh --------------------------------------------------------------------------------------------------- Username State Type Access-limit Online Admin-level User-group-id --------------------------------------------------------------------------------------------------- client001 Active S - No 1 3 1

# 执行命令display ssh server status,可查看到SSH服务器全局配置信息。

[~netconf-agent] display ssh server status SSH Version : 2.0 SSH authentication timeout (Seconds) : 60 SSH authentication retries (Times) : 3 SSH server key generating interval (Hours) : 0 SSH version 1.x compatibility : Enable SSH server keepalive : Disable SFTP IPv4 server : Disable SFTP IPv6 server : Disable STELNET IPv4 server : Enable STELNET IPv6 server : Enable SNETCONF IPv4 server : Enable SNETCONF IPv6 server : Enable SNETCONF IPv4 server port(830) : Disable SNETCONF IPv6 server port(830) : Disable SCP IPv4 server : Enable SCP IPv6 server : Enable SSH port forwarding : Disable SSH IPv4 server port : 22 SSH IPv6 server port : 22 ACL name : ACL number : ACL6 name : ACL6 number : SSH server ip-block : Enable

# 执行命令display netconf capability,可查看到Server支持的能力。

[~netconf-agent] display netconf capability -------------------------------------------------- Capability -------------------------------------------------- urn:ietf:params:netconf:base:1.0 urn:ietf:params:netconf:base:1.1 urn:ietf:params:netconf:capability:writable-running:1.0 urn:ietf:params:netconf:capability:candidate:1.0 urn:ietf:params:netconf:capability:confirmed-commit:1.0 urn:ietf:params:netconf:capability:confirmed-commit:1.1 urn:ietf:params:netconf:capability:rollback-on-error:1.0 urn:ietf:params:netconf:capability:validate:1.0 urn:ietf:params:netconf:capability:validate:1.1 urn:ietf:params:netconf:capability:startup:1.0 urn:ietf:params:netconf:capability:url:1.0?scheme=file,ftp,sftp urn:ietf:params:netconf:capability:xpath:1.0 urn:ietf:params:netconf:capability:notification:1.0 urn:ietf:params:netconf:capability:interleave:1.0 urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=report-all&also-supported=report-all-tagged,trim urn:ietf:params:netconf:capability:yang-library:1.0?revision=2016-06-21&module-set-id=1903662584 --------------------------------------------------


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有