Perform Initial Software Configuration for ACX7332 Routers
You can easily customize the factory-default configuration with just a few commands. Initially, you’ll need to make changes through the console port. After you configure the management port, you can access the ACX7332 using SSH and make additional configuration changes. You can always revert to the factory-default configuration whenever you want.
Have the following information ready before you begin customizing the router:
-
Hostname
-
Root authentication password
-
Management port IP address
-
Default gateway IP address
-
IP address and prefix length of remote prefixes
-
(Optional) SNMP read community, location, and contact information
-
Verify that the following default serial port settings are configured on your laptop or
desktop PC:
-
Baud Rate—9600
-
Flow Control—None
-
Data—8
-
Parity—None
-
Stop Bits—1
-
DCD State—Disregard
-
-
Connect the console port on the ACX7332 to a laptop or a desktop PC using the RJ-45
cable and RJ-45 to DB-9 adapter. The console (CON) port is the
RJ-45 port on the Routing Engine.
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 DB-9 adapter (JNP-CBL-RJ45-DB9)
-
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.
Note:If your laptop or desktop PC doesn't have a serial port, use a serial-to-USB adapter (not provided).
-
-
At the Junos OS Evolved login prompt, type root to log in.
You don't need to enter a password. If the software boots before you connect your laptop or desktop PC to the console port, you might need to press the Enter key for the prompt to appear.
re0 login: root
-
Start the CLI.
[vrf:none] root@re0:~# cli
-
Enter configuration mode.
root@re0> configure
-
Stop the chassis auto-upgrade
process.
[edit] root@re0# delete chassis auto-image-upgrade
-
Stop zero-touch provisioning (ZTP).
[edit] root@re0# delete system commit factory-settings
Note:ZTP is enabled on the ACX7332 in the factory-default configuration. You must stop ZTP before you configure any settings. Until you assign a root password and perform an initial commit, you might see ZTP-related messages on the console. You can safely ignore these messages while you configure the root password.
-
Add a password for the root administration user account.
[edit] root@re0# set system root-authentication plain-text-password New password: password Retype new password: password
-
Commit the configuration, and wait for the ZTP process to stop.
[edit] root@re0# commit
A message appears on the console, confirming that the ZTP process has stopped.[edit] root@# [ 511.430877] ztp.py[13237]: 2023-03-04 05:28:00 INFO: ZTP:(et-0/2/7) DHCP request timed out [ 511.432804] ztp.py[13237]: 2023-03-04 05:28:00 INFO: ZTP: checkZTPAbort: Upgrade detected pending abort [ 511.433586] ztp.py[13237]: 2023-03-04 05:28:00 INFO: ZTP: notifier loop user requested ZTP abort [ 511.485370] ztp.py[13237]: 2023-03-04 05:28:00 INFO: ZTP: exiting [ 511.580800] ztp.py[31898]: Notice: PID found for app ztp in /var/run/pid/ztp.pid is 13237.Executing command: (/usr/sbin/cleanzk -c /var/run/zkid/13237.id;rm /var/run/zkid/13237.id) [ 512.614206] ztp.py[31898]: rm: cannot remove '/var/run/zkid/13237.id': No such file or directory
-
(Optional) Give the router a name. If the name includes spaces, enclose the name in
quotation marks (“ ”).
[edit] root@re0# set system host-name host-name
-
Configure the default gateway.
[edit] root@re0# set routing-options static route 0.0.0.0/0 next-hop destination-ip
-
Configure the IP address and prefix length for the management port on the router. On
the ACX7332, the management port (MGMT) is the RJ-45 port on the
Routing Engine.
[edit] root@re0# set interfaces re0:mgmt-0 unit 0 family inet address address/prefix-length
-
(Optional) Configure specific static routes to remote prefixes if you do not want the
remote prefixes to use the default route.
[edit] root@re0# set routing-options static route address/prefix-length next-hop destination-ip
-
Enable Telnet service, if required.
[edit] root@re0# set system services telnet
Note:When Telnet is enabled, you cannot log in to the ACX7332 using root credentials. Root login is allowed only for SSH access.
-
Enable SSH service.
[edit] root@re0# set system services ssh
-
To allow users to log in to the router as
root
users through SSH, include the root-login statement.[edit system services ssh] root@re0# root-login (allow)
Note:By default, users are not allowed to log in to the router as root users through SSH.
-
Commit the configuration.
Your changed configuration becomes the active configuration for the router.
[edit] root@re0# commit