28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The show command displays the items in the configuration, starting at the current<br />

hierarchy level. If you start at the [edit] level, you see the entire configuration:<br />

[edit]<br />

aviva@router1# show<br />

version "7.4R1.7";<br />

groups {<br />

re0 {<br />

system {<br />

host-name router1;<br />

}<br />

interfaces {<br />

fxp0 {<br />

unit 0 {<br />

family inet {<br />

...<br />

If you are at a lower level, you see just that portion of the configuration. The following<br />

example starts in the OSPF portion of the configuration:<br />

[edit protocols ospf]<br />

aviva@router1# show<br />

export export-statics;<br />

area 0.0.0.0 {<br />

interface fe-0/0/1.0;<br />

interface fe-1/0/1.0;<br />

}<br />

Why are there curly braces here? The JUNOS software uses curly braces to represent<br />

the structure of the configuration file, delineating related sections of configuration<br />

parameters. If you are a C-language programmer, you will be very familiar with them.<br />

The opposite of the set command is delete, which removes an item from the configuration.<br />

You can delete an individual item from the configuration (such as delete<br />

interface fe-1/0/1.0 from the OSPF configuration above), or you can delete an<br />

entire section—here the area 0.0.0.0 section from the OSPF configuration:<br />

[edit protocols ospf]<br />

aviva@router1# delete area 0.0.0.0<br />

aviva@router1# show<br />

export export-statics;<br />

Another time-saving command is run, which allows you to issue an operational command<br />

from within configuration mode. For example, the run show route command<br />

from configuration mode is the same as the show route command from operational<br />

mode:<br />

[edit]<br />

aviva@router1# run show route

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!