Minimal Configuration on a Juniper Router (JunOS)
Thought of putting down some of the basic things that needs to be done on Juniper Router, may it be M/MX/T/J-series in order for that to be connected and accessible on the network. So if we divide the tasks;
1. The first one is the rack it up, connecting the cables and power it up.
2. Then login to the router using the console port of the router (usually in the front).
3. Juniper Router does provide you the Management interface to be either a specific management port or a general port on it. Wouldn’t go into the details of it
4. Setup the IP address for the Management port.
5. Enable the needed access from network to the box itself.
After these steps, you essentially have the router up and running on the router, on which you can do your necessary configuration. I intend to cover them later across multiple posts.
So now to action; 1 & 2 is fairly straight forward and lets look at 3;
The Management Port is usually “fxp0” on the router – Specific Management Port (Out-Of-Band Management)
Or you can use one of your normal ports like “ge0/0/0” for the Management (In-Band Management).
First part is to assign an IP address to the management port:-
1: root@PE3-MX480% cli
2:
3: root@PE3-MX480> configure
4: [edit]
5: root@PE3-MX480# set interfaces fxp0 unit 0 family inet address 192.168.1.1/24
6:
Enabling Remote Access:- There are different protocols available, mainly SSH/Telnet/HTTP
So to enable these protocols on the management interface; follow this;
1: set system services ssh
2:
3: set system services ssh root-login allow
4: set system services ssh protocol-version v1
5: set system services ssh protocol-version v2
6:
7: set system services telnet
9:
10: set system services web-management http
As you can see, all SSH/Telnet and HTTP access is enabled and also you can see how to enable root login via SSH (By default not allowed).
After you configure all these, you have the access to this box via these protocols from the local network. You can verify it by issuing the command;
root@PE3-MX480> show configuration | display set
OR
root@PE3-MX480> show configuration (this should show the configuration in a C like syntax styled fashion)
One of the best part about