Sei sulla pagina 1di 22

Installation and

Initial
Configuration

4-1
Copyright 2005 Juniper Networks, Inc.

Proprietary and Confidential

www.juniper.net

General Installation Guidelines


Follow documented safety guidelines
Use the hardware installation training
resources:
Technical publications:
http://www.juniper.net/techpubs/

2008 Juniper Networks, Inc. All rights reserved.

Power On and Power Of


JUNOS software is a multitasking
environment
A graceful shutdown of the operating system
ensures file system integrity
Use the J-Web Maintain > Reboot page or the request
system halt CLI command to gracefully halt JUNOS
software
Power is maintained to the system; reboot with console
activity

Rebooting the system with the LCD menu:


System reboot option under Maintenance mode

Automatic power-on feature


2008 Juniper Networks, Inc. All rights reserved.

Rescue Configuration
A rescue configuration is designed to restore
basic connectivity in the event of
configuration problems
The user defines the contents
Include a root password!

By default, there is no rescue configuration


Save rescue configuration using J-Web or the CLI
Retrieve with rollback rescue CLI command
View with file show/config/rescue.conf.gz
CLI command

2008 Juniper Networks, Inc. All rights reserved.

Saving a Rescue Configuration


Two methods of saving rescue configuration:

request system configuration rescue save


CLI command
J-Web Maintain > Config Management > Rescue
option

Saves current active


configuration as rescue
configuration.

2008 Juniper Networks, Inc. All rights reserved.

Loading the Rescue Configuration


Retrieve the rescue configuration by using
the rollback rescue CLI configurationmode command
Remember to commit!
[edit]
user@switch# rollback rescue
load complete

Activates rescue configuration

[edit]
user@switch# commit
commit complete
[edit]
user@switch#

2008 Juniper Networks, Inc. All rights reserved.

Factory-Default Configuration
Enables family ethernet-switching for all
ports
Enables default system logging
Enables LLDP and RSTP
Enables PoE on all supported ports
Loads one-time factory-settings option
Returns Virtual Chassis system Member ID to 0
Resets J-Web EZsetup feature

2008 Juniper Networks, Inc. All rights reserved.

Reverting to a Factory-Default
Configuration
There might be times when you want to return
to a factory configuration
Use the load factory-default configuration
command and set a root password:
[edit]
user@switch# load factory-default
warning: activating factory configuration
[edit]
user@switch# set system root-authentication plain-text-password
New password:
Retype new password:
[edit]
user@switch# commit
commit complete

Activates the factorydefault configuration

Navigate the LCD menu by pressing the menu


button and choose Restore to Factory Default
2008 Juniper Networks, Inc. All rights reserved.

Initial Configuration Checklist


Have the following information ready when
performing the initial setup through the CLI or
the EZsetup option:
Hostname (optional)
Root password
System time (optional)
Details regarding how the switch will be accessed for
management (in band or out of band, and VLAN
assignment)
Management interface and default gateway IP
addresses
Remote access protocols to be used (Telnet, SSH)
SNMP contact and community information (optional)
2008 Juniper Networks, Inc. All rights reserved.

Initial Configuration Options


CLI EZsetup option
Available through a console connection

J-Web EZsetup option


Initiated using the LCD menu

CLI
Manually configure the switch using the JUNOS CLI

2008 Juniper Networks, Inc. All rights reserved.

10

Initial Configuration Using Console


EZsetup
Obtain console connection to switch
Enter ezsetup from the shell prompt
Amnesiac (ttyu0)
login: root
Password:
--- JUNOS 9.1R2.10 built 2008-07-01 04:34:43 UTC
root@% ezsetup
Initial Setup Configuration
--------------------------Enter System hostname [Optional]:switch
Enter new root password:
Re-enter the new password:
Enable Telnet service? [yes|no]. Default [yes]:

2008 Juniper Networks, Inc. All rights reserved.

11

Initial Configuration Using J-Web


EZsetup (1 of 2)
Easy deployment option for new switches
Boot switch with factory-default configuration
Navigate the LCD menu and select Enter EZsetup
Connect laptop or PC to ge-0/0/0
Point Web browser to http://192.168.1.1
DHCP service starts and assigns address to laptop or PC
port
EZsetup wizard appears

Alternatively, connect laptop or PC to me0 and


point Web browser to http://192.168.2.1

2008 Juniper Networks, Inc. All rights reserved.

12

Initial Configuration Using J-Web


EZsetup (2 of 2)
EZsetup in J-Web automates initial
management configuration options

2008 Juniper Networks, Inc. All rights reserved.

13

Initial Configuration Using the CLI (1 of


6)
Log in as root with a null passwordAmnesiac prompt
Amnesiac (ttyu0)

indicates a factorydefault configuration

login: root
--- JUNOS 9.1R2.10 built 2008-07-01 04:34:43 UTC
root@%

Start the CLI


root@% cli
root>

2008 Juniper Networks, Inc. All rights reserved.

UNIX shell
prompt
CLI prompt

14

Initial Configuration Using the CLI (2 of


6)
Enter configuration mode:
root> configure
[edit]
root#

Issue CLI commands to configure the desired


functionality
Remember to issue the commit command to
activate your changes
Hint: Use the CLIs | display set functionality to
reverse-engineer a configuration into the CLI
commands used to create it

2008 Juniper Networks, Inc. All rights reserved.

15

Initial Configuration Using the CLI (3 of


6)
Set the identification parameters
Hostname
Domain name
Root password
[edit]
root# edit system
[edit system]
root# set host-name switch
[edit system]
root# set domain-name example.com
[edit system]
root# set root-authentication plain-text-password
New password:
Retype new password:
[edit system]
root#
2008 Juniper Networks, Inc. All rights reserved.

16

Initial Configuration Using the CLI (4 of


6)
Set the time parameters
Time zone
NTP server
Current time
[edit system]
root# set time-zone America/Los_Angeles
[edit system]
root# set ntp boot-server 10.0.3.1
[edit system]
root# set ntp server 10.0.3.1
[edit system]
root# run set date 200807270900.00
Sun Jul 27 09:00:00 UTC 2008

2008 Juniper Networks, Inc. All rights reserved.

17

Initial Configuration Using the CLI (5 of


6)
Set the network parameters
DNS name servers
Domain search and name
Default gateway
me0 address
[edit system]
root# set name-server 10.0.2.1
[edit system]
root# set domain-search example.com
[edit system]
root# set domain-name example.com
[edit system]
root# top
[edit]
root# set routing-options static route 0.0.0.0/0 next-hop 10.0.1.254
[edit]
root# set interfaces me0 unit 0 family inet address 10.0.1.1/24
2008 Juniper Networks, Inc. All rights reserved.

18

Initial Configuration Using the CLI (6 of


6)
Set the management access parameters
Telnet/SSH
Enable J-Web

Commit the changes!


[edit]
root# edit system
[edit system]
root# set services telnet
[edit system]
root# set services ssh
[edit system]
root# set services web-management http
[edit system]
root# commit and-quit
commit complete
Exiting configuration mode
root@switch>
2008 Juniper Networks, Inc. All rights reserved.

19

Initial Configuration Results (1 of 2)


root@switch> show configuration
## Last commit: 2008-07-14 21:09:44 UTC by root
version 9.1R2.10;
system {
host-name switch;
domain-name example.com;
domain-search example.com;
time-zone America/Los_Angeles;
root-authentication {
encrypted-password "$1$VEHi2fQx$nosjW.0E9aH2mBZqFFJ7z/"; ## SECRET-DATA
}
name-server {
10.0.2.1;
}
services {
ssh;
telnet;
web-management {
http;
}
}
syslog {
...
}
ntp {
boot-server 10.0.3.1;
server 10.0.3.1;
}
}
2008 Juniper Networks, Inc. All rights reserved.

20

Initial Configuration Results (2 of 2)


interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching;
}
}
...
me0 {
unit 0 {
family inet {
address 10.0.1.1/24;
}
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 10.0.1.254;
}
}
protocols {
lldp {
interface all;
}
rstp;
}
poe {
interface all;
}
2008 Juniper Networks, Inc. All rights reserved.

21

Potrebbero piacerti anche