SSFJUN
SSFJUN
Highlights
Lab Guide
Juniper Networks reserves the right to change, modify, transfer, or otherwise revise this publication without notice.
YEAR 2000 NOTICE
Juniper Networks hardware and software products do not suffer from Year 2000 problems and hence are Year 2000 compliant. The Junos operating system has
no known time-related limitations through the year 2038. However, the NTP application is known to have some difficulty in the year 2036.
SOFTWARE LICENSE
The terms and conditions for using Juniper Networks software are described in the software license provided with the software, or to the extent applicable, in an
agreement executed between you and Juniper Networks, or Juniper Networks agent. By using Juniper Networks software, you indicate that you understand and
agree to be bound by its license terms and conditions. Generally speaking, the software license restricts the manner in which you are permitted to use the Juniper
Networks software, may contain prohibitions against certain uses, and may state conditions under which the license is automatically terminated. You should
consult the software license for further details.
Document Conventions
Franklin Gothic Normal text. Most of what you read in the Lab Guide and
Student Guide.
CLI Input Text that you must enter. lab@San_Jose> show route
GUI Input Select File > Save, and type config.ini
in the Filename field.
CLI Undefined Text where the variable’s value is the Type set policy policy-name.
user’s discretion or text where the
ping 10.0.x.y
variable’s value as shown in the lab
GUI Undefined guide might differ from the value the Select File > Save, and type filename in
user must input according to the lab the Filename field.
topology.
www.juniper.net •1
2• www.juniper.net
Lab 0
Introduction to the Juniper Networks Virtual Lab
Overview
Lab 0 describes the basic procedures for accessing the Juniper Networks Virtual Lab (vLab)
environment using a standard Web browser.
The vLabs help partners receive hands-on training through a virtual portal which is available
24 hours a day, 7 days a week. This is not a simulator, but live equipment to promote learning
and development for interested partners in association with the Juniper Networks Partner
Learning Academy.
The vLab exercises assist a student in becoming proficient at installing, configuring, and
troubleshooting Juniper products. The time needed to complete each course track and the
associated virtual lab exercises will vary. You will need your Juniper partner login to access the
virtual lab website.
Once logged in, access is granted on a first come, first served basis. The system will check to
see if the selected vLab has a lab environment available. If a vLab environment for the selected
lab is available, access is granted. If a vLab environment for the selected vLab is not available,
you will be asked to try again later. The vLabs are also available for dedicated instructor-led
courses on an as-needed basis.
Each of the vLab environments is duplicated multiple times, making it more likely that a vLab
environment will be available for you to use.
Note
We recommend that you read through Lab 0 prior to
starting your lab. The guide provides important
information regarding accessing the lab
environment and the lab exercises. Lab 0 is the
same for all vLabs.
The first step in accessing the vLabs is to go to the vLab website. To access the vLab website,
type or copy and paste the URL shown below into a web browser and follow the link provided on
the page to access the Virtual Labs:
https://virtuallabs.juniper.net
If you are already logged into the Juniper Networks Partner Learning Academy or Partner
Center, you should already be logged into the Virtual Labs site. However, if you are not logged in
to the Learning Academy or Partner Center, a login screen will be presented, as shown below.
Once you have successfully logged in, you will be presented with the Course Management
homepage, which will look similar to the image shown below.
Find the lab you wish to enter from amongst the tiles presented in the Courses Catalog on the
Course Management homepage. You can use Search courses in the upper left of the
screen if needed. In the default view the courses are presented as tiles, as shown in the first
image below. You can also click List, located on the right of the blue menu bar, to display the
course tiles as an alphabetized list, as shown in the second image below.
Clicking on a tile’s image will show you a high-level diagram of the lab topology (use the back
button on your browser to return to the Course Management page). For additional information
regarding a particular lab, click the More Info link. When you are ready to enter the lab
environment, click the Reserve button.
Once you are on this lab environment page and setup is finished, you can begin the lab
exercises available in the lab guide for the selected course (you should begin with Lab 1 and
sequentially work through the lab exercises). A timer in the blue menu bar will show you how
much time you have left in your reservation to complete the lab exercises.
Step 3.3
When you are ready to leave the lab environment, click the END icon located on the right side
of the blue menu bar, as shown in the image below. The environment will go into a Teardown
process. You can leave the lab environment page while the Teardown process is occurring.
Step 3.5
Upon clicking OK, the lab environment will begin the configuration teardown/reset process,
your reservation timer will end, and the lab environment you were using will be released.
The Course Management menu in the upper left of the screen provides a drop down menu so
that you can return to the Courses page if you want to start another course, or you can go to
the Reservations page. The Reservations page, shown in the first image below, shows a history
of the vLabs you have accessed.
You can logout of the Virtual Lab site from either the Course Management, Reservations, or lab
environment pages by clicking on your user name in the upper right of the screen and selecting
Exit Virtual Labs from the drop down menu, as shown in the second image below.
Overview
This lab introduces you to the Junos OS command-line interface (CLI). In this lab, you will
familiarize yourself with various CLI operational mode features.
By completing this lab, you will perform the following tasks:
• Log in to the CLI.
• Explore the Junos OS CLI operational mode.
The goal of this lab part is for you to become familiar with the access details used to
connect to the lab equipment. Once you are familiar with the access details, you will
use the CLI to log in to your designated device.
Step 1.1
Once you are in the lab environment and the setup process has finished (see Lab 0
for instructions regarding entering a lab environment), access the SRX1 CLI by
hovering the mouse pointer over the tile that displays “(srx1)” in the upper right
corner. Then, hover the mouse pointer over the Action icon that appears
(downward pointing triangle icon) and select Console from the menu that appears.
Step 1.2
A new tab, displaying the CLI for SRX1, will open in the browser. You might have to
press Enter once to display the prompt. Do not close any tabs until instructed to do
so.
Log in as user lab with the password lab123.
login: lab
Password:
In this part, you will use the CLI to become familiar with operational mode. You will
also gain experience with some of the tools and functionality available within
operational mode.
Step 2.1
Determine what system information you can clear from the operational mode
command prompt. Press the space bar at the ---(more)--- prompt to continue
the output.
lab@srxB-1> clear ?
lab@srxB-1> clear ?
Possible completions:
amt Show AMT Protocol information
arp Clear address resolution information
auto-configuration Clear auto-configuration action
bfd Clear Bidirectional Forwarding Detection information
bgp Clear Border Gateway Protocol information
bridge Clear learned Layer 2 MAC address information
chassis Clear chassis information
class-of-service Clear class-of-service (CoS) debug information
database-replication Clear database replication information
dhcp Clear DHCP information
dhcpv6 Clear DHCPv6 information
dot1x Clear 802.1X session
esis Clear end system-to-intermediate system information
ethernet-switching Clear ethernet switching information
fabric Clear RPDF Internal data structures
firewall Clear firewall counters
gvrp Clears Generic VLAN Registration Protocol information
helper Clear port-forwarding helper information
igmp Clear Internet Group Management Protocol information
igmp-snooping Clear IGMP snooping information
interfaces Clear interface information
ipv6 Clear IP version 6 information
isdn Clear Integrated Services Digital Network information
isis Clear Intermediate System-to-Intermediate System
information
l2-learning Clear learned Layer 2 MAC address information
lacp Clear Link Aggregation Control Protocol information
ldp Clear Label Distribution Protocol information
lldp Clear Link Layer Discovery Protocol information
log Clear contents of log file
mld Clear multicast listener discovery information
mld-snooping Clear MLD snooping information
monitor Clear monitor information
mpls Clear mpls information
msdp Clear Multicast Source Discovery Protocol information
multicast Clear multicast information
network-access Clear network-access related information
oam Clear Operation, Administration, Management information
ospf Clear Open Shortest Path First information
ospf3 Clear Open Shortest Path First version 3 information
Step 2.2
Hit Enter to remove Clear from the prompt. Next experiment with command
completion by entering show i the press the spacebar.
lab@srxB-1> show i<spacebar>
^
'i' is ambiguous.
Possible completions:
iccp Show Inter Chassis Control Protocol information
igmp Show Internet Group Management Protocol information
igmp-snooping Show IGMP snooping information
ingress-replication Show Ingress-Replication tunnel information
interfaces Show interface information
ipv6 Show IP version 6 information
isdn Show Integrated Services Digital Network information
isis Show Intermediate System-to-Intermediate System
information
Step 2.3
If you wanted to display interface related information you would add characters to
disambiguate your command. Use the spacebar or Tab key for automatic command
completion. Enter show int then press the spacebar which will complete the
word interfaces.
Note
You can return to the command prompt
without scrolling through all of the
generated output from a command. When
you see ---(more)--- displayed in this
next example, press ‘q’ to abort the
operation and return to the command
prompt.
Step 2.5
Verify that the CLI will not let you complete invalid commands by trying to enter the
command show ip interface brief.
lab@srxB-1> show ip<spacebar>
Step 2.6
Enter a show route command followed by a show system users command.
You are entering these commands to demonstrate command history recall. When
finished, enter the keyboard sequences indicated to answer the related questions.
lab@srxB-1> show route
inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
Step 2.7
A large portion of the Junos OS documentation is available directly from the CLI. You
can retrieve high-level topics using the help topic command, whereas you can
obtain detailed configuration-related information with the help reference
command.
Use the backspace key to clear the previous command. Use the help reference
command along with the CLI question-mark operator (?) to find detailed information
about configuring a system hostname.
Syntax
host-name hostname;
Hierarchy Level
www.juniper.net Junos Operating System Highlights • Lab 1–7
Junos Operating System Highlights
[edit system]
Release Information
Description
Options
Related Topics
[edit]
lab@srxB-1#
Step 3.2
Display the interfaces portion of the candidate configuration.
[edit]
lab@srxB-1# show interfaces
ge-0/0/0 {
description "MGMT Interface - DO NOT DELETE";
unit 0 {
family inet {
address 10.210.41.229/27;
}
}
}
Step 3.3
Do not close any browser tabs. You will return to the SRX1 CLI tab to perform the
exercises in Lab 2.
STOP
You have completed Lab 1. Please return to the course and complete
the next section before proceeding to Lab 2.
Overview
This lab continues to explore the functionality of the Junos OS command-line interface
(CLI). In this lab, you will familiarize yourself with various CLI configuration mode features.
By completing this lab, you will perform the following tasks:
• Explore the Junos OS CLI using configuration mode.
• Save, view, and use a rescue configuration.
In this part, you will use the CLI to explore configuration mode.
Step 1.1
To begin this lab, move to the [edit protocols ospf] portion of the hierarchy.
[edit]
lab@srxB-1# edit protocols ospf
[edit]
lab@srxB-1#
Note
If you have not already done so, return to
the [edit] hierarchy level using one of
the available methods.
Step 1.2
Next, try to display the status of chassis hardware with a show chassis
hardware operational command while in configuration mode.
[edit]
lab@srxB-1# show chassis hardware
^
syntax error.
[edit]
lab@srxB-1# run show chassis hardware
Hardware inventory:
Item Version Part number Serial number Description
Chassis BD5009AA0022 SRX240H2
Routing Engine REV 37 750-024366 AABA9253 RE-SRX240H2
FPC 0 FPC
PIC 0 16x GE Base PIC
Power Supply 0
Step 1.3
Try to return to operational mode by entering an exit command.
[edit]
lab@srxB-1# exit
The configuration has been changed but not committed
Exit with uncommitted changes? [yes,no] (yes)
Exit aborted
[edit]
lab@srxB-1# show | compare rollback 0
[edit]
lab@srxB-1#
[edit]
lab@srxB-1# rollback 0
load complete
[edit]
lab@srxB-1# exit
Exiting configuration mode
lab@srxB-1>
In this part, you will save, display, load, and delete a rescue configuration using the
Junos OS CLI.
Lab 2–4 • Configuring Junos OS Using the CLI www.juniper.net
Junos Operating System Highlights
Step 2.1
Save the active configuration as the rescue configuration.
lab@srxB-1> request system configuration rescue save
lab@srxB-1
Step 2.2
Display the contents of the recently saved rescue configuration.
lab@srxB-1> file show /config/rescue.conf.gz
## Last changed: 2016-04-07 13:52:08 UTC
version 12.1X46-D40.2;
system {
host-name srxB-1;
root-authentication {
encrypted-password "$1$KI99zGk6$MbYFuBbpLffu9tn2.sI7l1";
ssh-dsa "ssh-dss
AAAAB3NzaC1kc3MAAACBAMQrfP2bZyBXJ6PC7XXZ+MzErI8Jl6jah5L4/
O8BsfP2hC7EvRfNoX7MqbrtCX/9gUH9gChVuBCB+ERULMdgRvM5uGhC/
gs4UX+4dBbfBgKYYwgmisM8EoT25m7qI8ybpl2YZvHNznvO8h7kr4kpYuQEpKvgsTdH/
Jle4Uqnjv7DAAAAFQDZaqA6QAgbW3O/
zveaLCIDj6p0dwAAAIB1iL+krWrXiD8NPpY+w4dWXEqaV3bnobzPC4eyxQKBUCOr80Q5YBlWXVBH
x9elwBWZwj0SF4hLKHznExnLerVsMuTMA846RbQmSz62vM6kGM13HFonWeQvWia0TDr78+rOEgWF
2KHBSIxL51lmIDW8Gql9hJfD/Dr/
NKP97w3L0wAAAIEAr3FkWU8XbYytQYEKxsIN9P1UQ1ERXB3G40YwqFO484SlyKyYCfaz+yNsaAJu
2C8UebDIR3GieyNcOAKf3inCG8jQwjLvZskuZwrvlsz/xtcxSoAh9axJcdUfSJYMW/
g+mD26JK1Cliw5rwp2nH9kUrJxeI7IReDp4egNkM4i15o= configurator@server1.he";
}
login {
user lab {
uid 2000;
class super-user;
authentication {
encrypted-password "$1$84J5Maes$cni5Hrazbd/IEHr/50oY30";
}
}
}
services {
ssh;
telnet;
}
syslog {
user * {
any emergency;
}
file messages {
any any;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
Step 2.3
Return to configuration mode and delete either ssh or telnet access to the device
(whichever one you are NOT using), under the [edit system services]
hierarchy level. Activate the change.
lab@srxB-1> configure
Entering configuration mode
[edit]
lab@srxB-1# delete system services telnet
[edit]
lab@srxB-1# commit
commit complete
Step 2.4
Verify that the appropriate service has been deleted under the [edit system
services] hierarchy level and then load the rescue configuration.
[edit]
lab@srxB-1# show system services
ssh;
[edit]
lab@srxB-1# rollback rescue
load complete
lab@srxB-1>
Step 2.7
Delete the rescue configuration and attempt to display the rescue.conf.gz file to
confirm the deletion.
lab@srxB-1> request system configuration rescue delete
Step 2.8
Do not close any browser tabs. You will return to the SRX1 CLI tab to perform the
exercises in Lab 3.
STOP
You have completed Lab 2. Please return to the course and complete
the next section before proceeding to Lab 3.
In this lab, you will use the Junos OS command-line interface (CLI) to configure and
monitor static routing and basic OSPF. Throughout these configuration tasks, you will
become familiar with and describe the contents of the routing and forwarding tables.
By completing this lab, you will perform the following tasks:
• Configure and monitor static routing.
• Configure and monitor OSPF.
In this lab part, you will load a basic configuration from flash memory, then configure
a new network interface on your assigned device. You will then verify that the
interface is operational and that the system adds the corresponding route table
entries for all the configured interfaces on your device.
Step 1.1
Lab 2 ended at the operational mode prompt. To begin Lab 3, enter configuration
mode using the configure command.
lab@srxB-1> configure
Entering configuration mode
Step 1.2
Using the load override command, load the file lab3p1s4.config from the
/var/home/lab/ssfjun/ directory. This will load the basic configuration
needed to complete the lab. Issue the commit command to apply the changes and
exit configuration mode.
[edit]
lab@srxB-1# load override /var/home/lab/ssfjun/lab3p1s4.config
load complete
[edit]
lab@srxB-1# commit
commit complete
[edit]
lab@srxB-1#
Step 1.3
Leave the SRX1 CLI tab open and return to the lab environment tab.
Access the CLI for SRX2 by hovering the mouse pointer over the tile that displays
“(srx2)” in the upper right corner. Then, hover the mouse pointer over the Action
icon that appears (downward pointing triangle icon) and select Console from the
menu that appears.
Step 1.4
A new tab, displaying the CLI for SRX2, will open in the browser. You might have to
press Enter once to display the prompt. Do not close any tabs until instructed to do
so.
Log in as user lab with the password lab123.
srxB-2 (ttyp0)
login: lab
Password:
[edit]
lab@srxB-2#
Step 1.6
Load the configuration file and then exit to operational mode. Exit to the login
prompt and then close the tab for SRX2.
[edit]
lab@srxB-2# load override /var/home/lab/ssfjun/lab3p1s9.config
load complete
[edit]
lab@srxB-2# commit and-quit
commit complete
Exiting configuration mode
lab@srxB-2> exit
srxB-2 (ttyu0)
login:
[edit interfaces]
lab@srxB-1#
Step 1.8
Refer to the following diagram and configure the new interface, ge-0/0/4, for your
assigned device. Use the VLAN-ID as the logical unit value for the tagged interface.
VLAN Assignments
Hostname VLAN-ID
srxA-1 101
srxB-1 103
srxC-1 105
srxD-1 107
[edit interfaces]
lab@srxB-1# set ge-0/0/4 vlan-tagging
[edit interfaces]
lab@srxB-1# set ge-0/0/4 unit 10v vlan-id 10v
[edit interfaces]
lab@srxB-1# set ge-0/0/4 unit 10v family inet address 172.20.10v.1/24
Note
Step 1.9
Display the interface configuration and ensure it matches the details outlined on the
network diagram for this lab. When you are comfortable with the interface
configuration, issue the commit-and-quit command to activate the
configuration and return to operational mode.
[edit interfaces]
lab@srxB-1# show
ge-0/0/0 {
description "MGMT Interface - DO NOT DELETE";
unit 0 {
family inet {
address 10.210.41.229/27;
[edit interfaces]
lab@srxB-1# commit and-quit
commit complete
Exiting configuration mode
Step 1.10
Issue the show interfaces terse command to verify the current state of the
interface you just configured. Your output might differ slightly, based on the device
you were assigned.
lab@srxB-1> show interfaces terse
Interface Admin Link Proto Local Remote
ge-0/0/0 up up
ge-0/0/0.0 up up inet 10.210.41.229/27
Step 1.11
Issue the show route command to view the current route entries.
lab@srxB-1> show route
Step 1.12
Use the ping utility to verify reachability to the neighboring devices connected to your
device. The following sample capture shows ping tests from srxB-1 to the Internet
gateway, srxB-2-a, and vr103, which are all directly connected:
Note
Use Ctrl+C to stop a continuous ping
operation if needed.
Step 2.2
Enter configuration mode, navigate to the [edit routing-options] hierarchy
level, and add a static route to the loopback address of the directly attached virtual
router.
lab@srxB-1> configure
Entering configuration mode
[edit]
lab@srxB-1# edit routing-options
[edit routing-options]
lab@srxB-1# set static route 192.168.1.2/32 next-hop 172.20.10v.10
[edit routing-options]
lab@srxB-1# set static route 192.168.2.2/32 next-hop 172.20.66.2
[edit routing-options]
lab@srxB-1# set static route 172.20.104.0/24 next-hop 172.20.66.2
Step 2.4
Display the resulting configuration to review your work. Once satisfied, activate the
configuration changes and return to operational mode.
[edit routing-options]
lab@srxB-1# show
static {
route 192.168.1.2/32 next-hop 172.20.103.10;
route 192.168.2.1/32 next-hop 172.20.66.2;
route 192.168.2.2/32 next-hop 172.20.66.2;
route 172.20.104.0/24 next-hop 172.20.66.2;
}
[edit routing-options]
lab@srxB-1# commit and-quit
commit complete
Exiting configuration mode
Step 2.5
Issue the show route protocol static command to view the current static
routes in your device’s route table.
lab@srxB-1> show route protocol static
Step 2.6
Ping the loopback address of all internal devices to verify reachability.
Note
The virtual routers have a preconfigured
default static route using their directly
connected device as the next hop.
In this part, you will configure and monitor OSPF. You will configure a single OSPF
area based on the network diagram for this lab. Then you will perform some
verification tasks to ensure that OSPF works properly.
Step 3.1
Enter configuration mode and navigate to the [edit protocols ospf]
hierarchy level.
Lab 3–10 • Configuring OSPF on Junos OS Devices www.juniper.net
Junos Operating System Highlights
lab@srxB-1> configure
Entering configuration mode
[edit]
lab@srxB-1# edit protocols ospf
Step 3.4
Issue the run show route protocol ospf to view the active OSPF routes in
your device’s route table.
[edit protocols ospf]
lab@srxB-1# run show route protocol ospf
[edit routing-options]
lab@srxB-1# show
static {
route 192.168.1.2/32 next-hop 172.20.103.10;
route 192.168.2.1/32 next-hop 172.20.66.2;
route 192.168.2.2/32 next-hop 172.20.66.2;
route 172.22.104.0/24 next-hop 172.20.66.2;
[edit routing-options]
lab@srxB-1# delete static route 192.168.1.2/32
[edit routing-options]
lab@srxB-1# delete static route 192.168.2.1/32
[edit routing-options]
lab@srxB-1# delete static route 192.168.2.2/32
[edit routing-options]
lab@srxB-1# delete static route 172.20.10v.0/24
[edit routing-options]
lab@srxB-1# show
[edit routing-options]
lab@srxB-1#
Step 3.6
Activate the configuration and return to operational mode. Issue the show route
protocol ospf command to verify that the OSPF routes are now active.
[edit routing-options]
lab@srxB-1# commit and-quit
commit complete
Exiting configuration mode
lab@srxB-1>
Step 3.7
Ping the loopback address of all internal devices to verify reachability through the
OSPF routes.
lab@srxB-1> ping 192.168.1.2 rapid count 25
PING 192.168.1.2 (192.168.1.2): 56 data bytes
!!!!!!!!!!!!!!!!!!!!!!!!!
--- 192.168.1.2 ping statistics ---
25 packets transmitted, 25 packets received, 0% packet loss
round-trip min/avg/max/stddev = 3.445/4.646/9.481/1.217 ms
lab@srxB-1>
Step 3.8
You should now close the CLI tab and end your reservation for this lab environment.
You may then choose another lab or log off of the Virtual Labs website.