Basic Router Configuration : Juniper J2300, J4350 and J6350 routers

Today I am going to talk about the basic configuration on Juniper J2300 router as asked by many of the followers. We will set up the basic CLI commands where we will set up the IP address on the interfaces, Configuring the default route for Ipv4 packets, setting up the router host name. 

As it is the first article on the juniper basic configuration, we will take care the above-mentioned commands in the Juniper routers as of now. We will take care the configuration of the dynamic protocol like BGP, OSPF and IS-IS in our next article.

Fig 1.1- Basic configuration on Juniper Routers

Step-1
From the CLI, enter configuration mode:
root> configure
root#

Step-2
Set the IP addresses of the built-in Ethernet ports on Juniper J2300 router
root# set interfaces fe-0/0/0 unit 0 family inet address 192.168.1.1/24
root# set interfaces fe-0/0/1 unit 0 family inet address 192.168.2.1/24

Set the IP addresses of the built-in Ethernet ports on Juniper J4350 and J6350 router
root# set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24
root# set interfaces ge-0/0/1 unit 0 family inet address 192.168.2.1/24
root# set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24
root# set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24

The IP address and the interfaces used in the above mentioned CLI configuration is for the demo purposes and has no relevance with any of the enterprise network.

Step-3
Set a default route (default gateway) for IPv4 packets
root# set routing-options static route 192.168.1.254/24 next-hop 10.1.1.50
root# set routing-options static route destination-prefix next-hop address

Step-4
Set the hostname and Save your configuration settings and activate them on the Services Router
root# set system host-name XPRoute
root# commit