连接到 VirtualBox 上的 junos(使用 netconf 协议)

Connect to junos on VirtualBox (using netconf protocol)

我已经完成了 this article. There is an account (with super-user privileges), password, set netconf ssh and set ssh commands issued along with an ip address (for em0 192.168.56.150/24). My host OS (windows 8.1) for Ethernet adapter VirtualBox Host-Only Network has 192.168.56.101. I have downloaded and "ready to run" Netconf java toolkit 中的所有操作(来自 juniper group)。如何从 java 工具包连接到 junos 实例? (如何在 virtualbox 中设置 host os 和 juniper os 运行 之间的地址)

在 junos 盒子上:

config# set system services netconf ssh

config# commit

使用下面的 link 在主机和程序上创建简单的 java 程序:

Link

设备 device = new Device("junos-box-ip-address", "username-junos", "password-junos", null);