Configuring vSRX Using the CLI
To configure the vSRX instance using the CLI:
- Verify that the vSRX is powered on.
- Log in as the root user. There is no password.
- 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 hostname.root@# set system host-name host-name
- Configure the management interface.root@# set interfaces fxp0 unit 0 family inet dhcp-client
- Configure the traffic interfaces.root@# set interfaces ge-0/0/0 unit 0 family inet dhcp-client
- Configure basic security zones and bind them to traffic
interfaces.root@# set security zones security-zone trust interfaces ge-0/0/0.0
- Verify the configuration.root@# commit checkconfiguration check succeeds
- Commit the configuration to activate it on the vSRX 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.