Lab Manual For Jncia
Lab Manual For Jncia
Lab Manual For Jncia
(ENTERPRISE ROUTING)
CONTENTS:
Instructions:
user@R1>configure
[edit]
user@R1#exit
user@R1>
user@R1>configure
[edit]
user@R1#edit system
[edit system]
user@R1#set host-name juniper1
[edit system]
user@juniper1#exit
[edit]
user@juniper1#exit
Instructions:
user@R1>configure
[edit]
user@R1#edit system
[edit system]
user@R1#set domain-name mydomain.net
[edit system]
user@R1#exit
[edit]
user@R1#
10.4 : Lab Exercise 4 : Configure the Root Password (Encrypted Password)
Instructions:
user@R1>configure
[edit]
user@R1#edit system root-authentication
[edit system root-authentication]
user@R1#set encrypted-password 24adr3e
[edit system root-authentication]
user@R1#exit
[edit]
user@R1#
Description: For the Router to resolve hostnames into addresses, one or more DNS name servers
have to be configured.
Instructions:
user@R1>configure
[edit]
user@R1#edit system
[edit system]
user@R1#set name-server 196.20.32.15
[edit system]
user@R1#exit
[edit]
user@R1#
Instructions:
Description: In this lab, you configure so-0/0/1 interface under unit 0 and family inet on a router
with specified ip address and subnet mask. Choose R1 in the network diagram and exit.
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/1
[edit interfaces so-0/0/1]
user@R1#edit unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#set address 196.20.32.15/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#exit
[edit interfaces so-0/0/1]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#exit
user@R1>show interfaces so-0/0/1
Description: By default, an interface will be in up state. We need to issue disable command to
bring-down the interface.
Instructions:
1. View the information about interface serial 0
2. Bring serial 0 to no shutdown state
3. Now view the state of the interface serial 0
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#set disable
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#
Description: In this exercise, description to an interface is set by using set description command.
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#set description "interface-so-0/0/0"
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#
Description: The following lab configures the PPP encapsulation on the physical interface so-
0/0/0
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#set encapsulation ppp
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#
Description: By default, physical interfaces configured with Cisco HDLC or PPP encapsulation
send keepalive packets at 10-second intervals, use this lab to disable the sending of keepalives
and then enable it back on interface so-0/0/0.
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#set no-keepalives
[edit interfaces so-0/0/0]
user@R1#set keepalives 40 30 20
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#set keepalives 1000 12 12
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces fxp0
[edit interfaces fxp0]
user@R1#set speed 10m
[edit interfaces fxp0]
user@R1#exit
[edit]
user@R1#
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#edit unit 0
[edit interfaces so-0/0/0 unit 0]
user@R1#set bandwidth 1000k
[edit interfaces so-0/0/0 unit 0]
user@R1#exit
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#
Description: Hold-time value is used to damp interface transitions. When an interface goes from
up to down, it is not advertised to the rest of the system as being down until it has remained
down for the hold-time period. Similarly, an interface is not advertised as being up until it has
remained up for the hold-time period.
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#set hold-time up 200 down 200
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#
Description: This lab is used to configure the DTE clock-rate in serial clocking mode.
Instructions:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0 serial-options
[edit interfaces so-0/0/0 serial-options]
user@R1#set clock-rate 2.048mhz
[edit interfaces so-0/0/0 serial-options]
user@R1#exit
[edit]
user@R1#
Description : This lab exercise demonstrates configuring the gigabit ethernet interface on
a J-series router and also setting other basic
parameters like hostname, domain-name, name-server, backup router etc. Show command
is issued to verify the configuration set
on the router.
Instructions
user@R1>configure
[edit]
user@R1#edit system
[edit system]
user@R1#set host-name Router1
[edit system]
user@ Router1#set domain-name router.net
[edit system]
user@ Router1#set root-authentication encrypted-password vhvc#!
[edit system]
user@ Router1#set name-server 10.148.2.32
[edit system]
user@ Router1#set backup-router 192.168.2.34/24
[edit system]
user@ Router1#exit
[edit]
user@ Router1#edit interfaces
[edit interfaces]
user@ Router1#set ge-0/0/0 unit 0 family inet address 192.168.1.1/24
[edit interfaces]
user@ Router1#set ge-0/0/1 unit 0 family inet address 192.168.2.1/24
[edit interfaces]
user@ Router1#set ge-0/0/2 unit 0 family inet address 192.168.3.1/24
[edit interfaces]
user@ Router1#set ge-0/0/3 unit 0 family inet address 192.168.4.1/24
[edit interfaces]
user@ Router1#exit
[edit]
user@Router1#commit
commit complete
[edit]
user@ Router1#exit
user@Router1>show configuration
user@Router1>show interfaces brief
user@Router1>show interfaces terse
Description : This lab exercise demonstrates configuring sonet interface speed.
Instructions
1. Enter into interfaces hierarchy on R1
2. Set the sonet interface speed to OC48
user@R1>configure
[edit]
user@R1#edit interfaces
[edit interfaces]
user@R1#set so-0/0/0 speed OC48
[edit interfaces]
Instructions
1. Display environmental information about the routing platform chassis,including the
temperature and information about the fans, power supplies, and Routing Engine
2. Displays a list of all Flexible Physical Interface Card Concentrators (FPCs) and PICs
installed in the router chassis, including the hardware version level and serial number.
3. Displays the FIC information, such as the FIC type, ASIC type, operating status, PIC
version,and the amount of time the FIC has been online.The command output also displays port
cable information.
Description: Configure static route 172.16.1.0 mask 255.255.255.0 with next hop address of
192.16.2.1.
prefix mask: is the ip route prefix and mask for the destination.
address|interface: Use either the next hop router ip or the local router outbound interface used
to reach the destination.
distance: is the administrative distance and an optional parameter.
Instructions:
1. Enter into Global Configuration Mode
2. Configure a static route to a destination sub-network (172.16.1.0) with 24-bit subnet mask and
next hop IP address of 172.16.2.1.
user@R1>configure
[edit]
user@R1#edit routing-options
[edit routing-options]
user@R1#edit static route 172.16.1.0/24
[edit routing-options static route 172.16.1.0/24]
user@R1#set next-hop 172.16.2.1
[edit routing-options static route 172.16.1.0/24]
user@R1#exit
[edit routing-options]
user@R1#exit
[edit]
user@R1#
Instructions:
1. Assign the IP address of all the devices as given below and commit the configurations
On R1:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#edit unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#set address 192.168.1.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#exit
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#edit interfaces so-0/0/1
[edit interfaces so-0/0/1]
user@R1#edit unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#set address 192.168.3.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#exit
[edit interfaces so-0/0/1]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#
On R2:
user@R2>configure
[edit]
user@R2#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R2#edit unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#set address 192.168.3.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#exit
[edit interfaces so-0/0/0]
user@R2#exit
[edit]
user@R2#edit interfaces so-0/0/1
[edit interfaces so-0/0/1]
user@R2#edit unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#set address 192.168.2.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#exit
[edit interfaces so-0/0/1]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#
On R3:
user@R3>configure
[edit]
user@R3#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R3#edit unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#set address 192.168.1.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#exit
[edit interfaces so-0/0/0]
user@R3#exit
[edit]
user@R3#edit interfaces so-0/0/1
[edit interfaces so-0/0/1
user@R3#edit unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#set address 192.168.2.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#exit
[edit interfaces so-0/0/1]
user@R3#exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#
On R1:
user@R1>ping 192.168.2.2
user@R1>ping 192.168.2.1
Description: The purpose of this lab is to configure IP Address on all the devices and test
for telnet command. Applicable network diagram is shown below:
Instructions:
1.Assign the IP address of all the devices as given below and commit the configurations
2. From R1 issue a telnet command to R2 and R3 and use quit command to close the telnet
connection
3. Issue show system users command on R2 to view the logged in users on the router
4. Commands to be executed:
On R1:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R1#edit unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#set address 192.168.1.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#exit
[edit interfaces so-0/0/0]
user@R1#exit
[edit]
user@R1#edit interfaces so-0/0/1
[edit interfaces so-0/0/1]
user@R1#edit unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#set address 192.168.3.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#exit
[edit interfaces so-0/0/1]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#
On R2:
user@R2>configure
[edit]
user@R2#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R2#edit unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#set address 192.168.3.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#exit
[edit interfaces so-0/0/0]
user@R2#exit
[edit]
user@R2#edit interfaces so-0/0/1
[edit interfaces so-0/0/1]
user@R2#edit unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#set address 192.168.2.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#exit
[edit interfaces so-0/0/1]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#
On R3:
user@R3>configure
[edit]
user@R3#edit interfaces so-0/0/0
[edit interfaces so-0/0/0]
user@R3#edit unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#set address 192.168.1.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#exit
[edit interfaces so-0/0/0]
user@R3#exit
[edit]
user@R3#edit interfaces so-0/0/1
[edit interfaces so-0/0/1]
user@R3#edit unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#set address 192.168.2.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#exit
[edit interfaces so-0/0/1]
user@R3#exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#
On R1:
user@R1>telnet 192.168.2.2
user@R1>telnet 192.168.2.1
user@R2>show system users
Instructions:
Commands to be executed:
On R1:
user@R1>configure
[edit]
user@R1#edit interfaces se-0/0/0
[edit interfaces se-0/0/0]
user@R1#edit unit 0 family inet
[edit interfaces se-0/0/0 unit 0 family inet]
user@R1#set address 192.168.3.1/24
[edit interfaces se-0/0/0 unit 0 family inet]
user@R1#exit
[edit interfaces se-0/0/0]
user@R1#exit
[edit]
user@R1#edit interfaces se-0/0/1
[edit interfaces se-0/0/1]
user@R1#edit unit 0 family inet
[edit interfaces se-0/0/1 unit 0 family inet]
user@R1#set address 192.168.1.1/24
[edit interfaces se-0/0/1 unit 0 family inet]
user@R1#exit
[edit interfaces se-0/0/1]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#
On R2:
user@R2>configure
[edit]
user@R2#edit interfaces se-0/0/0
[edit interfaces se-0/0/0]
user@R2#edit unit 0 family inet
[edit interfaces se-0/0/0 unit 0 family inet]
user@R2#set address 192.168.1.2/24
[edit interfaces se-0/0/0 unit 0 family inet]
user@R2#exit
[edit interfaces se-0/0/0]
user@R2#exit
[edit]
user@R2#edit interfaces se-0/0/1
[edit interfaces se-0/0/1]
user@R2#edit unit 0 family inet
[edit interfaces se-0/0/1 unit 0 family inet]
user@R2#set address 192.168.2.1/24
[edit interfaces se-0/0/1 unit 0 family inet]
user@R2#exit
[edit interfaces se-0/0/1]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#
On R3:
user@R3>configure
[edit]
user@R3#edit interfaces se-0/0/0
[edit interfaces se-0/0/0]
user@R3#edit unit 0 family inet
[edit interfaces se-0/0/0 unit 0 family inet]
user@R3#set address 192.168.3.2/24
[edit interfaces se-0/0/0 unit 0 family inet]
user@R3#exit
[edit interfaces se-0/0/0]
user@R3#exit
[edit]
user@R3#edit interfaces se-0/0/1
[edit interfaces se-0/0/1]
user@R3#edit unit 0 family inet
[edit interfaces se-0/0/1 unit 0 family inet]
user@R3#set address 192.168.2.2/24
[edit interfaces se-0/0/1 unit 0 family inet]
user@R3#exit
[edit interfaces se-0/0/1]
user@R3#exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#
On R1:
user@R1>traceroute 192.168.2.2
Description: Use this lab to configure the routing policy on router, by specifying the match
condition to accept all rip routes, that is checked against the source address of the route
advertised.
Instructions:
user@R1>configure
[edit]
user@R1#edit policy-options policy-statement riproutes
[edit policy-options policy-statement riproutes]
user@R1#edit term AdvRip
[edit policy-options policy-statement riproutes term AdvRip]
user@R1#edit from
[edit policy-options policy-statement riproutes term AdvRip from]
user@R1#set protocol rip
[edit policy-options policy-statement riproutes term AdvRip from]
user@R1#exit
[edit policy-options policy-statement riproutes term AdvRip]
user@R1#edit then
[edit policy-options policy-statement riproutes term AdvRip then]
user@R1#set accept
[edit policy-options policy-statement riproutes term AdvRip then]
user@R1#exit
[edit policy-options policy-statement riproutes term AdvRip]
user@R1#exit
[edit policy-options policy-statement riproutes]
user@R1#exit
[edit]
user@R1#
Description: Use this lab to configure the routing policy on router, by specifying the match
condition to reject all rip routes, that is checked against the source address of the route
advertised.
Instructions:
user@R1>configure
[edit]
user@R1#edit policy-options policy-statement riproutes
[edit policy-options policy-statement riproutes]
user@R1#edit term AdvRip
[edit policy-options policy-statement riproutes term AdvRip]
user@R1#edit from
[edit policy-options policy-statement riproutes term AdvRip from]
user@R1#set protocol rip
[edit policy-options policy-statement riproutes term AdvRip from]
user@R1#exit
[edit policy-options policy-statement riproutes term AdvRip]
user@R1#edit then
[edit policy-options policy-statement riproutes term AdvRip then]
user@R1#set reject
[edit policy-options policy-statement riproutes term AdvRip then]
user@R1#exit
[edit policy-options policy-statement riproutes term AdvRip]
user@R1#exit
[edit policy-options policy-statement riproutes]
user@R1#exit
[edit]
user@R1#
Description: Use this lab to configure the RIP on router, by applying an export and import
policies at their respective hierarchical levels.
Instructions:
user@R1>configure
[edit]
user@R1#edit protocols rip
[edit protocols rip]
user@R1#edit group neighborRouters
[edit protocols rip group neighborRouters]
user@R1#set export riproutes
[edit protocols rip group neighborRouters]
user@R1#edit neighbor so-0/0/0
[edit protocols rip group neighborRouters neighbor so-0/0/0]
user@R1#set import riproutes
[edit protocols rip group neighborRouters neighbor so-0/0/0]
user@R1#exit
[edit protocols rip group neighborRouters]
user@R1#exit
[edit protocols rip]
user@R1#exit
[edit]
user@R1#
Description: The purpose of this lab is to configure RIP Routing and other required commands
to advertise these rip routes on all the devices and test for ping command. Applicable network
diagram is given below:
Note: .1 on router 1 So refers to 192.168.1.1. Similarly other IP addresses to be interpreted.
Instructions:
On R1:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#set address 192.168.3.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#set address 192.168.1.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit policy-options policy-statement R1pol term R1term
[edit policy-options policy-statement R1pol term R1term]
user@R1#edit from
[edit policy-options policy-statement R1pol term R1term from]
user@R1#set protocol rip
[edit policy-options policy-statement R1pol term R1term from]
user@R1#exit
[edit policy-options policy-statement R1pol term R1term]
user@R1#edit then
[edit policy-options policy-statement R1pol term R1term then]
user@R1#set accept
[edit policy-options policy-statement R1pol term R1term then]
user@R1#exit
[edit policy-options policy-statement R1pol term R1term]
user@R1#exit
[edit]
user@R1#edit protocols rip group R1grp
[edit protocols rip group R1grp]
user@R1#set export R1pol
[edit protocols rip group R1grp]
user@R1#edit neighbor so-0/0/0
[edit protocols rip group R1grp neighbor so-0/0/0]
user@R1#set import R1pol
[edit protocols rip group R1grp neighbor so-0/0/0]
user@R1#exit
[edit protocols rip group R1grp]
user@R1#edit neighbor so-0/0/1
[edit protocols rip group R1grp neighbor so-0/0/1]
user@R1#set import R1pol
[edit protocols rip group R1grp neighbor so-0/0/1]
user@R1#exit
[edit protocols rip group R1grp]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#exit
user@R1>show rip neighbor
On R2:
user@R2>configure
[edit]
user@R2#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#set address 192.168.1.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#set address 192.168.2.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit policy-options policy-statement R2pol term R2term
[edit policy-options policy-statement R2pol term R2term]
user@R2#edit from
[edit policy-options policy-statement R2pol term R2term from]
user@R2#set protocol rip
[edit policy-options policy-statement R2pol term R2term from]
user@R2#exit
[edit policy-options policy-statement R2pol term R2term]
user@R2#edit then
[edit policy-options policy-statement R2pol term R2term then]
user@R2#set accept
[edit policy-options policy-statement R2pol term R2term then]
user@R2#exit
[edit policy-options policy-statement R2pol term R2term]
user@R2#exit
[edit]
user@R2#edit protocols rip group R2grp
[edit protocols rip group R2grp]
user@R2#set export R2pol
[edit protocols rip group R2grp]
user@R2#edit neighbor so-0/0/0
[edit protocols rip group R2grp neighbor so-0/0/0]
user@R2#set import R2pol
[edit protocols rip group R2grp neighbor so-0/0/0]
user@R2#exit
[edit protocols rip group R2grp]
user@R2#edit neighbor so-0/0/1
[edit protocols rip group R2grp neighbor so-0/0/1]
user@R2#set import R2pol
[edit protocols rip group R2grp neighbor so-0/0/1]
user@R2#exit
[edit protocols rip group R2grp]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#exit
user@R2>show rip neighbor
On R3:
user@R3>configure
[edit]
user@R3#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#set address 192.168.3.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#set address 192.168.2.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit policy-options policy-statement R3pol term R3term
[edit policy-options policy-statement R3pol term R3term]
user@R3#edit from
[edit policy-options policy-statement R3pol term R3term from]
user@R3#set protocol rip
[edit policy-options policy-statement R3pol term R3term from]
user@R3#exit
[edit policy-options policy-statement R3pol term R3term]
user@R3#edit then
[edit policy-options policy-statement R3pol term R3term then]
user@R3#set accept
[edit policy-options policy-statement R3pol term R3term then]
user@R3#exit
[edit policy-options policy-statement R3pol term R3term]
user@R3#exit
[edit]
user@R3#edit protocols rip group R3grp
[edit protocols rip group R3grp]
user@R3#set export R3pol
[edit protocols rip group R3grp]
user@R3#edit neighbor so-0/0/0
[edit protocols rip group R3grp neighbor so-0/0/0]
user@R3#set import R3pol
[edit protocols rip group R3grp neighbor so-0/0/0]
user@R3#exit
[edit protocols rip group R3grp]
user@R3#edit neighbor so-0/0/1
[edit protocols rip group R3grp neighbor so-0/0/1]
user@R3#set import R3pol
[edit protocols rip group R3grp neighbor so-0/0/1]
user@R3#exit
[edit protocols rip group R3grp]
user@R3#exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#exit
user@R3>show rip neighbor
On R1:
user@R1>ping 192.168.2.2
user@R1>ping 192.168.2.1
14.2 : Lab Exercise 2 : Ping test by configuring OSPF with multiple areas
Description: The purpose of this lab is to configure OSPF on all the devices with multiple
areas including backbone (area 0) area and test for ping command. Applicable network diagram
is as given below:
Note: .1 on router 1 So refers to 192.168.1.1. Similarly other IP addresses to be interpreted.
Instructions:
On R1:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#set address 192.168.3.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#set address 192.168.1.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit protocols ospf area 0 interface so-0/0/0
[edit protocols ospf area 0 interface so-0/0/0]
user@R1#exit
[edit]
user@R1#edit protocols ospf area 10 interface so-0/0/1
[edit protocols ospf area 10 interface so-0/0/1]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#
On R2:
user@R2>configure
[edit]
user@R2#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#set address 192.168.1.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#set address 192.168.2.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 10 interface so-0/0/0
[edit protocols ospf area 10 interface so-0/0/0]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 20 interface so-0/0/1
[edit protocols ospf area 20 interface so-0/0/1]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#
On R3:
user@R3>configure
[edit]
user@R3#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#set address 192.168.3.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#set address 192.168.2.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit protocols ospf area 0 interface so-0/0/0
[edit protocols ospf area 0 interface so-0/0/0]
user@R3#exit
[edit]
user@R3#edit protocols ospf area 20 interface so-0/0/1
[edit protocols ospf area 20 interface so-0/0/1]
user@R3#exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#
On R1:
user@R1>ping 192.168.2.2
user@R1>ping 192.168.2.1
Instructions:
user@R1>configure
[edit]
user@R1#edit protocols ospf
[edit protocols ospf]
user@R1#edit area 0
[edit protocols ospf area 0]
user@R1#edit interface so-0/0/0
[edit protocols ospf area 0 interface so-0/0/0]
user@R1#exit
[edit protocols ospf area 0]
user@R1#edit interface so-0/0/1
[edit protocols ospf area 0 interface so-0/0/1]
user@R1#exit
[edit protocols ospf area 0]
user@R1#exit
[edit protocols ospf]
user@R1#exit
[edit]
user@R1#
Description: The purpose of this lab is to configure OSPF on all the devices with an area of 100
and to verify the configuration using show commands of OSPF. Applicable network diagram is
shown below:
Instructions:
On R1:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#set address 192.168.3.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#set address 192.168.1.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit protocols ospf area 100 interface so-0/0/0
[edit protocols ospf area 100 interface so-0/0/0]
user@R1#exit
[edit]
user@R1#edit protocols ospf area 100 interface so-0/0/1
[edit protocols ospf area 100 interface so-0/0/1]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#
On R2:
user@R2>configure
[edit]
user@R2#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#set address 192.168.1.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#set address 192.168.2.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 100 interface so-0/0/0
[edit protocols ospf area 100 interface so-0/0/0]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 100 interface so-0/0/1
[edit protocols ospf area 100 interface so-0/0/1]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#
On R3:
user@R3>configure
[edit]
user@R3#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#set address 192.168.3.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#set address 192.168.2.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit protocols ospf area 100 interface so-0/0/0
[edit protocols ospf area 100 interface so-0/0/0]
user@R3#exit
[edit]
user@R3#edit protocols ospf area 100 interface so-0/0/1
[edit protocols ospf area 100 interface so-0/0/1]
user@R3#exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#
On R1: