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

Perform the Initial Configuration for the PTX10016 Router

date_range 24-May-24

You must perform the initial configuration of the PTX10016 router through the console port using the CLI or through zero-touch provisioning (ZTP). To use ZTP to provision the device, you must have access to a Dynamic Host Control Protocol (DHCP) server, and a FTP (anonymous FTP), HTTP, or Trivial File Transfer Protocol (TFTP) server on which the software image and configuration files are stored. For more information about using ZTP for provisioning the device, see Understanding Zero Touch Provisioning in the Installation and Upgrade Guide.

These procedures walk you through the configuration of the PTX10016 using the console CON|CONSOLE port on the RCB. For directions on connecting into a console server or a management server, see Connect the PTX10016 Router to a Management Console.

Before You Begin

  1. Set the following serial port settings for your laptop or desktop PC:
    • Baud Rate—9600

    • Flow Control—None

    • Data—8

    • Parity—None

    • Stop Bits—1

    • DCD State—Disregard

  2. Gather the information you will need to configure the PTX10016:
    • The password you’ll set for the root user

    • The name on the system that the PTX10016 will be known as (host name)

    • The IP address and prefix of the default gateway router

    • The IP address and prefix length information for the Ethernet interface

    • The IP address and prefix length of remote prefixes

Enter the Configuration Mode

  1. Check that the PTX10016 has power.
  2. Connect the console port on the router to a serial port on your laptop or desktop PC by using the RJ-45 cable and RJ-45 to DB-9 adapter. The console port (labeled CONSOLE or CON) is located on the RCB installed in the router. If your laptop or desktop PC doesn't have a serial port, use a serial-to-USB adapter (not provided).
    Note:

    We no longer include the RJ-45 console cable with the DB-9 adapter as part of the device package. If the console cable and adapter are not included in your device package, or if you need a different type of adapter, you can order the following separately:

    • RJ-45 to DB-9 adapter (JNP-CBL-RJ45-DB9)

    • RJ-45 to USB-A adapter (JNP-CBL-RJ45-USBA)

    • RJ-45 to USB-C adapter (JNP-CBL-RJ45-USBC)

    If you want to use RJ-45 to USB-A or RJ-45 to USB-C adapter you must have X64 (64-Bit) Virtual COM port (VCP) driver installed on your PC. See, https://ftdichip.com/drivers/vcp-drivers/ to download the driver.

  3. At the login prompt, type root. You don't need to enter a password. If the software booted before you connected to the console port, you might need to press the Enter key for the prompt to appear.
  4. Start the CLI.
    content_copy zoom_out_map
    root@% cli
  5. Enter configuration mode.
    content_copy zoom_out_map
    root> configure
    [edit]
    root@#

Establish a Root Password and Optional Host Name

  1. Add a password to the root administration user account.
    content_copy zoom_out_map
    [edit]
    root@# set system root-authentication plain-text-password
    New password: password
    Retype new password: password
  2. (Optional) Configure the name of the router. If the name includes spaces, enclose the name in quotation marks (“ ”).
    content_copy zoom_out_map
    [edit]
    root@# set system host-name host-name

Configure the Default Gateway and Ethernet Interface

  1. Configure the default gateway.
    • If Junos OS is installed in your router:

      content_copy zoom_out_map
      [edit]
      root@# set routing-options static route default next-hop address
    • If Junos OS Evolved is installed in your router:

      content_copy zoom_out_map
      [edit]
      root@# set system management-instance
      root@# set routing-instances mgmt_junos routing-optins static route prefix/prefix-length next-hop default-gateway-ip-address
  2. Configure the IP address and prefix length for the router management interface.
    • If Junos OS is installed in your router:

      content_copy zoom_out_map
      [edit]
      root@# set interfaces em0 unit 0 family inet address ip-address/prefix-length
    • If Junos OS Evolved is installed in your router:

      content_copy zoom_out_map
      [edit]
      root@# set interfaces re0:mgmt-0 unit 0 family inet address ip-address/prefix-length
    CAUTION:

    Though the CLI permits you to configure two management Ethernet interfaces within the same subnet, only one interface is usable and supported.

    Note:

    The management ports (labeled MGMT) em0 or re0:mgmt-0 (for RJ-45 connections) and em1 (for fiber connections), are on the RCB on the PTX10016 router.

Configure Optional Routes, Services, and Commit the Configuration

  1. (Optional) Configure the static routes to remote prefixes with access to the management port.
    content_copy zoom_out_map
    [edit]
    root@# set routing-options static route remote-prefix next-hop destination-ip retain no-readvertise
  2. Enable services such as SSH and Telnet.
    Note:

    You cannot log in to the router as the root user through Telnet. Root login is allowed only through SSH.

    content_copy zoom_out_map
    [edit]
    root@# set system services telnet 
  3. Commit the configuration to activate it on the router.
    content_copy zoom_out_map
    [edit] 
    root@# commit
footer-navigation