Step 2: Up and Running
Now that the PTX10004 is powered on, let’s do some initial configuration to get the router up and running on the network. It’s simple to provision and manage the PTX10004 on your network.
The PTX10004 supports zero-touch provisioning (ZTP) which autoinstalls a software image and device-specific configuration file when you connect the PTX10004 and other devices on your network. To use ZTP, you’ll need to configure settings on a DHCP server. For more information, see Zero Touch Provisioning Using DHCP Options.
Connect to the Router
- Connect the console port to a laptop or PC using the supplied
RJ-45 cable and RJ-45 to DB-9 adapter. The console (
CONSOLE
) port is located on the Routing and Control Board (RCB). - Verify that your laptop or PC has the following default
values:
Baud Rate—9600
Flow Control—None
Data—8
Parity—None
Stop Bits—1
DCD State—Disregard
- Have the following information ready before you start
to configure the PTX10004:
The password you’ll set for the root user
The name on the system that the PTX10004 will be known as (hostname)
The IP address and prefix of the default gateway router
The IP address and prefix length information for the management Ethernet interface
The IP address and prefix length of remote prefixes
- Log in as root. There is no
password. If the software boots before you connect to the console
port, you might need to press the Enter key for the prompt to appear.
Amnesiac <ttyd0>
login: root
- Start the CLI.
root@% cli
Set a Root Password and an Optional Hostname
- Add a password to the root administration user account.
[edit]
root@# set system root-authentication plain-text-password
New password: password
Retype new password: password
- (Optional) Configure the name of the router. If the name
includes spaces, enclose the name in quotation marks (“ ”).
[edit]
root@# set system host-name host-name
- (Optional) Create a user account.[edit]root# set system login user user-name authentication plain-text-passwordNew password: passwordRetype new password: password
- (Optional) Set the user account class to super-user.[edit]root# set system login user user-name class super-user
Configure the Default Gateway and Ethernet Interface
- Configure the default gateway.
[edit]
root@# set system management-instance
root@# set routing-instances mgmt_junos routing-options static route 0.0.0.0/0 next-hop default-gateway-ip-address
- Configure the IP address and prefix length for the router
management interface.
[edit]
root@# set interfaces re0:mgmt-0 unit 0 family inet address ip-address/prefix-length
Caution Although the CLI permits you to configure two management Ethernet interfaces within the same subnet, the PTX10004 supports only one interface.
Note The management ports—
em0
orre0:mgmt-0
(MGMT
for RJ-45 connections) andem1
(also labeled
for fiber connections)—are on the front of the RCB.MGMT
Configure Optional Routes, Services, and Commit the Configuration
- (Optional) Configure static routes for destinations reachable
over the management interface that should not be routed using the
previously defined default route.
[edit]
root@# set routing-instances mgmt_junos routing-options static route remote-prefix next-hop destination-ip retain no-readvertise
- Enable services such as SSH and Telnet.
Note You won’t be able to log in to the router as the root user through Telnet. Root login is allowed only through SSH.
To enable SSH:
[edit]
root@# set system services ssh root-login allow
To enable Telnet:
[edit]
root@# set system services telnet
- Commit the configuration to activate it on the router.
[edit]
root@# commit