how the longer-prefixes option works

Unanswered Question
Jan 23rd, 2009

take this link as an example


http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfin...


how can the longer-prefixes example used throw up the networks including 10.134.0.0


The following is sample output using the longer-prefixes keyword. When the longer-prefixes keyword is included, the address and mask pair becomes the prefix, and any address that matches that prefix is displayed. Therefore, multiple addresses are displayed.


In the following example, the logical AND operation is performed on the source address 128.0.0.0 and the mask 128.0.0.0, resulting in 128.0.0.0. Each destination in the routing table is also logically ANDed with the mask and compared to that result of 128.0.0.0. Any destinations that fall into that range are displayed in the output.


Router# show ip route 128.0.0.0 128.0.0.0 longer-prefixes

Gateway of last resort is not set

S 10.134.0.0 is directly connected, Ethernet0

S 10.10.0.0 is directly connected, Ethernet0

S 10.129.0.0 is directly connected, Ethernet0

S 172.30.0.0 is directly connected, Ethernet0

S 172.40.246.0 is directly connected, Ethernet0

~~~~~~~~~~~~~~

I can't see how the binary and can give this

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion