Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
IJOS-12a-guide_pdf / IJOS-12.a_LGD (Detailed Lab Guide).pdf
Скачиваний:
379
Добавлен:
11.04.2015
Размер:
1.51 Mб
Скачать

Part 1: Logging In and Exploring the CLI

In this lab part, you 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 team’s designated station and use the CLI to become familiar with operational mode and configuration mode. You also gain experience with some of the tools and functionality available within operational mode and configuration mode.

Note

Depending on the class, the lab equipment used might be remote from your physical location. The instructor will inform you as to the nature of your access and will provide you the details needed to access your assigned device.

Step 1.1

Ensure that you know to which student device you have been assigned. Check with your instructor if you are not certain. Consult the management network diagram to determine the management address of your student device

Question: What is the management address assigned to your station?

Answer: The answer varies; in the example used throughout this lab, the user belongs to the srxA-1 station, which uses an IP address of 10.210.14.131. Your answer will depend on the rack of equipment your class is using.

Step 1.2

Access the CLI at your station using either the console, Telnet, or SSH as directed by your instructor. Refer to the management network diagram for the IP address associated with your team’s station. The following example uses a simple Telnet access to srxA-1 with the Secure CRT program as a basis:

Lab 1–2 • The Junos CLI (Detailed)

www.juniper.net

Step 1.3

Log in to the student device with the username lab using a password of lab123. Note that both the name and password are case-sensitive. Issue the configure command to enter configuration mode and load the reset configuration file using the load override /var/home/lab/ijos/lab1-start.config command. After the configuration has been loaded, commit the changes and return to operational mode using the commit and-quit command.

srxA-1 (ttyp0)

login: lab Password:

--- JUNOS 12.1R1.9 built 2012-03-24 12:12:49 UTC lab@srxA-1> configure

Entering configuration mode

[edit]

lab@srxA-1# load override ijos/lab1-start.config load complete

[edit]

lab@srxA-1# commit and-quit commit complete

Exiting configuration mode

lab@srxA-1>

Step 1.4

Determine what system information you can clear from the operational mode command prompt.

lab@srxA-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

 

 

 

 

www.juniper.net

The Junos CLI (Detailed) • Lab 1–3

chassis

Clear chassis information

database-replication

Clear database replication 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

mpls

Clear mpls information

msdp

Clear Multicast Source Discovery Protocol information

multicast

Clear multicast information

network-access

Clear network-access related information

ospf

Clear Open Shortest Path First information

ospf3

Clear Open Shortest Path First version 3 information

passive-monitoring

Clear passive monitoring statistics

pfe

Clear Packet Forwarding Engine information

pgm

Clear Pragmatic Generalized Multicast information

pim

Clear Protocol Independent Multicast information

ppp

Clear PPP information

pppoe

Clear PPP over Ethernet information

protection-group

Clear protection group information

r2cp

Clear Radio-to-Router Protocol information

rip

Clear Routing Information Protocol information

ripng

Clear Routing Information Protocol for IPv6 information

rsvp

Clear Resource Reservation Protocol information

security

Clear security information

services

Clear services

snmp

Clear Simple Network Management Protocol information

spanning-tree

Clear Spanning Tree Protocol information

system

Clear system information

vpls

Clear learned Layer 2 MAC address information

vrrp

Clear Virtual Router Redundancy Protocol statistics

wlan

Clear Wireless LAN information

Lab 1–4 • The Junos CLI (Detailed)

www.juniper.net

Question: Which command do you use to clear the contents of a system log (syslog) file?

Answer: Use the clear log log-filename command to clear the contents of a particular syslog file.

Step 1.5

Experiment with command completion by entering show i<space>.

lab@srxA-1> show i

 

^

 

'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 1.6

Add characters to disambiguate your command so that you can display interface-related information; use the Spacebar or Tab key for automatic command completion.

Note

You can return to the command prompt without scrolling through all of the generated output from a command. Enter the Ctrl+c key sequence or the q key to abort the operation and return to the command prompt.

lab@srxA-1> show int<space>erfaces

Physical interface: ge-0/0/0, Enabled, Physical link is Up Interface index: 134, SNMP ifIndex: 507

Description: MGMT Interface - DO NOT DELETE

Link-level type: Ethernet, MTU: 1514, Link-mode: Full-duplex, Speed: 1000mbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,

Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online

Device flags

:

Present Running

Interface flags:

SNMP-Traps Internal: 0x0

Link flags

:

None

CoS queues

:

8 supported, 8 maximum usable queues

Current address:

00:26:88:e1:54:80, Hardware address: 00:26:88:e1:54:80

Last flapped

:

2011-04-20 02:02:04 UTC (2d 03:09 ago)

 

 

 

www.juniper.net

 

The Junos CLI (Detailed) • Lab 1–5