Configuring the Internal Management IP Address of vSRX VNF
VNF internal management IP addresses (192.168.x.x) on the default network (virbr0 bridge) are assigned through DHCP, and /etc/hosts updates handled automatically.
You can log on to the vSRX VNF through SSH only after configuring DHCP on the fxp0 interface so that the internal management IP address is set on the fxp0 interface.
To configure the internal management IP address on the fxp0 interface of vSRX VNF.:
- Verify if the vSRX VNF is successfully created.content_copy zoom_out_maproot@jdm# /var/third-party# virsh listcontent_copy zoom_out_map
Id Name State ---------------------------------------------------- 2 vjunos0 running 3 vsrx running
You can see that the vSRX VM is running.
- Log on to the vSRX VNF console. content_copy zoom_out_maproot@jdm# ~# virsh console vsrxcontent_copy zoom_out_map
login:
NoteEnsure that the escape character is not as same as the character used for any other purpose in the vSRX console.
You can use this virsh console to log on to the console of any VM for troubleshooting, if other login methods fail.
- Log in as root.
- Enter the configuration mode.content_copy zoom_out_maproot@user-vsrx>configure
- Change the default vSRX root password after you log in
to the console:content_copy zoom_out_map[edit]root@user-vsrx# set system root-authentication password
- Enable DHCP on fxp0 interface and commit the configuration.content_copy zoom_out_map[edit]root@user-vsrx# set interfaces fxp0 unit 0 family inet dhcpcontent_copy zoom_out_map[edit]root@user-vsrx# commit
- Use the character # to return to the JDM CLI.
- Verify if fxp0 interface is up. content_copy zoom_out_maproot@jdm>show virtual-network-functionscontent_copy zoom_out_map
ID Name State Liveliness ----------------------------------------------------------------- 2 vjunos0 running alive 3 vsrx running alive 9192 jdm running alive
The status alive indicates that the IP address has been assigned successfully.
You can now establish an SSH connection to the vSRX VNF by running the ssh vsrx command.