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.

[edit]<br />

aviva@router1# set protocols bgp group external group export send-statics<br />

It’s worthwhile to take a moment to comment on the style you use to type configuration<br />

statements for routing policies (and also for firewall filters). In this recipe, you<br />

are at the [edit] configuration hierarchy level, which is the very top level of the hierarchy,<br />

so you have to type the full hierarchy to the statement as well as the statement<br />

itself. This recipe has a fairly deep hierarchy level, as do most policy and<br />

firewall configurations, so the method shown here involves a lot of typing:<br />

[edit]<br />

aviva@router1# set policy-options policy-statement send-statics term 1 from protocol<br />

static<br />

aviva@router1# set policy-options policy-statement send-statics term 1 then accept<br />

You may find it a better practice to move to that hierarchy level, both so you have<br />

less typing to do and so you have a better sense of where you are in the configuration.<br />

For this recipe, you could type most of the configuration commands from the<br />

[edit policy-options policy-statement send-statics term 1] hierarchy level:<br />

[edit]<br />

aviva@router1# edit policy-options policy-statement send-statics term 1<br />

[edit policy-options policy-statement send-statics term 1]<br />

aviva@router1# set from protocol static<br />

aviva@router1# set then accept<br />

Another configuration shortcut to minimize typing is to use the keystroke sequences<br />

listed in Table 1-1. Ctrl-p (or sometimes the up arrow on the keyboard) displays the<br />

previous CLI command:<br />

[edit]<br />

aviva@router1# set policy-options policy-statement send-statics term 1 from protocol<br />

static<br />

aviva@router1# Ctrl-p<br />

[edit]<br />

aviva@router1# set policy-options policy-statement send-statics term 1 from protocol<br />

static<br />

Then delete from protocol static and type then accept. To delete the previous statements,<br />

use the Backspace key or the sequence Ctrl-b to move back one character or<br />

Esc-b to move back one word, along with Ctrl-k to delete all characters from the cursor<br />

to the end of the line:<br />

[edit]<br />

aviva@router1# set policy-options policy-statement send-statics term 1 backspace to here<br />

aviva@router1# set policy-options policy-statement send-statics term 1 then accept<br />

See Also<br />

Recipes 9.2 and 9.7<br />

Creating a Simple Routing Policy | 289<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!