Juniper FAQ

From Teknologisk videncenter
Revision as of 20:43, 29 September 2014 by Rael (talk | contribs) (added Category:Juniper using HotCat)
Jump to: navigation, search

Juniper FAQ

Kan syslog filer deles i flere, som med traceoptions?

[edit system syslog]
root@SRX240# show
file messages {
    any any;
    archive size 512k files 10 world-readable;
}

Kan man lave en no keepalive på juniper?

[edit interfaces ge-0/0/0]
root@SRX240# show
gigether-options {
    loopback;
}

Hvordan ser man matches på en Route Policy?

Under [edit routing-options] opretter man en traceoption med flag policy, der matcher alt fra en routing policy. I Routing politikken tilføjer man trace under then for at logge det[1].

routing-options {
    traceoptions {
        file policy-log size 512k files 10 world-readable;
        flag policy;
    }
}
policy-options {
    policy-statement BGP-EXPORT-POLICY {
        term MATCH-AGG {
            from protocol aggregate;
            then accept;
        }
        term DENY-OTHER {
            then {
                trace;
                reject;
            }
        }
    }
}

Hvordan laver man en IPv6 Default Route?


routing-options {
    rib inet6.0 {
        static {
            route ::/0 next-hop 2001:218:420:146::1;
        }
    }
}

Hvordan ser man rollback configurationen?

Rollback configurationen kan kun vises fra operational mode, og ikke med run kommandoen.[2]
show system rollback <num>

root@SRX240> show system rollback 2 compare 3
[edit system]
+   services {
+       ssh;
+       telnet;
+   }

Hvad gør man hvis den booter fra backup Junos OS?

Man installerer OS igen, eller kopierer snapshot over på primare partition[3].
Her er det vist på en SRX100:

login: root

--- JUNOS 10.2R3.10 built 2010-10-16 20:36:59 UTC

***********************************************************************
**                                                                   **
**  WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE      **
**                                                                   **
**  It is possible that the primary copy of JUNOS failed to boot up  **
**  properly, and so this device has booted from the backup copy.    **
**                                                                   **
**  Please re-install JUNOS to recover the primary copy in case      **
**  it has been corrupted.                                           **
**                                                                   **
***********************************************************************


root@% cli
root> request system snapshot slice alternate
Formatting alternate root (/dev/da0s1a)...

Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes)
The following filesystems were archived: /

root> request system reboot
Reboot the system ? [yes,no] (no) yes

Shutdown NOW!
[pid 1521]

root>                                                                    
*** FINAL System shutdown message from root@SRX100 ***
System going down IMMEDIATELY

Hvilke applicatiner er på forhånd defineret i JunOS?

De kan alle findes med:

show configuration groups junos-defaults applications

References