Configuring vSRX Using the CLI
To configure the instance using the CLI:
- Verify that the instance is powered on.
- Log in using the username and password credentials for your vSRX VM deployment in Microsoft Azure.
- Start the CLI.root#cliroot@>
- Enter configuration mode.configureroot@#
- Set the root authentication password by entering a cleartext password, an encrypted password, or an
SSH public key string (DSA or RSA).root@# set system root-authentication plain-text-passwordNew password: passwordRetype new password: password
- Configure the traffic interfaces.root@# set interfaces ge-0/0/0 unit 0 family inet address assigned_ip/netmaskroot@# set interfaces ge-0/0/1 unit 0 family inet address assigned_ip/netmask
Configuration of the management interface fxp0 for the vSRX is not necessary because it is configured during vSRX VM deployment from Azure (Azure portal or Azure CLI deployment methods). Microsoft Azure performs its own IP address mapping for the VM management interface. Do not change the configuration for interface fxp0 and the default routing table or you will lose connectivity.
- Configure routing interfaces to isolate management network
and traffic network.root@# set routing-instances vsrx-vr1 instance-type virtual-routerroot@# set routing-instances vsrx-vr1 interface ge-0/0/0.0root@# set routing-instances vsrx-vr1 interface ge-0/0/1.0
- Verify the configuration changes root@# commit checkconfiguration check succeeds
- Commit the current configuration to make it permanent
and to avoid the possibility of losing connectivity to the vSRX. root@# commit confirmedcommit confirmed will be automatically rolled back in 10 minutes unless confirmedcommit complete# commit confirmed will be rolled back in 10 minutes
- Commit the configuration to activate it on the instance. root@# commitcommit complete
- Optionally, use the show command to display the configuration to verify that it is correct.
Certain Junos OS software features require a license to activate the feature. To enable a licensed feature, you need to purchase, install, manage, and verify a license key that corresponds to each licensed feature. To conform to software feature licensing requirements, you must purchase one license per feature per instance. The presence of the appropriate software unlocking key on your virtual instance allows you to configure and use the licensed feature.
See Managing Licenses for vSRX for details.