Basic Cisco and Juniper router Configuration

This article will help you understand and manage basic configuration of devices from different brands. With Cisco and Juniper router configurations, you will be able to manage network that is made of devices from other sellers, not only Cisco.  In that way, you will not be in problems when making some implementation, changes or troubleshooting connectivity issues on multi-brand network topologies.Basic configuration on Router of any kind consists of configuring hostname in the first place, and then passwords for different kinds of access lines. Access lines that must be configured in basic config are console port and telnet remote connection. After access lines we are approaching to interface configuration that consists of adding IP address and subnet mask and the command for enabling the interface. Optional is to configure the description of the interface that will be useful in the running-configuration examination and troubleshooting.

In short, basic config consists of:

  • Hostname
  • Enable Secret password
  • Console line
  • Telnet line
  • Interface
    • IP address and subnet mask
    • Enabling interface
    • Description (optional)

Topology View

Topology:
R1 - simple configuration topology

 

Cisco config

Basic configuration:

Router>
Router>enable
Router#Configure terminal
Router(config)#hostname R1
R1(config)#enable secret SECRETPASS
R1(config)#line console 0
R1(config-line)#password CISCO
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password CISCO
R1(config-line)#login
R1(config-line)#exit

R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#description this is LAN interface - default gateway
R1(config-if)#exit

R1(config)#interface serial 0/0
R1(config-if)#ip add 172.16.1.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#clock rate 64000
R1(config-if)#description this is WAN interface connected to R2
R1(config-if)#exit
R1(config)#end
R1#wr

Juniper config

# cli
 root@no-name>
 root@no-name> configure
[edit]
 root@no-name#
 root@R1# set system host-name R1
 root@R1# set system root-authentication SECRETPASS
 root@R1# set system root-authentication encrypted-password SECRETPASS
 root@R1# set system root-authentication ssh-rsa key
 root@R1# set system services telnet
 root@R1# edit interfaces ge-1/1/0
[edit interfaces ge-1/1/0]
 root@R1# set description New GigabitEthernet network card
[edit interfaces ge-1/1/0]
 root@R1# set unit 0 family inet address 192.168.1.1/24
[edit interfaces ge-1/1/0]
 root@R1# commit

 

Leave a Reply