Juniper Router Basic Configuration or Initial setup

Juniper Router Basic Configuration or Initial Setup. Most Juniper routers come with a console port that allows direct access to the device. Use a console cable to connect the router to a computer or terminal server. Ensure that you have terminal emulation software (like PuTTY or Tera Term) installed on your computer to access the router. Then Power on the Juniper router and observe the boot process. During the boot process, the router will perform self-tests and load the Junos operating system.

Once the router has booted up, you will be prompted to log in. Use the default username and password. The Juniper router's default username is "root," and the password might be empty or admin. After successful login, you'll be in operational mode. In this mode, you can view system information, check interfaces, and perform basic operational tasks.

Then you need to access the junos cli. Transition to the Junos CLI by typing CLI and pressing Enter. You are now in the CLI mode, ready to configure the router.

Basic Configuration Steps:

Create a New User:

Use the following command to create a new user. Replace <usernameP> with the desired username & Configure a password for the user. Replace <password> with the desired password, by using the following command:
#set system login user <username> authentication plain-text-password
After entering this command, you'll be prompted to enter the password.

Alternatively, you can use an encrypted password. setup to encrypted password Use the following command:
set system login user <username> authentication encrypted-password "<encrypted-password>"

*Change root user password:

Change the root user password using the following command:
#set system root-authentication plain-text-password 54321

*Setup Hostname & Management IP:

To make changes to the Juniper device hostname, you need to enter the configuration mode. Use the following command:
#set host-name <new-hostname>
Set up the management interface. In this example, let's assume the interface is ge-0/0/0. You can choose an available interface on your router:
#set ge-0/0/0 unit 0 family inet address <management-IP>/24

*Configure Interfaces:

First, you need to choose the interface you want to configure. For example, if configuring ge-0/0/2, use the following command:
#set interface ge-0/0/2 unit 0 family inet address 192.168.1.1/24

*Configure Default Route:

Set the default route using the static route type. Replace <next-hop> with the IP address of the next-hop router or gateway. set a static route then you need to follow this command:
#set routing-options static route 0.0.0.0/0 next-hop 192.168.1.254.

*Time Zone:

Set the time zone using the timezone command. Replace <time-zone> with the appropriate time zone for your geographical location.
#set system time-zone Asia/Dhaka

*Set DNS Servers:

Use the following command to configure the primary and secondary DNS servers:
#set system name-server <primary-DNS-IP>
#set system name-server <secondary-DNS-IP>

*Create vlan & set IP address:

Use the following command to create a VLAN & set IP address or How to create a VLAN in Juniper Router | Junos OS.
#set interfaces ae2 flexible-vlan-tagging
#set interfaces ae2 unit 321 description NIS-Erricssion2-IIG
#set interfaces ae2 unit 321 vlan-id 321
#set interfaces ae2 unit 321 family inet address 10.100.100.49/30

*Bandwidth Management & Control:

Bandwidth control on Juniper routers can be easily managed through the firewall. An interface-based rule has to be configured. Let's say I give 600 Mbps IIG to one of my clients. For that, we need to configure a Policer Rule. Then that policer rule should be saved in Input & Output of Vlan of IIG.
#set firewall policer Client1-IIG-BW if-exceeding bandwidth-limit 600m
#set firewall policer Client1-IIG-BW if-exceeding burst-size-limit 1m
#set firewall policer Client1-IIG-BW then discard

#set interfaces ae2 unit 3011 family inet policer input Client1-IIG-BW
#set interfaces ae2 unit 3011 family inet policer output Client1-IIG-BW

*Commit:

Save the Juniper router configuration at the end. Check out if the configuration is correct before saving. Follow the commands below.
commit check
commit
If the configuration is correct everything will show success. Otherwise, it will show an error if there is any configuration error. Errors must be resolved. Then save with Commit.

Post a Comment

Previous Post Next Post

Contact Form