Академический Документы
Профессиональный Документы
Культура Документы
Options
4-1
Copyright 2005 Juniper Networks, Inc.
www.juniper.net
J-Web interface:
A Web-based GUI
Active configuration:
Current operational configuration
Boot-up configuration
Candidate configuration:
A working copy for configuration changes
Initialized with the active configuration
Becomes active configuration upon commit
Configuration History
commit
Candidate
Configuration
configure
Active
Configuration
0
rollback n
...
49
J-Web
Easy to set up and maintain
Performance monitoring
J-Web Login
J-Web sessions
require a valid
login
HTTP or HTTPS
access
Use same
authentication
methods as CLI
Exception is initial
access, when no
login is needed to
access initial setup
wizard
2008 Juniper Networks, Inc. All rights reserved.
Dashboard Tab
The Dashboard tab is the default view
Chassis
view
Gener
al
syste
mdata
Health
status
System
stats
Syste
m
alarms
Configuration Tab
Levels of
hierarchy
that can
be edited
CLI
editing
Add,
Edit,
and
Delete
Option
s
Select
and
View
Options
Monitor Tab
Real-time charts and show commands:
Monitor
most
levels
of
hierarc
hy
Realtime
interfac
e
statistic
s
Packet
and
error
counters
Maintain Tab
Easy file and software management:
10
Troubleshoot Tab
Ping, traceroute, Java-based CLI, and packet
captures:
11
12
CLI Modes
Operational mode:
Monitor and troubleshoot the software, network
connectivity, and switch hardware
user@switch>
Configuration mode:
Configure the switch, including interfaces, general
bridging information, routing protocols, user
access, and system hardware properties
[edit]
user@switch#
The # character
identifies configuration
mode
13
Logging In
When logging in:
Nonroot users are placed into the CLI
automatically
switch (ttyu0)
login: user
Password:
--- JUNOS 9.1R2.10 built 2008-07-01 04:34:43 UTC
user@switch>
The root user must start the CLI from the shell
switch (ttyu0)
login:
Password:
Shell
Prompt
CLI Prompt
14
dot1x
configure
configuration
bridge
2008 Juniper Networks, Inc. All rights reserved.
help
spanning-tree version
interface
mstp
etc.
statistics
More Specific
15
Cursor
Position
Ctrl+e
user@switch> show interfaces
16
Enter a space to
user@switch> sh<space>ow i<space>
complete a
'i' is ambiguous.
command
Possible completions:
igmp
Show Internet Group Management Protocol...
igmp-snooping
Show IGMP snooping information
ike
Show Internet Key Exchange information
interfaces
Show interface information
ipsec
Show IP Security information
isis
Show Intermediate System-to-Intermediate...
user@switch> show i
complete assigned
variables
17
Context-Sensitive Help
Type ? anywhere on the command line
user@switch> ?
Possible completions:
clear
configure
file
help
. . .
user@switch> clear ?
Possible completions:
arp
bfd
bgp
dhcp
. . .
18
Topical Help
The help topic command provides
information on general concepts
user@switch> help topic interfaces ?
Possible completions:
accept-data
accept-source-mac
accounting
accounting-profile
acknowledge-timer
address
...
user@switch> help topic interfaces address
Configuring the Interface Address
You assign an address to an interface by specifying the address when
configuring the protocol family. For the inet family, configure the
interface's IP address. For the iso family, configure one or more
addresses for the loopback interface. For the ccc, tcc, mpls, tnp, and
vpls families, you never configure an address.
...
2008 Juniper Networks, Inc. All rights reserved.
19
20
Using | (Pipe)
The pipe function allows you to filter and
manipulate command output
Available in all modes and contexts
user@switch> show route | ?
Possible completions:
count
Count occurrences
display
Show additional kinds of information
except
Show only text that does not match a pattern
find
Search for first occurrence of pattern
hold
Hold text without exiting the --More-- prompt
last
Display end of output only
match
Show only text that matches a pattern
no-more
Don't paginate output
request
Make system-level requests
resolve
Resolve IP addresses
save
Save output text to file
trim
Trim specified number of columns from start of line
user@switch> show route |
2008 Juniper Networks, Inc. All rights reserved.
21
Review:
Active Versus Candidate Configuration
Batch configuration model:
Must commit configuration changes
Active configuration:
Current operational configuration
Boot-up configuration
Candidate configuration:
A working copy for configuration changes
Initialized with the active configuration
Becomes active configuration upon commit
22
configure
Active
Configuration
0
rollback n
...
49
23
24
Less Specific
chassis interfaces protocols
bgp
isis
mstp
bridge-priority
ospf
pim
forward-delay
cost
2008 Juniper Networks, Inc. All rights reserved.
edge
snmp
rip
system etc.
stp
rstp
interface name
mode
etc.
max-delay
etc.
etc.
More Specific
25
26
bgp
isis
mstp
bridge-priority
cost
2008 Juniper Networks, Inc. All rights reserved.
ospf
pim
forward-delay
edge
snmp
rip
system etc.
stp
rstp
interface name
mode
etc.
max-delay
etc.
etc.
27
chassis
bgp
[edit]
interfaces protocols
isis
mstp
bridge-priority
cost
2008 Juniper Networks, Inc. All rights reserved.
ospf
pim
forward-delay
edge
snmp
rip
system etc.
stp
rstp
interface name
mode
etc.
max-delay
etc.
etc.
28
[edit]
bgp
isis
mstp
bridge-priority
cost
2008 Juniper Networks, Inc. All rights reserved.
ospf
pim
forward-delay
edge
snmp
rip
system etc.
stp
rstp
interface name
mode
etc.
max-delay
etc.
etc.
29
[edit]
bgp
isis
mstp
bridge-priority
cost
2008 Juniper Networks, Inc. All rights reserved.
ospf
pim
forward-delay
edge
snmp
rip
system etc.
stp
rstp
interface name
mode
etc.
max-delay
etc.
etc.
30
bgp
isis
mstp
bridge-priority
2008 Juniper Networks, Inc. All rights reserved.
ospf
pim
forward-delay
snmp
rip
system etc.
stp
rstp
interface name
etc.
max-delay
etc.
31
[edit]
user@switch# edit protocols rstp interface ge-0/0/12.0
[edit protocols rstp interface ge-0/0/12.0]
user@switch# up
[edit protocols rstp]
user@switch# up 2
[edit]
user@switch# top
warning: already at top of configuration; use exit to exit
[edit]
user@switch# exit
Exiting configuration mode
user@switch>
2008 Juniper Networks, Inc. All rights reserved.
32
[edit]
user@switch# edit system services
[edit system services]
user@switch# show
ssh;
web-management {
http {
port 8080;
}
}
33
34
35
Removing Statements (1 of 2)
Statements added with the set command are
removed with the delete command
[edit system]
user@switch# show services
ssh;
web-management {
http {
port 8080;
}
}
[edit system]
user@switch# delete services web-management
[edit system]
user@switch# show services
ssh;
36
Removing Statements (2 of 2)
Pop quiz: You just disabled an interface with
a set interface interface-name disable
statement. How do you re-enable this
interface?
37
38
Committing a Configuration (1 of 2)
Configuration changes must be committed to
take effect:
[edit]
user@switch# commit
commit complete
[edit]
user@switch#
39
Committing a Configuration (2 of 2)
Schedule a future commit with commit at:
[edit]
user@switch# commit at 21:00:00
configuration check succeeds
commit at will be executed at 2008-08-17 21:00:00 UTC
Exiting configuration mode
40
41
Miscellaneous features:
42
43
44
run Is Cool
Use the run command to execute operationalmode CLI commands from within the
configuration
45