Connect to junos on VirtualBox (using netconf protocol)

205 views Asked by At

I have done everything like in 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 (by juniper group). How can I connect to junos instance from java toolkit ? (how to set adressess between host os and juniper os running inside virtualbox)

1

There are 1 answers

0
Vijay Shetty On BEST ANSWER

On junos box:

config# set system services netconf ssh

config# commit

Use the below link to create simple java program on host and the program:

Link

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