下面继续说路由器相关的话题。
路由表是怎么来的呢?原来,根据路由表表项(Route entry)的来源,可以分为三大类:
1,直连路由和本地路由(Direct Route, Local Route);
2,静态路由(Static Route);
3,协议路由(Protocol Route);
下面是某运行JUNOS的路由器上的路由表:
root@********> show route terse
inet.0: 28 destinations, 28 routes (28 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 1.0.0.0/8 D 0 >reth1.0
* 1.0.0.1/32 L 0 Local
* 2.0.0.0/8 D 0 >reth2.0
* 2.0.0.1/32 L 0 Local
* 3.0.0.0/8 D 0 >reth3.0
* 3.0.0.1/32 L 0 Local
* 6.0.0.1/32 L 0 Reject
* 7.0.0.1/32 L 0 Reject
* 10.0.0.0/8 D 0 >st0.0
* 10.0.0.1/32 L 0 Local
* 10.5.0.0/16 S 5 >10.157.64.1
* 10.10.0.0/16 S 5 >10.157.64.1
* 10.150.0.0/16 S 5 >10.157.64.1
* 10.150.48.0/21 S 5 >10.157.64.1
* 10.155.0.0/16 S 5 >10.157.64.1
* 10.157.64.0/19 D 0 >fxp0.0
* 10.157.83.233/32 D 0 >lo0.0
* 10.157.84.233/32 L 0 Local
* 10.209.0.0/16 S 5 >10.157.64.1
* 11.11.11.2/32 S 5 >1.0.0.11
* 172.16.0.0/12 S 5 >10.157.64.1
* 192.168.0.0/16 S 5 >10.157.64.1
* 192.168.102.0/23 S 5 >10.157.64.1
* 207.17.136.0/24 S 5 >10.157.64.1
* 207.17.136.192/32 S 5 >10.157.64.1
下面将详解这三类路由表项。 |