Configuring vSRX Using the CLI
To configure the instance using the CLI:
- Verify that the vSRX instance is powered on.
- Log in as the root user (whose username is root). 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). The following is an example of a plain-text
password. The CLI prompts you for the password and then encrypts it. 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 changes.root@# commit checkconfiguration check succeeds
- Commit the configuration to activate it on the instance. root@# commitcommit complete
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.