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
- 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.
- Start the CLI.
Set a Root Password and an Optional Hostname
- Add a password to the root administration user account.
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 (“ ”).
root@# set system host-name host-name
- (Optional) Create a user account.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.root# set system login user user-name class super-user
Configure the Default Gateway and Ethernet Interface
- Configure the default gateway.
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
root@# set interfaces re0:mgmt-0 unit 0 family inet address ip-address/prefix-length
Although the CLI permits you to configure two management Ethernet interfaces within the same subnet, the PTX10004 supports only one interface.
The management ports—
MGMTfor RJ-45 connections) and
for fiber connections)—are on the front of the RCB.
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.
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.
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:
root@# set system services ssh root-login allow
To enable Telnet:
root@# set system services telnet
- Commit the configuration to activate it on the router.