JNCIA Summary Notes – Day 2

Posted on Updated on


JUNOS software Naming

Example:

jbundle-5.2R1.4-domestic-signed.tgz

  • jbundle – package (jbundle, jroute, jpfe)
  • 5.2 – Major version
  • R – Stage (R – publicly released, A – Alpha version , B – Beta Version, I – Internal Test version)
  • 1.4 – released_version
  • domestic – type ( domestic contains jcrypto, expo does not)
  • signed – package is protected with md5

Commands:

 admin@Junya> file list /packages/ | match jbase
 cleanup-pkgs@ -> /packages/mnt/jbase/sbin/cleanup-pkgs
 jbase@ -> jbase-ex-12.3R2.5
 jbase-ex-12.3R2.5
 jbase-ex-12.3R2.5.certs
 jbase-ex-12.3R2.5.sha1
 jbase-ex-12.3R2.5.sig
 jbase.symlinks

Software Upgrade

Command used to upgrade software:

request system software add request system software add jbundle-5.3R2.4-domestic-signed.tgz

 

admin@Junya> show version brief
fpc0:
————————————————————————–
Hostname: Junya
Model: ex2200-48t-4g
JUNOS Base OS boot [12.3R2.5]
JUNOS Base OS Software Suite [12.3R2.5]
JUNOS Kernel Software Suite [12.3R2.5]
JUNOS Crypto Software Suite [12.3R2.5]
JUNOS Online Documentation [12.3R2.5]
JUNOS Enterprise Software Suite [12.3R2.5]
JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R2.5]
JUNOS Routing Software Suite [12.3R2.5]
JUNOS Web Management [12.3R2.5]
JUNOS FIPS mode utilities [12.3R2.5]

JUNOS is stored in 3 possible places:

  • Internal Flash (this is the primary boot media)
  • Hard Drive (secondary)
  • Removable media (used for disaster-recovery)

Boot Sequence

  • Power-on self test (POST) verifies basic system components
  • Router locates JUNOS. It first checks the removable media, if it finds it, it loads it. Next checks Internal flash, Next the hard drive. If booted from the removable media, the router boots to factory default settings. Command used to boot from hard drive;

request system snapshot

  • Loads JUNOS to memory

JUNOS CLI

Two main modes:

  • Operational – shows Router’s current status, verify and troubleshoot the router

username@routerhostname>

  • Configuration – Can alter the current status of the router.

admin@Junya> configure
Entering configuration mode

{master:0}[edit]

 

Commands;

admin@Junya> show route

inet.0: 29 destinations, 29 routes (27 active, 0 holddown, 2 hidden)
+ = Active Route, – = Last Active, * = Both

0.0.0.0/0 *[Static/5] 6w3d 17:27:54
> to 10.2.232.1 via vlan.232
10.2.210.0/24 *[Direct/0] 6w3d 17:27:54
> via vlan.210
10.2.210.2/32 *[Local/0] 6w3d 17:29:31
Local via vlan.210
10.2.211.0/24 *[Direct/0] 6w3d 17:27:47
> via vlan.211
10.2.211.2/32 *[Local/0] 6w3d 17:29:31
Local via vlan.211

 

Enables you to check history using the updown arrows

> set cli terminal vt100

Short Handy commands:

  • Ctrl+P – previous
  • Ctrl+N – next
  • Ctrl+B- back one character
  • Ctrl+F Forward
  • Ctrl+A Beggining of command
  • Ctrl+E – end of command
  • Ctrl+W deletes word to left 
  • Ctrl+X deletes command
  • Ctrl+L redraws command

Commands:

admin@Junya> show interfaces terse | count
Count: 130 lines

{master:0}

admin@Junya> show interfaces terse | display xml interface-ranges
<rpc-reply xmlns:junos=”http://xml.juniper.net/junos/12.3R2/junos”&gt;
<interface-information xmlns=”http://xml.juniper.net/junos/12.3R2/junos-interface&#8221; junos:style=”terse”>
<physical-interface>
<name>ge-0/0/0</name>
<admin-status>up</admin-status>
<oper-status>up</oper-status>
<description>to_cisco</description>
<logical-interface>
<name>ge-0/0/0.0</name>
<admin-status>up</admin-status>
<oper-status>up</oper-status>
<filter-information>
</filter-information>
<address-family>
<address-family-name>eth-switch</address-family-name>
</address-family>
</logical-interface>
</physical-interface>

admin@Junya> show interfaces terse | except fe | except ge | except vlan
Interface Admin Link Proto Local Remote
bme0 up up
bme0.32768 up up inet 128.0.0.1/2
128.0.0.16/2
128.0.0.32/2
tnp 0x10
dsc up up
gre up up
ipip up up
lo0 up up
lo0.0 up up inet 127.0.0.1/8
lo0.16384 up up inet 127.0.0.1 –> 0/0
lsi up up
me0 up down
me0.0 up down eth-switch
mtun up up
pimd up up
pime up up
tap up up
vme up down

{master:0}
admin@Junya>

admin@Junya> show interfaces terse | find vlan
vlan up up
vlan.0 up up inet 10.2.230.2/24
vlan.101 up up inet 10.128.1.2/24
vlan.120 up up inet 10.128.20.2/24
vlan.130 up up inet 10.128.30.2/24
vlan.192 up up inet 192.168.1.2/28
vlan.210 up up inet 10.2.210.2/24
vlan.211 up up inet 10.2.211.2/24
vlan.212 up up inet 10.2.212.2/24
vlan.214 up up inet 10.2.214.2/24
vlan.220 up up inet 10.2.220.2/24
vlan.221 up up inet 10.2.221.2/24
vlan.222 up up inet 10.2.222.2/24
vlan.232 up up inet 10.2.232.2/24
vme up down

{master:0}
admin@Junya>

admin@Junya> show cli | hold
CLI complete-on-space set to on
CLI idle-timeout disabled
CLI restart-on-upgrade set to on
CLI screen-length set to 46
CLI screen-width set to 167
CLI terminal is ‘vt100’
CLI is operating in enhanced mode
CLI timestamp disabled
CLI working directory is ‘/var/home/admin’

{master:0}
admin@Junya>

admin@Junya> show cli | match cli
CLI complete-on-space set to on
CLI idle-timeout disabled
CLI restart-on-upgrade set to on
CLI screen-length set to 46
CLI screen-width set to 167
CLI terminal is ‘vt100’
CLI is operating in enhanced mode
CLI timestamp disabled
CLI working directory is ‘/var/home/admin’

{master:0}

admin@Junya> show interfaces terse
Interface Admin Link Proto Local Remote
ge-0/0/0 up up
ge-0/0/0.0 up up eth-switch
ge-0/0/1 up up
ge-0/0/1.0 up up eth-switch
ge-0/0/2 up up
ge-0/0/2.0 up up eth-switch
ge-0/0/3 up up
ge-0/0/3.0 up up eth-switch
ge-0/0/4 up up
ge-0/0/4.0 up up eth-switch

Command used to access operation-mode commands from within configuration mode:

run show interfaces

command used to show users currently in config mode

admin@Junya# status
Users currently editing the configuration:
admin terminal p0 (pid 70772) on since 2013-06-08 21:21:01 UTC
{master:0}[edit]

{master:0}[edit]

Useful commands:

Up – move up a directory level

edit

set

delete

top

Configuration Files:

  • Candidate configuration – no changes made to the current operating configuration
  • Active Configuration

To see the difference between the two files:

admin@Junya# show | compare

{master:0}[edit]
admin@Junya#

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s