Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configure vSRX Virtual Firewall Using the CLI

date_range 27-May-23

To configure the vSRX Virtual Firewall instance using the CLI:

  1. Verify that the vSRX Virtual Firewall is powered on.
  2. Log in as the root user. There is no password.
  3. Start the CLI.
    content_copy zoom_out_map
    root#cli
    root@>
    
  4. Enter configuration mode.
    content_copy zoom_out_map
    configure 
    [edit]
    root@#
    
  5. Set the root authentication password by entering a cleartext password, an encrypted password, or an SSH public key string (DSA or RSA).
    content_copy zoom_out_map
    [edit]
    root@# set system root-authentication plain-text-password
    New password: password 
    Retype new password: password 
    
  6. Configure the hostname.
    content_copy zoom_out_map
    [edit]
    root@# set system host-name host-name
    
  7. Configure the management interface.
    content_copy zoom_out_map
    [edit]
    root@# set interfaces fxp0 unit 0 family inet dhcp-client 
    
  8. Configure the traffic interfaces.
    content_copy zoom_out_map
    [edit]
    root@# set interfaces ge-0/0/0 unit 0 family inet dhcp-client 
    
  9. Configure basic security zones and bind them to traffic interfaces.
    content_copy zoom_out_map
    [edit]
    root@# set security zones security-zone trust interfaces ge-0/0/0.0 
    
  10. Verify the configuration.
    content_copy zoom_out_map
    [edit]
    root@# commit check
    configuration check succeeds
    
  11. Commit the configuration to activate it on the vSRX Virtual Firewall instance.
    content_copy zoom_out_map
    [edit]
    root@# commit
    commit complete
    
  12. Optionally, use the show command to display the configuration to verify that it is correct.
Note:

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.

footer-navigation