Common Config Flashcards
How to you save the candidate config to text file?
from configuration mode;
save <filename></filename>
Saves from current hierarchy down. Sticks file into users working dir by default (eg, /var/home/root)
Can also save <path/filename>
and save ftp://x.x
save scp://x.x
what does load merge do?
combines the current config with whatever config is in the file you specify
What does load override do?
has to be run from top of the config heirarchy. completely force loads the specified config file overwriting all existing config.
what does load patch do?
adds or removes variables in the config. Takes contextual diff input, which could be generated by show | compare save
how do you load config from terminal?
load terminal
Paste in then CTRL+D to end
what does the relative keyword do when loading?
by default the config you load needs to have the full edit paths…
relative allows the config to be applied to the hierarchy you’re in without the full paths.
How can you add config to the middle of a list of things?
insert term <thing1> before|after term <thing2></thing2></thing1>
whats the factory default login details?
root, no password
how do you restore the factory config?
load factory-default – puts config in candidate
set system root-authentication plain-text-password – set the root password
commit
How do you shut a chassis down?
request system halt - leaves the box powered on, console activity reboots
request system power-off - turns the whole box off
on dual RE boxes;
request system halt both-routing-engines – will shut both RE’s down at the same time.
What does request system halt all-members do?
in EX virtual chassis’ setups it turns all the switches in the chassis group off.
On a new box, whats first thing you have to configure?
root password;
set system root-authentication plain-text-password
whats the default root password policy?
6 chars
a change of case digits or punctuation
how are you setting hostname?
configure
edit system
set hostname <hostname>
commit</hostname>
how do you set the timezone?
edit system
set timezone <timezonename>
set timezone Europe/London</timezonename>
How do you set the time?
From operational mode
set date <YYYYMMDDhhmm.ss></YYYYMMDDhhmm.ss>
How do you enable SSH?
edit system
set services ssh root-login allow
Can root SSH by default?
NO! has to be permitted
How do you set a management IP?
set interface fxp0 unit 0 family inet address 10.0.1.131/27
How do you set a static route?
set routing-options static route 10.0.1.0/24 next-hop 10.0.1.129
Whats a backup router and how do you configure one?
Its a route that gets used in the event the RE is up but the routing process isn’t running. Makes sure you don’ttop
lose management access if routing dies.
set system backup-router 10.0.1.129 destination 10.0.15.0/24
What does no-readvertise on the end of a static route do?
stops it from being redistributed
What does the retain command do on a static route?
keeps it in the forwarding table.
How do you view the active config?
show configuration
from operational mode
Whats the default CLI idle timout? how do you change it?
None set by default.
For the current session:
(Operational:) set cli idle-timeout <n></n>
to set a global default:
(Configure:) set cli login idle-timeout <n></n>
How do you set a login message?
set system login message “message goes here”
How do you add a rescue config?
(Operational:) request system configuration rescue save
How do you restore the rescue config
rollback rescue (Loads it to candidate config)