R3: show ip route
The following example shows the output of the show ip route command for router R3.
vyatta@R3:~$ show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - ISIS, B - BGP, > - selected route, * - FIB route R>* 10.0.30.0/24 [120/3] via 10.0.50.2, dp0p1p6, 00:45:21 R>* 10.0.40.0/24 [120/2] via 10.0.50.2, dp0p1p6, 00:45:21 C>* 10.0.50.0/24 is directly connected, dp0p1p6 C>* 10.0.60.0/24 is directly connected, dp0p1p7 C>* 127.0.0.0/8 is directly connected, lo vyatta@R3:~$
The output shows that routes to 10.0.30.0/24, and 10.0.40.0/24 have been learned via RIP and that packets to those networks will be forwarded out dp0p1p6 to 10.0.50.2. Networks 10.0.50.0/24 and 10.0.60.0/24 are directly connected. Notice that there is no route to 10.0.20.0/24 as it was filtered by the routing policy.