Examine the current active router configuration.
To display the current, active router configuration, use the following command-line interface (CLI) operational mode command:
user@host> show configuration
version "5.6I0";
groups {
global {
system {
host-name potter;
domain-name harry.potter.net;
domain-search [ harry.potter.net potter.net hryptr.net ];
backup-router 10.110.12.254;
time-zone America/Los_Angeles;
debugger-on-panic;
debugger-on-break;
dump-on-panic;
authentication-order [ tacplus password radius ];
root-authentication {
encrypted-password "$1$OFf5.$I7.kUgMmx/4WKwUAG"; # SECRET-DATA
}
name-server {
172.17.28.101;
172.17.28.100;
}
radius-server {
10.168.5.73 {
secret "$9$Nd-YoDjq.PT4oZjik5T369pBIhSlL7dC"; # SECRET-DATA
timeout 5;
retry 3;
}
}
tacplus-server {
10.168.5.73 {
secret "$9$.539IRSM87O1lMX-2gqmfTz6"; # SECRET-DATA
timeout 15;
single-connection;
}
}
login {
class superuser-local {
permissions all;
}
class wheel {
permissions [ admin clear field floppy interfacemaintenance network reset routing shell snmp system trace view ];
}
class readonly {
permissions [ interface network routing system trace view ];
}
user rpe {
uid 1230;
class superuser;
shell csh;
authentication {
encrypted-password FN5oyk/qZO7F2; # SECRET-DATA
}
[...Output truncated...]
}
}
}
static-host-mapping {
crater sysid 0102.5524.5045;
badlands sysid 0102.5524.5046;
[...Output truncated...]
}
services {
finger;
ftp;
rlogin;
rsh;
ssh;
telnet;
}
syslog {
user * {
any emergency;
}
host log {
any notice;
pfe info;
interactive-commands any;
}
file messages {
any notice;
authorization info;
pfe info;
archive world-readable;
}
file security {
interactive-commands any;
archive world-readable;
}
file white_bx {
daemon notice;
archive size 40m world-readable;
}
}
processes {
routing enable;
snmp enable;
tnp-process enable;
ntp enable;
inet-process enable;
mib-process enable;
management enable;
watchdog enable;
}
ntp {
boot-server ntp.juniper.net;
server 172.17.27.46;
}
}
chassis {
dump-on-panic;
}
snmp {
location "Systest lab";
contact "Brian Matheson";
interface fxp0.0;
community public {
authorization read-only;
}
community private {
authorization read-write;
}
}
routing-options {
static {
/* corperate and alpha net */
route 172.16.0.0/12 {
next-hop 10.168.14.254;
retain;
no-readvertise; [...Output truncated...]
}
}
}
}
}
re1;
}
apply-groups [ global re0 re1 ];
chassis {
fpc 0 {
pic 0 {
mlfr-uni-nni-bundles 4;
}
}
}
interfaces {
ls-0/0/0:0 {
encapsulation multilink-frame-relay-uni-nni;
unit 0 {
dlci 100;
family inet {
address 10.53.99.2/32 {
destination 10.53.99.1;
}
}
}
}
ct3-0/1/0 {
partition 1 interface-type t1;
partition 2 interface-type t1;
partition 3 interface-type t1;
partition 4 interface-type t1;
}
t1-0/1/0:1 {
encapsulation multilink-frame-relay-uni-nni;
unit 0 {
family mlfr-uni-nni {
bundle ls-0/0/0:0;
}
}
}
routing-options {
static {
route 10.1.1.0/24 next-hop 10.53.99.1;
}
autonomous-system 69;
forwarding-table {
export pplb;
}
}
protocols {
bgp {
disable;
group int {
type internal;
neighbor 10.255.14.30;
[...Output truncated...] }
}
isis {
disable;
interface all {
level 1 disable;
}
interface fxp0.0 {
disable;
}
}
inactive: ospf {
traffic-engineering;
reference-bandwidth 4g;
area 0.0.0.0 {
interface all;
interface fxp0.0 {
disable;
}
}
}
}
policy-options {
policy-statement pplb {
then {
load-balance per-packet;
}
}
}
[...Output truncated...]
The sample output shows the current, active configuration for the router. When displaying the configuration, the CLI indents each subordinate hierarchy level, inserts braces to indicate the beginning and end of each hierarchy level, and places semicolons at the end of statements that are at the lowest level of the hierarchy.
The configuration statements appear in a fixed order. Interfaces appear alphabetically by type, and then in numerical order by slot number, Physical Interface Card (PIC) number, and port number.