Difference between revisions of "Juniper FAQ"
From Teknologisk videncenter
m (→Hvordan ser man rollback configurationen?) |
m (→Hvordan ser man rollback configurationen?) |
||
Line 63: | Line 63: | ||
+ telnet; | + telnet; | ||
+ } | + } | ||
+ | </pre> | ||
+ | ==hvad gør man hvis den booter fra backup Junos OS?== | ||
+ | Man installerer OS igen, eller kopierer snapshot over på primare partition<ref>http://www.juniper.net/techpubs/software/junos-security/junos-security10.2/junos-security-admin-guide/jd0e34995.html</ref>.<br/> | ||
+ | Her er det vist på en SRX100: | ||
+ | <pre> | ||
+ | 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)... | ||
</pre> | </pre> | ||
=References= | =References= | ||
<references /> | <references /> |
Revision as of 15:44, 9 December 2011
Contents
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)...
References
- ↑ http://www.juniper.net/techpubs/en_US/junos9.5/information-products/topic-collections/config-guide-policy/policy-configuring-actions-in-routing-policy-terms.html#id-10467981
- ↑ http://www.juniper.net/techpubs/en_US/junos/topics/reference/command-summary/show-system-rollback.html
- ↑ http://www.juniper.net/techpubs/software/junos-security/junos-security10.2/junos-security-admin-guide/jd0e34995.html