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 and other devices 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).
The RCB functions as a DHCP server and automatically assigns an IP address to the laptop or PC.
- 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 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
Configure the Default Gateway and Ethernet Interface
- Configure the default gateway.
root@# set system management-instance
root@# set routing-instances mgmt_junos routing-optins static route prefix/prefix-length 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 the static routes to remote prefixes
with access to the management port.
root@# set 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.
root@# set system services telnet
- Commit the configuration to activate it on the router.