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.

then accept;<br />

}<br />

term bgp-peers {<br />

from {<br />

destination-address {<br />

10.0.31.0/24;<br />

}<br />

protocol tcp;<br />

port bgp;<br />

tcp-established;<br />

}<br />

then accept;<br />

}<br />

term final-accept {<br />

then accept;<br />

}<br />

}<br />

[edit interfaces]<br />

t1-0/0/3 {<br />

unit 0 {<br />

family inet {<br />

filter {<br />

input incoming-to-me;<br />

}<br />

address 10.0.31.2/24;<br />

}<br />

}<br />

}<br />

Use the show interfaces command to check that the filter is configured:<br />

aviva@RouterF> show interfaces t1-0/0/3.0 detail<br />

Logical interface t1-0/0/3.0 (Index 70) (SNMP ifIndex 40) (Generation 24)<br />

Flags: Point-To-Point SNMP-Traps Encapsulation: PPP<br />

Protocol inet, MTU: 1500, Generation: 31, Route table: 0<br />

Flags: None<br />

Filters: Input: incoming-to-me<br />

Addresses, Flags: Is-Preferred Is-Primary<br />

Destination: 10.0.31/24, Local: 10.0.31.2, Broadcast: 10.0.31.255,<br />

Generation: 63<br />

Looking at the logical interface, which is where information about the address family<br />

is displayed, you can see which firewall filters are applied to the interface.<br />

See Also<br />

Recipe 9.15<br />

314 | Chapter 9: Routing Policy and Firewall Filters<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!