Cover | Table of Contents | Colophon
show system processes command. These processes are fully independent, so a failure of one process will not affect the other. For example, shows the Simple Network Management Protocol (SNMP) process pulling information from the interface, chassis, and routing processes. If this SNMP process fails or contains a software bug, it affects only this process and not the others. This is a major shift from other routing vendors that operated monolithic code where one change in the interface code could affect just about anything without reason.
run. For example, if the command show route is issued in operational mode, it can be issued as run show route in configuration mode.> (chevron) character at the router prompt of username@hostname. As shown here, user doug logs into a router called Hops:Hops (ttyd0)
login:doug
Password:
--- JUNOS 8.0R1.9 built 2006-08-11 16:25:40 UTC
doug@Hops>root. In this case, the user will actually be placed into the shell (designated by the percent sign) and will have to start the CLI process manually:Hops (ttyd0)
login:root
Password:
--- JUNOS 8.0R2.8 built 2006-09-29 09:22:36 UTC
root@Hops% cli
root@Hops>show commands, which allow you to gather information about the routing protocols, interfaces, router's software, and router's hardware. commit can actually be scheduled:[edit]
doug@Hops#commit at 07:05
configuration check succeeds
commit at will be executed at 2007-06-10 07:05:00 UTC
Exiting configuration modecommit has been scheduled, other users cannot change any piece of the new locked configuration:joe@Hops>configure Entering configuration mode Users currently editing the configuration: doug terminal d0 (pid 11035) on since 2007-06-05 05:04:51 UTC commit-at [edit] joe@Hops# set system host-name foo error: configuration database locked by: doug terminal d0 (pid 11035) on since 2007-06-05 05:04:51 UTC commit at [edit] joe@Hops# commit error: Another commit is pending
clear command can stop the timed action:joe@Hops#run clear system commit
Pending commit cleared[edit]
jane@R1#wildcard delete interfaces fe-
matched: fe-0/0/1
matched: fe-2/0/0
matched: fe-2/0/1
Delete 3 objects? [yes,no] (no) yesreplace command. Any string can replace any other string, with a string being anything from a character to any POSIX 1003.2 expression. For example, this command could be useful is when IPs referenced in filters, policies, and so on need to be updated to a new value:edit, set, delete, and commit).request system reboot
reload
reboot
restart router
match
find
search
hold
juniper
enable
root
cd protocols ospf
edit protocols ospf
cd /edit/protocols/ospf
dir protocols ospf
apply
copy
save
commit
rollback 1
rollback 0
rollback active
rollback previous
Request commands are used to issue system-wide functions such as rebooting the router. The rest of the options are invalid CLI commands.match will find every occurrence of a string in the output of the command. The find command will locate the first occurrence of the string, search is an invalid option, and hold will hold text without exiting the -More-- prompt.edit command.commit command. Of the remaining options, copy and save are valid CLI commands but are used for configuration management.[edit] prompt.rollback 1. rollback 0 is used to copy the active configuration to the candidate configuration, and the other options are not valid rollback commands.help topic command displays general information about any topic referenced in the Juniper documentation. The actual output of the command is as follows:lab@P1R1>help topic layer3-vpns overview
Layer 3 VPN Overview
In JUNOS software, Layer 3 VPNs are based on RFC 2547bis. RFC
2547bis defines a mechanism by which service providers can use
their IP backbones to provide VPN services to their customers. A
VPN is a set of sites that share common routing information and
Layer 3 whose connectivity is controlled by a collection of
policies. The sites that make up a Layer 3 VPN are connected over
a provider's existing public Internet backbone.
RFC 2547bis VPNs are also known as BGP/MPLS VPNs because BGP is
used to distribute VPN routing information across the provider's
backbone, and MPLS is used to forward VPN traffic across the VPN
backbone to remote sites.
Customer networks, because they are private, can use either public
addresses or private addresses, as defined in RFC 1918, Address
Allocation for Private Internets. When customer networks that use
private addresses connect to the public Internet infrastructure,
overlap with the same private addresses used by other network
users the private addresses might MPLS/BGP VPNs solve this problem
by adding a VPN identifier prefix to each address from a
particular VPN site, thereby creating an address that is unique
to the VPN and within the public Internet. In addition, each VPN has
both within its own VPN-specific routing table that contains the
routing information for that VPN only.fxp0
fxp0
fxp0 interface. If you don't configure the routing protocol correctly, you could have a route in your route table that points to the fxp0 interface and blackhole traffic, since this is a nontransit interface. To protect yourself from these types of situations, you should not run any routing protocols over this interface.fxp1
lo0
ae
at
br
e1
e3
t1
t3
fe
ge
encapsulation cisco-HDLC and no-keepalives, and with clocking set to internal:se-0/0/2 {
no-keepalives;
encapsulation cisco-hdlc;
serial-options {
clocking-mode internal;
}
unit 0;
}Lager that connects directly to router Porter over the fe-2/0/1 interface.fe-2/0/1 interface by issuing a show interfaces fe-2/0/1 terse command. JUNOS software interfaces are automatically "enabled" when the physical connection is wired.root@Lager>show interfaces terse fe-2/0/1
Interface Admin Link Proto Local Remote
fe-2/0/1 up upset interfaces <interface name> disable command.root@Lager>configure Entering configuration mode [edit] root@Lager# edit interfaces fe-2/0/1 [edit interfaces fe-2/0/1] root@Lager#set unit 0 family inet address 10.10.20.122/24
Lager has an IP address of 10.10.20.122 configured on its fast Ethernet interface with a subnet mask of /24. This was noticed to be a configuration error as the mask should have been configured for /27.[edit interfaces fe-2/0/1]
root@Lager#show
vlan-tagging;
unit 100 {
vlan-id 100;
family inet {
address 10.10.20.122/24;
}
}[edit interfaces fe-2/0/1]
root@Lager#set unit 100 family inet address 10.10.20.122/27[edit interfaces fe-2/0/1]
root@Lager#show
vlan-tagging;
unit 100 {
vlan-id 100;
family inet {
address 10.10.20.122/24;
address 10.10.20.122/27;
}
}delete command:[edit interfaces fe-2/0/1]
root@Lager#delete unit 100 family inet address 10.10.20.122/24rename command to change the subnet mask from /24 to /27:[edit interfaces fe-2/0/1 unit 100]
root@Lager#rename address 10.10.20.122/24 to address 10.10.20.122/27show interfaces extensive command.lo0
fe-0/1/0
fxp3
fxp0
loopback0
se-1/1
se-1/0/1
serial1/1
se-0/1/1
monitor interface
show interface statistics
monitor traffic
monitor statistics
fe-0/0/0 interface?no shutdown
set interface fe-0/0/0 disable
deactivate interface fe-0/0/0
disable interface fe-0/0/0
fxp0 OoB management interface.gre
tunnel.0
gr
ip.0
fe-0/1/0 is a transient interface, whereas fxp3 and loopback0 are invalid media types.monitor statistics command in an invalid command, whereas monitor traffic displays local TCP/IP traffic and show interfaces does not display information dynamically.internal and dce. DTE is not a configurable option.deactivate command. This command comments out the configuration that the running system will ignore.fxp0 OoB management interface. J-series routers must be managed via console, auxiliary ports, or regular PFE interfaces.gr interface. The gre interface is used internally by the router and should not be configured. The ip.0 and tunnel.0 interfaces are not valid interface types.[edit routing-options] hierarchy.|
Route type
|
|---|
[edit policy-options] hierarchy. Routing policy and firewall filters have a similar syntax in JUNOS software. The former deals with routes in the control plane, whereas the latter deals with packets in the data plane.set protocols <protocol-name> import to apply an import policy, or use set protocols <protocol-name> export to apply an export policy. illustrates this concept.