您好,欢迎来到九壹网。
搜索
您的当前位置:首页OJXE_C4_Initial_Configuration_9.b-R

OJXE_C4_Initial_Configuration_9.b-R

来源:九壹网
Operating Juniper Networks Switches in the Enterprise

Chapter 4: Installation and Initial

Configuration

4-1Copyright © 2005 Juniper Networks, Inc. Proprietary and Confidentialwww.juniper.net Chapter Objectives

After successfully completing this chapter, you will be able to:

•Install Juniper Networks EX-series switches•Save and restore a rescue configuration

•Return an EX-series switch to the factory-default state•Describe the initial configuration options

•Perform initial configuration using the console’s EZsetup feature

•Perform initial configuration using the J-Web EZsetup feature

•Perform initial configuration using the JUNOS CLI

Copyright © 2008 Juniper Networks, Inc. Education Services4-2Agenda: Installation and Initial Configuration

Installation Guidelines

Rescue and Factory-Default ConfigurationsInitial Configuration ChecklistInitial Configuration Options

Copyright © 2008 Juniper Networks, Inc. Education Services4-3General Installation Guidelines

Follow documented safety guidelines

Use the hardware installation training resources:

•Technical publications: http://www.juniper.net/techpubs/

Copyright © 2008 Juniper Networks, Inc. Education Services4-4Power On and Power Off

JUNOS software is a multitasking environment

•A graceful shutdown of the operating system ensures file system integrity

•Use the J-Web Maintain > Rebootpage or the request system haltCLI 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

Copyright © 2008 Juniper Networks, Inc. Education Services4-5Agenda: Installation and Initial Configuration

Installation Guidelines

Rescue and Factory-Default ConfigurationsInitial Configuration ChecklistInitial Configuration Options

Copyright © 2008 Juniper Networks, Inc. Education Services4-6Rescue 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 rescueCLI command

•View with file show/config/rescue.conf.gzCLI command

Copyright © 2008 Juniper Networks, Inc. Education Services4-7Saving a Rescue Configuration

Two methods of saving rescue configuration:

•request system configuration rescue saveCLI command

•J-Web Maintain > Config Management > Rescueoption

Saves current active configuration as rescue configuration.Copyright © 2008 Juniper Networks, Inc. Education Services4-8Loading the Rescue Configuration

Retrieve the rescue configuration by using the rollback rescueCLI configuration-mode command

•Remember to commit!

[edit]

user@switch# rollback rescueload complete[edit]

user@switch# commitcommit complete[edit]

user@switch#

Activates rescue configuration

Copyright © 2008 Juniper Networks, Inc. Education Services4-9Factory-Default Configuration

Enables family ethernet-switchingfor all ports

Enables default system loggingEnables LLDP and RSTP

Enables PoE on all supported ports

Loads one-time factory-settingsoption

•Returns Virtual Chassis system Member ID to 0•Resets J-Web EZsetup feature

Copyright © 2008 Juniper Networks, Inc. Education Services4-10Reverting to a Factory-Default Configuration

There might be times when you want to return to a factory configuration

Use the load factory-defaultconfiguration 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-passwordNew password:

Retype new password:[edit]

user@switch# commitcommit complete

Activates the factory-default

configuration

Navigate the LCD menu by pressing the menubutton and choose Restore to Factory Default

Copyright © 2008 Juniper Networks, Inc. Education Services4-12Agenda: Installation and Initial Configuration

Installation Guidelines

Rescue and Factory-Default ConfigurationsInitial Configuration ChecklistInitial Configuration Options

Copyright © 2008 Juniper Networks, Inc. Education Services4-13Initial 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)

Copyright © 2008 Juniper Networks, Inc. Education Services4-14Agenda: Installation and Initial Configuration

Installation Guidelines

Rescue and Factory-Default ConfigurationsInitial Configuration ChecklistInitial Configuration Options

Copyright © 2008 Juniper Networks, Inc. Education Services4-15Initial 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

Copyright © 2008 Juniper Networks, Inc. Education Services4-16Initial Configuration Using Console EZsetup

Obtain console connection to switchEnter ezsetupfrom the shell prompt

Amnesiac (ttyu0)login: rootPassword:

---JUNOS 9.1R2.10 built 2008-07-01 04:34:43 UTCroot@% ezsetup

Initial Setup Configuration---------------------------Enter System hostname [Optional]:switchEnter new root password:Re-enter the new password:

Enable Telnet service? [yes|no]. Default [yes]:

Copyright © 2008 Juniper Networks, Inc. Education Services4-17Initial 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

Copyright © 2008 Juniper Networks, Inc. Education Services4-18Initial Configuration Using J-Web EZsetup (2 of 2)

EZsetup in J-Web automates initial management configuration options

Copyright © 2008 Juniper Networks, Inc. Education Services4-19Initial Configuration Using the CLI (1 of 6)

Log in as root with a null password

Amnesiac (ttyu0)login: root

Amnesiac prompt indicates a factory-default configuration

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

Start the CLI

UNIX shell prompt

root@% cliroot>

CLI prompt

Copyright © 2008 Juniper Networks, Inc. Education Services4-20Initial 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 commitcommand to activate your changes

•Hint: Use the CLI’s | display setfunctionality to reverse-engineer a configuration into the CLI commands used to create it

Copyright © 2008 Juniper Networks, Inc. Education Services4-21Initial 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-passwordNew password:

Retype new password:[edit system]root#

Education Services4-22Copyright © 2008 Juniper Networks, Inc. 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.00Sun Jul 27 09:00:00 UTC 2008

Copyright © 2008 Juniper Networks, Inc. Education Services4-23Initial 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

Copyright © 2008 Juniper Networks, Inc. Education Services4-24Initial 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-quitcommit complete

Exiting configuration moderoot@switch>

Copyright © 2008 Juniper Networks, Inc. Education Services4-25Initial Configuration Results (1 of 2)

root@switch> show configuration

## Last commit: 2008-07-14 21:09:44 UTC by rootversion 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;}

}

Copyright © 2008 Juniper Networks, Inc. Education Services4-26Initial 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;}

Copyright © 2008 Juniper Networks, Inc. Education Services4-27Summary

In this chapter, we:

•Described installation of Juniper Networks EX-series switches•Saved and restored a rescue configuration

•Returned an EX-series switch to the factory-default state•Described the initial configuration options

•Performed initial configuration using the console’s EZsetup option

•Performed initial configuration using J-Web and the LCD menu•Performed initial configuration using the CLI

Copyright © 2008 Juniper Networks, Inc. Education Services4-28Review Questions

1.Which command do you use to load the rescue configuration?

2.List three items you should have ready before performing an initial configuration of an EX-series switch.

3.Which command do you use at the shell prompt to enter operational mode?

4.Which final configuration-mode command must you enter to enable your initial configuration?

Copyright © 2008 Juniper Networks, Inc. Education Services4-29Lab 2: Initial Configuration

Perform tasks normally associated with initial configuration of an EX-series switch.

Copyright © 2008 Juniper Networks, Inc. Education Services4-30Education Services

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 91gzw.com 版权所有 湘ICP备2023023988号-2

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务