JUNIPER NETWORKS路由器的确上手度不是太高,就连最基本的路由表也是.可能是CISCO的东东看过了,初次看到JUNIPER NETWORKS的路由表,一个字"烦",不过习惯就好
JUNOS软件中路由表的种类:
1.inet.0
2.inet.1
3.inet.2
4.inet.3
5.inet.4
6.inet6.0
7.mpls.0
8.bgp.l3vpn.0
9.bgp.l2vpn.0
Table inet.0
inet.0为IPv4单播路由表:
user@Riesling> show route table inet.0
inet.0: 49 destinations, 49 routes (49 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.8.0/24 *[Direct/0] 00:11:43
> via so-0/0/2.900
10.0.8.3/32 *[Local/0] 00:11:43
Local
172.16.16.0/21 *[Aggregate/130] 00:36:17
Reject
172.16.16.0/24 *[Static/5] 00:06:12
Reject
192.168.5.1/32 *[OSPF/10] 00:00:15, metric 1
> via so-0/0/2.900
192.168.6.0/24 *[IS-IS/18] 00:24:49, metric 10, tag 2
> to 10.0.0.1 via fe-0/0/0.0
192.168.10.0/24 *[BGP/170] 00:06:08, localpref 100
AS path: 1 I
> to 121.10.0.2 via at-0/1/0.100
Table inet.1
inet.1为IPv4组播路由表,也叫组播转发缓存(multicast forwarding cache):
user@Riesling> show route table inet.1
inet.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
224.2.2.2,10.10.200.200/32*[PIM/105] 00:01:58
Multicast
Table inet.2
inet.2路由表同样用于存储IPv4单播路由表,但该路由表由组播路由协议所使用用于防止路由环路.该过程叫逆向路径转发(Reverse Path Forwarding,RPF)检查:
user@Riesling> show route table inet.2
inet.2: 49 destinations, 49 routes (49 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.8.0/24 *[Direct/0] 00:15:43
> via so-0/0/2.900
10.0.8.3/32 *[Local/0] 00:15:43
Local
10.0.9.0/24 *[Direct/0] 00:15:43
> via so-0/0/1.0
10.0.9.2/32 *[Local/0] 00:15:43
Local
10.0.10.0/24 *[Direct/0] 00:15:43
> via so-0/0/0.212
10.0.10.1/32 *[Local/0] 00:15:43
Local
Table inet.3
inet.3路由表包含了MPLS LSP的出口IP地址:
user@Riesling> show route table inet.3
inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.96.1/32 *[RSVP/7] 00:05:12, metric 20, metric2 0
> via so-0/0/3.0, label-switched-path to-the-egress
Table inet.4
inet.4路由表存储通过组播源发现协议(Multicast Source Discovery Protocol,MSDP)学习到的信息:
user@Riesling> show route table inet.4
inet.4: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
224.2.2.2,10.10.201.200/32*[MSDP/175/1] 00:00:45, from 192.168.20.1
> to 192.168.28.1 via fe-0/1/3.0
Table inet6.0
inet6.0路由表存储IPv6单播路由:
user@Riesling> show route table inet6.0
inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
fec0:0:0:2003::/64 *[Direct/0] 00:06:14
> via fe-0/0/1.0
fec0:0:0:2003::1/128 *[Local/0] 00:06:14
Local via fe-0/0/1.0
Table mpls.0
mpls.0表实际上不是路由表,而是一张交换(switching)表,存储MPLS标签信息:
user@Riesling> show route table mpls.0
mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 00:06:40, metric 1
Receive
1 *[MPLS/0] 00:06:40, metric 1
Receive
100000 *[RSVP/7] 00:06:18, metric 1
> via so-0/0/1.0, label-switched-path to-the-egress