INTRODUCTION TO JUNOS - Tutorial - set, delete, rename, replace, insert - [vDay One - Video #3]
AVAILABLE IN SPANISH, MANDARIN, FRENCH & PORTUGUESE.
You can download this vDay One book with videos in all these languages, and for free, here: http://www.juniper.net/us/en/communit...
This video illustrates how to Edit the Candidate Configuration
Closed Caption:
video 3
editing the kennedy configuration this
video describes the task number three
have this vide one practice now that you
know
out navigate through the configuration
let's change it
you can view the configuration as a tree
with branches and leaves
the SET command is creating a new leaf
in the hierarchy view and id2
this leaf is anchored at the unit to
branch
since the unit to branch did not exist
the SET command had to create it first
in order to place the veal and id2
leave so the set command has the
necessary intelligence
to create all the necessary branches to
place a new leaf
as you know the edit command
allows you to go down the hierarchy in
this case two levels
down to the configuration up the
interface Gigabit Ethernet 0
0 one from there
you can execute the command set relative
to the branch
the hierarchy where you are you change
the view and ID value from
to 2102 so executing
twice the set command at the same leave
soup which changes the value
to leave but see another example
this logical interface still does not
have all the necessary properties to be
operational
you need an address family lets choose
ipv4
or in other words i net with the same
set command
you create the branch family i net and
also
the address what if you try to change
the IP address with the set command
unlike the veal and I D which is unique
a logical interface could have several
ipv4 addresses
so this command is not change in the
current ipv4 address
instead it adds a new one the set
command has the ability
up doing replacement or addition
depending on the type variable
its acting upon the delete command
removes specify branch from the
hierarchy level where you are
in this case you do the unit to
and all its leaves up to now
you have seen how the set and delete
commands modify the kennedy
configuration let's see the other
commands
the copy command that you see in the
terminal
is copying the configuration up the
interface
GE 001 to GE
002 this command to succeed
you to feast GE 002
not exist beforehand since juneau's
would not over eight
existing branch as a result of the copy
command
both interfaces have an identical
configuration what if we delete GE
001 now as a net result of this two-step
procedure
interface GE 001 is now replaced
by GE 002 imagine that you regret this
change
and want to revert the configuration
have G 00 to
back to G 00 01 you can use a two-step
procedure
copying GE 002 2g 001
and deleting GE's 002 or
as an alternative you can do it in one
shot with the rename command
apparently it's just a name change
but in reality it's something more
internally
two doses deleting GE 002 adding
GE 001 for the user
it's just one commando
now let's see what happens if you add a
new ipv4 address to the loopback
interface
1
what you just did can be
with one single command indeed
you use the rename command here to
restore the original address
in reality not have the
changes showed up to now had any effect
on the device
secure acting upon the kennedy
configuration
the changes have not been committed your
writing on a draft which is changing
but as long as the changes are not
committed the active configuration
remains the same
although you are adding configuration
pieces changing
moving and deleting them from the
perspective of the
active configuration there was no change
later you'll see how to commit changes
but for the moment but see other options
too at the kennedy configuration
you're about to do replacement but
instead of moving a branch
or leave you'll do a pattern
substitution
you are in edit interfaces
and every occurrence number one down
that hierarchy
is replaced with number two it's very
much like
editing a text file and performing a
global replacement although replace
is a very useful command it's also very
aggressive
in the sense that you may replace
something expected in this case
as we replace one with two the interface
GE's 001
becomes G 00 to but this only work
since the GE 002 was not previously
defined in the configuration
unit 1 became unit 2 UNID one
is now UNID to in the IP address 10 now
1.1 2.1 became 20 dot to dot
2.2 how can you go back this time
just need to do the reverse replacement
to with one
however the reverse replacement does not
always work
you could have unexpected surprises
but see an example in this loopback
interface
your place pattern one with two so IP
address
10 dot 100 got 1.1 is simply replaced
with 20 duck 200 dot 2.2
the surprises in the way back your place
parent to
with one what happened not only
the IP address changes also the network
mask does
you went from a slash 32 to slash 31
and other words after placing one with
two
into with one the end result is
different
than the original one which had 10 not
100% dot 1.1 slash 32
and not 31 in order to fix it
you do find a replacement although or
rename would have worked here too
anyway since nothing has been committed
yet
now that these temporary changes made it
to the active configuration so far
finally but see how to reorder part to
the configuration
in this example you
is the order of the IP addresses there
are other scenarios
where the usefulness up the INSERT
command is more obvious
for example if you move terms
in a firewall filter in Junos which is
similar to an access list and I O S
or if you added a routing policy in
Junos
similar to a route map NIOS
Video Length: 07:59
Uploaded By: juniperbooks
Published: 8/1/2013
View Count: 8,974