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 address of the interface to which you connect on the ISP’s router. This route then<br />

forwards all Internet-bound traffic through the ISP and out to the Internet.<br />

Check the routing table to see the route:<br />

aviva@router1> show route table inet.0<br />

inet.0: 20 destinations, 20 routes (19 active, 0 holddown, 1 hidden)<br />

+ = Active Route, - = Last Active, * = Both<br />

0.0.0.0/0 *[Static/5] 00:06:50<br />

> to 10.0.21.2 via se-0/0/3<br />

Another reason to use static routes is when your network connects to a router or<br />

other system outside the network and either that system can’t run a routing protocol<br />

or you don’t want to run a routing protocol on it. In this situation, create a static<br />

route from your edge router to the outside system and then, on the edge router,<br />

redistribute static routes into your IGP. Here’s what the static route configuration<br />

might look like on the edge router:<br />

[edit routing-options]<br />

aviva@router1# set static route 172.168.17.6 next-hop 10.1.16.4<br />

Here, 172.168.17.6 is the address of the system outside your network, and 10.1.16.4<br />

is the address of the other router to which the interface on your router connects.<br />

See Also<br />

Recipes 11.8 and 12.10<br />

8.6 Blackholing Routes<br />

Problem<br />

You don’t want to route any traffic to particular networks.<br />

Solution<br />

Define static routes to these networks that discard the traffic:<br />

[edit routing-options]<br />

aviva@router1# set static route 1.0.0.0/8 discard<br />

aviva@router1# set static route 2.0.0.0/8 discard<br />

<strong>Discussion</strong><br />

There are some network addresses to which the router should never send traffic, and<br />

you never want routes to these networks to be installed in the routing table by one or<br />

all routing protocols. A good practice for dealing with these routes is to blackhole<br />

them. You do this by defining static routes to them with a next hop of discard. Packets<br />

being sent to these networks are then dropped. Also, the router does not send an<br />

ICMP (or ICMPv6) unreachable message in response to traffic sent to these networks,<br />

264 | Chapter 8: IP Routing<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!