of 55
7/31/2019 junos_sanog
1/55
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net 1
JUNOSBasic Conf igurat ion
7/31/2019 junos_sanog
2/55
Installation
Power-up & Power-down
Initial ConfigurationInterface
Standard Interfaces
FPC, PIC & Port Number
Configuring Interface
Agenda
Slide 2
7/31/2019 junos_sanog
3/55
Installation
Power-up & Power-down
Initial ConfigurationInterface
Standard Interfaces
FPC, PIC & Port Number
Configuring Interface
Agenda
Slide 3
7/31/2019 junos_sanog
4/55
4Copyright 2003 Juniper Networks, Inc. www.juniper.net
Powerup and Powerdown
Powerup
Connect all cables
Turn on one power supply
Turn on second power supply
Powerdown
Shut down JUNOS routing software
CLI request system halt command
Turn off power supplies
7/31/2019 junos_sanog
5/55
5Copyright 2003 Juniper Networks, Inc. www.juniper.net
Visible Activity at Startup
Craft interface displays: Starting Routing Engine
Starting PFE
Starting Cards
FPC LEDs
Blink green while testing
Become solid green when tests pass
Alarm LEDs light as needed
7/31/2019 junos_sanog
6/55
6Copyright 2003 Juniper Networks, Inc. www.juniper.net
Init ial Conf igurat ion
Using serial console
Root password
Machine name
IP address (prefix) and prefix length assignedto management interface (fxp0)
DNS server
7/31/2019 junos_sanog
7/55
7Copyright 2003 Juniper Networks, Inc. www.juniper.net
Troubleshooting
Craft interface
Red LEDs indicate failure
LCD displays all major and minor alarms
Syslog messages
Contain more detailed information
CLI show log messages command
CLI
Interactive failure analysis using show commands
monitor log files using monitor command
7/31/2019 junos_sanog
8/55
8Copyright 2003 Juniper Networks, Inc. www.juniper.net
Boot Devices and Media
Removable media
Used for install and upgrade, normally left empty
RE PCMCIA flash card
Flash drive
Solid-state media
Primary source for booting software Hard drive
Secondary source for booting software
7/31/2019 junos_sanog
9/55
9Copyright 2003 Juniper Networks, Inc. www.juniper.net
Software Installation
Arrives preinstalled from factory onto
Flash drive
Hard drive (alternate copy)
Removable media (e.g. PCMCIA)
Can boot from alternate copy
If flash drive fails, router can still boot from harddrive or removable media
Upgradable
Upgrade packages available through theInternet or on removable media
7/31/2019 junos_sanog
10/5510Copyright 2003 Juniper Networks, Inc. www.juniper.net
Boot Sequence
Hardware controlled
Software notifies hardware when bootcompletes
Success? Success? Success?
Removablemedia
Halt
Done
Solid-stateflash disk
Rotatingdisk
Done Done
7/31/2019 junos_sanog
11/55
Installation
Power-up & Power-down
Initial ConfigurationInterface
Standard Interfaces
FPC, PIC & Port Number
Configuring Interface
Agenda
Slide 11
7/31/2019 junos_sanog
12/5512Copyright 2003 Juniper Networks, Inc. www.juniper.net
Init ial Conf igurat ion
Root password
Root password not set at factory
Must use console to configure root password
Router and domain name
Management interface IP address and prefix length
Default router IP address DNS server IP address
7/31/2019 junos_sanog
13/5513Copyright 2003 Juniper Networks, Inc. www.juniper.net
Init ial Conf igurat ion
Enter configuration mode
root@> configure
[edit]
root@#
Set root password
Plain text known
root@# set system root-authenticationplain-text-password
Pre-encrypted password
root@# set system root-authenticationencrypted-password encrypted-password
SSH (secure shell) key
root@# set system root-authenticationssh-rsa key
7/31/2019 junos_sanog
14/5514Copyright 2003 Juniper Networks, Inc. www.juniper.net
Init ial Conf igurat ion
Set router name
[edit]
root@# set system host-name lab2
Set router domain name
[edit]
root@# set system domain-name juniper.net
Commit changes so far
[edit]
root@# commit
commit complete
[edit]
root@lab2#
7/31/2019 junos_sanog
15/5515Copyright 2003 Juniper Networks, Inc. www.juniper.net
Init ial Conf igurat ion
Set management Ethernet IP address and prefix
[edit]
root@lab2# set interfaces fxp0 unit 0 family inetaddress ip-address/prefix-length
Set default route
[edit]
root@lab2# set system backup-router gateway-address
root@lab2# set routing-options static route defaultnexthop gateway-address retain no-readvertise
Set name server address
[edit]
root@lab2# set system name-server ns-address
7/31/2019 junos_sanog
16/5516Copyright 2003 Juniper Networks, Inc. www.juniper.net
Full Installation
Reinstall JUNOS software if storage media fails oris corrupted
Future major software revisions may require full
installation Three steps
Prepare to reinstall JUNOS software
Reinstall JUNOS software
Configure JUNOS software
7/31/2019 junos_sanog
17/5517Copyright 2003 Juniper Networks, Inc. www.juniper.net
Full Installation: Preparation
Record basic information
Router name
Management interface IP address and prefix length
Default router IP address
Domain name and DNS server IP address Copy existing configuration file to a safe place on the network
Located in /config/juniper.conf
Full installation erases both flash and rotating drives
Locate your Juniper installation media
LS-120 floppy or PCMCIA card contains entire JUNOSdistribution
7/31/2019 junos_sanog
18/5518Copyright 2003 Juniper Networks, Inc. www.juniper.net
Full Installation: Reinstallation
Insert installation media into Routing Engine
PCMCIA flash card
Reboot router
Use the CLI from the serial consoleroot@lab2> request system halt
Power-cycle router
Follow prompts
Enter configuration information saved during installationpreparation
System reboots automatically after installation completes
7/31/2019 junos_sanog
19/5519Copyright 2003 Juniper Networks, Inc. www.juniper.net
Full Installation: Sof tware Conf iguration
Log in as root
no-name (ttyd0)
login: root
Last login: date on ttyd0
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
---JUNOS 4.0R1 built 2000-02-10 09:29:44 UTC
#
Start CLI
# cli
root@no-name>
7/31/2019 junos_sanog
20/5520Copyright 2003 Juniper Networks, Inc. www.juniper.net
Full Installation:Sof tware Configurat ion
Enter configuration mode
root@no-name> configure
[edit]
root@no-name#
Set root password
Plain-textroot@no-name# set system root-authentication
plain-text-password text-password
Pre-encrypted password
root@no-name# set system root-authentication
encrypted-password encrypted-password
SSH key
root@no-name# set system root-authenticationssh-rsa key
7/31/2019 junos_sanog
21/5521Copyright 2003 Juniper Networks, Inc. www.juniper.net
Sof tware Update Packages
JUNOS software updates are contained in four packages
jkernelOperating system
jrouteRouting Engine software
jpfePacket Forwarding Engine software
jdocsOn-line documentation
jbundleAll four upgrade packages
Packages can be upgraded individually
CLI show system software command displaysinstalled packages
7/31/2019 junos_sanog
22/5522Copyright 2003 Juniper Networks, Inc. www.juniper.net
Package Naming Convent ion
Software packages have standard names
package-m.nZnumber.tgz
m.n is the major version number
Z is a single uppercase letter
AAlpha
BBeta
RRelease
IInternal
number
is the release number, which might include the buildnumber for that release
For example
jbundle-4.0R1.2.tgz
7/31/2019 junos_sanog
23/5523Copyright 2003 Juniper Networks, Inc. www.juniper.net
Upgrade Sof tware Packages
Download current package from software download page atwww.juniper.net
Add new package
root@lab2> request system software add new-package-name
Checking available free disk space...11200k available,6076k suggested.
If needed, reboot router
root@lab2> request system reboot
7/31/2019 junos_sanog
24/5524Copyright 2003 Juniper Networks, Inc. www.juniper.net
Back Up Exist ing Sof tware
System software and configuration can be backedup to rotating disk
Best used
Before major upgrade to ensure system recoveryif necessary
When system is known stable
CLI request system snapshot command
7/31/2019 junos_sanog
25/55
Installation
Power-up & Power-down
Initial Configuration
Interface
Standard Interfaces
FPC, PIC & Port Number
Configuring Interface
Agenda
Slide 25
7/31/2019 junos_sanog
26/5526Copyright 2003 Juniper Networks, Inc. www.juniper.net
Standard Interfaces
Interface contained onPIC
PIC plugs into FPC
FPC has room forfour PICs
FPC plugs into chassis
PhysicalPhysicalInterfaceInterface
CardCard
PI CPI C
PI CPI C
PI CPI C
FPC
7/31/2019 junos_sanog
27/5527Copyright 2003 Juniper Networks, Inc. www.juniper.net
Standard Interfaces
Packet-based SONET/ SDH PICs
4-port OC-3
1-port OC-12
Standard packet version or channelized to DS-3 level
1-port OC-48
Takes up all four PIC slots on M20 or M40
Takes up one PIC slot on M160
1-port OC-192 Takes up all four PIC slots on M160
Not available on M20 or M40
7/31/2019 junos_sanog
28/5528Copyright 2003 Juniper Networks, Inc. www.juniper.net
Standard Interfaces
ATM based SONET/ SDH PICs
2-port OC-3 ATM
1-port OC-12 ATM
4 port DS-3 PIC
4 ports
4 port E-3 PIC
Ethernet PICs 1 Port Gigabit Ethernet
4 Port 100 Mbit Ethernet
7/31/2019 junos_sanog
29/55
29Copyright 2003 Juniper Networks, Inc. www.juniper.net
Standard Interfaces
System uses consistent names for all customerinterfaces
Based on
Interface port type
FPC slot number
PIC slot number within FPC
Port number within PIC
7/31/2019 junos_sanog
30/55
30Copyright 2003 Juniper Networks, Inc. www.juniper.net
Interf ace Port Type atATM over SONET/ SDH ports
e3E-3 ports feFast Ethernet ports
soSONET/ SDH ports
t3DS-3 ports
ds- Nx64k interfaces
geGigabit Ethernet ports
ml- multilink
ls link services
sp adaptive services pic
vt- virtual interface
7/31/2019 junos_sanog
31/55
Installation
Power-up & Power-down
Initial Configuration
Interface
Standard Interfaces
FPC, PIC & Port Number
Configuring Interface
Agenda
Slide 31
7/31/2019 junos_sanog
32/55
32Copyright 2003 Juniper Networks, Inc. www.juniper.net
FPC Slot Numbers
M40
3
2
1
0
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7M160
M20
7/31/2019 junos_sanog
33/55
33Copyright 2003 Juniper Networks, Inc. www.juniper.net
PIC Slot Numbers
0
1
3
2
M40 and M160
Top to bottom
M20
Right to left
013 2
7/31/2019 junos_sanog
34/55
34Copyright 2003 Juniper Networks, Inc. www.juniper.net
Port Numbers
0
1
2
3
u M40 and M160
v Top to bot tom
vRight t o left
u M20
v Right t o leftv Bott om t o top 01
23
7/31/2019 junos_sanog
35/55
35Copyright 2003 Juniper Networks, Inc. www.juniper.net
Test Your Knowledge (I)
On this mythical M40 PI C,
w hat port number is t his?
HyperNet
7/31/2019 junos_sanog
36/55
36Copyright 2003 Juniper Networks, Inc. www.juniper.net
Test Your Knowledge (II)
On this mythical M20 PI C,
w hat port number is t his?
HyperNet
Interface Names
7/31/2019 junos_sanog
37/55
37Copyright 2003 Juniper Networks, Inc. www.juniper.net
Interface Names
Physical interfaces havestandard names
Type
FPC slot
PIC slot
Port number
so-5/ 2/ 3
I f N
7/31/2019 junos_sanog
38/55
38Copyright 2003 Juniper Networks, Inc. www.juniper.net
Interface Names
Logical interfaces are used to set up FrameRelay DLCIs or ATM virtual circuits
Interface number is separate in meaningfrom the actual DLCI or ATM VC and can beany arbitrary value
Suggested convention is to keep them thesame whenever possible
so-5/ 2/ 3.43
7/31/2019 junos_sanog
39/55
39Copyright 2003 Juniper Networks, Inc. www.juniper.net
Permanent Interfaces
Router has two permanent interfaces
Out-of-band management interface is calledfxp0
Internal Routing Engine to PFE connection iscalled fxp1
7/31/2019 junos_sanog
40/55
Installation
Power-up & Power-down
Initial Configuration
Interface
Standard Interfaces
FPC, PIC & Port Number
Configuring Interface
Agenda
Slide 40
C f i I f
7/31/2019 junos_sanog
41/55
41Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Interfaces
Two steps
Configure physical properties
Configure logical properties
C f i I f
7/31/2019 junos_sanog
42/55
42Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Interfaces
Physical properties
Clocking
Scrambling
Frame check sequence (FCS)
Maximum transmission unit (MTU)
Keepalives
Other link characteristics
Logical properties
Protocol family (Internet, ISO, MPLS) Addresses (IP address, ISO NET address)
Virtual circuits (VCI/ VPI, DLCI)
Other characteristics
C f i I f
7/31/2019 junos_sanog
43/55
43Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Interfaces
Standard configuration statement hierarchy
interfaces {
interface-name {
physical-properties;
[]unit unit-number {
logical-properties;
[]
}
}
}
7/31/2019 junos_sanog
44/55
44Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Physical Propert ies Configure physical properties of the interface using the set command:
set interface so-1/0/3 no-keepalives
Or park yourself in the interfaces section of the hierarchy and set manyoptions
lab@omaha> configure
[edit]
lab@omaha# edit interfaces so-1/0/3
[edit interfaces so-1/0/3]
lab@omaha# set no-keepaliveslab@omaha# set sonet-options fcs 32
lab@omaha# commit
D f lt S tt i
7/31/2019 junos_sanog
45/55
45Copyright 2003 Juniper Networks, Inc. www.juniper.net
Default Sett ings
Default settings for an interface are usually enoughto get you talking
Most interfaces do not need complex setup
L i l I t f S tt i
7/31/2019 junos_sanog
46/55
46Copyright 2003 Juniper Networks, Inc. www.juniper.net
Logical Interface Sett ings
Each physical interface has one or more logical interfaces
Logical interface separates configuration information foreach ATM virtual circuit, Frame Relay DLCI, or VLAN
Some physical interface encapsulations allow only onepossible logical interface
PPP
HDLC
L i l I t f S tt i
7/31/2019 junos_sanog
47/55
47Copyright 2003 Juniper Networks, Inc. www.juniper.net
Logical Interface Sett ings
Logical settings
Protocol family (Internet, ISO, MPLS)
Protocol MTU
IP address
Other protocol options
Virtual circuit identifiers (VPI.VCI, DLCI)
Other according to-circuit characteristics
U it N b
7/31/2019 junos_sanog
48/55
48Copyright 2003 Juniper Networks, Inc. www.juniper.net
Unit Numbers
Each logical interface has a unit number
Number can be arbitrary
Typically, the unit number is the same as the VC or DLCI
number Some physical interfaces have only one possible logical
interface, and one unit number only, which must beconfigured as unit zero
C fi L i l I t f
7/31/2019 junos_sanog
49/55
49Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Logical Interfaces
Use the set command to configure a logical interface, using the unit
number For example
set interface so-1/0/3 unit 40 dlci 40
Or park yourself at the unit level
lab@omaha> configure
[edit]
lab@omaha# edit interfaces so-1/0/3 unit 40
[edit interfaces so-1/0/3 unit 40]
lab@omaha# set dlci 40
lab@omaha# set family inet address 10.0.20.1/24
lab@omaha# commit
C f i P t l F ili
7/31/2019 junos_sanog
50/55
50Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Protocol Families
Each major protocol is called a family
Internet protocol has TCP, UDP, and ICMP as familymembers
Most common protocol families are
Internet (inet)
International Standards Organization (iso)
Traffic engineering (mpls)
Multiple families can live on one logical interface
Conf ig re Protocol Families
7/31/2019 junos_sanog
51/55
51Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Protocol Families
Internet protocol family (inet)
Allows you to set
IP address: address A.B.C.D/prefix_length
Remote address on point-to-point links: destinationA.B.C.D
Broadcast address: broadcast A.B.C.D
MTU size: mtu bytes
ICMP redirect control: no-redirects
Conf igure Protocol Families
7/31/2019 junos_sanog
52/55
52Copyright 2003 Juniper Networks, Inc. www.juniper.net
Conf igure Protocol Families Minimal sample configuration
lab@omaha> configure
[edit]
lab@omaha# edit interfaces so-1/0/3
[edit interfaces so-1/0/3]
lab@omaha# set unit 0 family inet address 10.0.20.1/24
lab@omaha# commit
Displayed as
interfaces {
so-1/0/3 {
unit 0 {
family inet {
address 10.0.20.1/24;
}
}
}
}
7/31/2019 junos_sanog
53/55
53Copyright 2003 Juniper Networks, Inc. www.juniper.net
Hands-On Session
System Conf iguration 30 min
7/31/2019 junos_sanog
54/55
54Copyright 2003 Juniper Networks, Inc. www.juniper.net
System Conf iguration - 30 min
Level 2
JB Penang
KL
fxp00.2
fxp0
29.2
fxp00.1
fxp2
2.2
fxp0
2.1
fxp21.1
fxp21.2
fxp1
8.1
fxp2
31.2
fxp1
8.2
ManilaManila
fxp116.2
fxp215.2
fxp021.1
fxp116.1
SingaporeSingapore BangkokBangkok
fxp2
31.1
fxp1
24.2
fxp1
24.1
fxp013.2
1. Host name
2. Domain & DNS Server Nam e
3. Backup & Default Router
4. User Access to System
5. Tim e Zone
6. System Serv ices t elnet
7. Logging Services (optional)
Answer:
1. set host-n ame host -name
2. set dom ain-name ju niper.net
set name-server 1.2.3.4
3. set back -up rout er gatew ay-addr
[ edit rout ing-options static]
set route default nexthop gateway-addr
5. [edit system] set tim e-zone
6. set services telnet
7. [ edit system] set syslog fi le fi lename
Domain j uniper.net 1.2.3.4
Gatew ay 10.100.0.1
Lab I P Address MapLab I P Address Map
10.0.x.y/ 2410.0.x.y/ 24
7/31/2019 junos_sanog
55/55
Interface Conf iguration -30 min
Area 0
JB Penang
KL
fxp00.2
fxp0
29.2
fxp00.1
fxp2
2.2
fxp0
2.1
fxp21.1
fxp21.2
fxp1
8.1
fxp2
31.2
fxp1
8.2
ManilaManila
fxp116.2
fxp215.2
fxp021.1
fxp116.1
SingaporeSingapore BangkokBangkok
fxp2
31.1
fxp1
24.2
fxp1
24.1
fxp013.2
1. I nventory your I nterface
fxp0 :_________________
fxp1 :_________________
fxp2 :_________________
2. Configure t he I nterfaces
3. Check your w ork by
ping:__________________
traceroute:_____________
Lab I P Address MapLab I P Address Map10.0.x.y/ 2410.0.x.y/ 24