2012年5月14日 星期一

JUNOS Route Policy

RIP、OSPF and BGP 的 default Route policy

Protocol
Import policy
Export policy
RIP
Accept all RIP route from explicitly configured neighbor and import into inet.0
Reject everything
OSPF
Accept all OSPF routes and import into inet.0
Reject everything (protocol flood by default)
BGP
Accept all BGP route and import inet.0 and inet6.0
Accept all active BGP routes

Route filter and prefix list
exact:完全精準
ex: 192.168.1.0/16 exact等於是192.168.1.0/16的route才採用。
longer:大於
ex: 192.168.1.0/16 longer等於是192.168.1.0/17~192.168.1.0/32之間的route才採用。
orlonger:大於等於
ex: 192.168.1.0/16 orlonger等於是192.168.1.0/16~192.168.1.0/32之間的route才採用。
upto:定一個範圍
ex: 192.168.1.0/16 upto /24等於說是192.168.1.0/16~192.168.1.0/24之間的route才採用。
prefix-length-range:訂定一個區間
ex: 192.168.1.0/16 prefix-length-range /20-/24等於說192.168.1.0/20~/24間的route才採用。
through:直接定義範圍。










2012年5月12日 星期六

JUNOS Software Routing Tables


列出JUNOS內有的Routing Tables:
inet.0
This table stores IPv4 unicast routes. Example is given at the beginning of this post. Here is an example that shows only static routes from table inet.0 (protocol static).
inet.1
Table inet.1 is used for IPv4 multicast routes. This table is also known as multicast forwarding cache and contains pair of (Source, Group).
inet.2
Table contains IPv4 unicast routes used by multicast for RPF (Reverse Path Forwarding) to prevent routing loops.
inet.3
Routing table inet.3 contains egress IP address of a MPLS label switched path (LSP).
inet.4
This routing table stores information learned using the Multicast Source Discovery Protocol (MSDP).
inet6.0
This table is used by IPv6 routes (see that change? It is inet6 now). After dot we have number 0, which means that it is used once again for unicast routes.
mpls.0
As name implies, routing table is used by MPLS. Better name is switching name.
bgp.l3vpn.0
This table is used, when having Layer 3 VPNs.
bgp.l2vpn.0
This table is used, when having Layer 2 VPNs.