Edited by Alexey Savkin at 2024-5-20 04:11 Dear experts! I am trying to configure basic NETCONF functionality on Access Controller RG-WS6512. I see that port 830 is ready for SSH, but when I trying to connect, controller is closing session immediately after successful user authentication. As far as I know, right after connection, the controller must send HELLO with capabilities list (as acts, for example, netconf-capable Cisco devices). But Ruijie just closing connection right after establishing it. MacBook-Pro-3 ~ % ssh -l admin -p 830 192.168.200.51I see, that auth on AC side doing successful: *May 19 22:26:06: %AAA-6-USER_AUTH_PASSED: User authenticated. Username: admin.Configuration on AC side is minimal: ruijie-wlc-01#show run | i etconfCould you, please, so kindly, help me with correct netconf configuration for minimal functionality (for example, to get capabilities list, retrieve configuration elements and change some of them). Regards, Alexey |
Dear sir Here is a guide to configure netconf on AC on page 2452: https://www.ruijienetworks.com/resources/preview/ruijie-rg-wlan-series-access-controllers-configuration-guide-w2b1 You need to ensure the netconf server network connecitivity and configure the following commands: 1. Configuring netconf server management IP address: Hostname> enable Hostname# configure terminal Hostname(config)#interface mgmt 0 Hostname(config-if-Mgmt 0)# ip address 172.29.71.62 255.255.255.0 Hostname(config-if-Mgmt 0)# gateway 172.29.71.1 2. Configuring SSH Hostname> enable Hostname# configure terminal Hostname(config)# enable service ssh-server Hostname(config)# crypto key generate rsa % You already have RSA keys. % Do you really want to replace them? [yes/no]:y Choose the size of the rsa key modulus in the range of 512 to 2048 and the size of the dsa key modulus in the range of 360 to 2048 for your Signature Keys. Choosing a key modulus greater than 512 may take a few minutes. Choose the size of the ecc key modulus from (256, 384, 521) How many bits in the modulus [1024]:2048 % Generating 2048 bit RSA1 keys ...[ok] % Generating 2048 bit RSA keys ...[ok] Hostname(config)# 3. Login with username and password: Hostname(config)# username netconf privilege 15 password netconf_1234 Hostname(config)#line vty 0 4 Hostname(config-line)#login local 4. Enables the NETCONF framework service. Hostname(config)# netconf enable Hostname(config)# netconf yang multi-revision //Configures the NETCONF server to advertise all versions of all supported YANG modules to the NETCONF client. Hostname(config)# netconf capability candidate //Enables the candidate and confirmed-commit capabilities of NETCONF. Hostname(config)# netconf port 10000 //Configures the port monitored by the NETCONF server. As shown in the figure, the NETCONF client side software is used to log in to the NETCONF server through the SSH protocol to realize the management and monitoring of network devices. If the above commands still can not work, please help type the following commands and show me the result to further check this issue. You can send it to my email: yujiamin1@ruijie.com.cn. Hostname# ping oob x.x.x.x //x.x.x.x is netconfig client IP address Hostname# show service Hostname# show netconf session Hostname# show run Hostname# show version Hostname# show log Best regards Jenny |
GTAC-Jenny replied at 2024-5-20 14:12 Dear Jenny. Thank you for detailed explanation. I have a couple of additional questions I want to ask before trying to apply your recommendations:
ruijie-wlc-01#show ip int br 2. I already have several users with priv-level 15 configured on access controller. Do I need to create special user "netconf" as per your commands, for getting NETCONF working? With these users I see that auth is successful every time, but session is closing every time as well. 3. There is no "show netconf session" command available on my controller: ruijie-wlc-01#show netconf ? 4. Show version: ruijie-wlc-01#show version Best regards, Alexey |
Alexey Savkin replied at 2024-5-20 22:05 Dear Alexey Savkin, Good day. 1. The ETCONF configuration has not specified MGMT port only, you can still use interface vlan 200 for communication. 2. You can create a create special user "netconf" for getting NETCONF working. 3. The commands may vary from different device models, you can refer to this link for more commands meaning Ruijie RG-WLAN Series Access Controllers Configuration Guide, RGOS11.9(6)W2B1 (V1.2) - Ruijie Networks RD, David |
GTAC-David replied at 2024-5-27 16:23 Hi Jenny. Have created netconf username, but sill getting immediate disconnection right after login: MacBook-Pro-3 ~ % ssh -l netconf -p 830 192.168.200.51 But I see successful login attempt in logs: *May 27 13:01:02: %AAA-6-USER_AUTH_PASSED: User authenticated. Username: netconf. Any ideas so far? Thank you in advance. Alexey |
Alexey Savkin replied at 2024-5-27 18:05 Still have no success with NETCONF connection to the controller... The problem persist((: session got disconnected right after establishing. Any ideas? Regards, Alexey |
This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.
More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.
©2000-2023 Ruijie Networks Co,Ltd