On Fri, Nov 16, 2007 at 02:45:22PM -0800, Lord Sporkton wrote:
> I have ospf running between OpenBSD 4.2 GENERIC.MP#304 i386 and a 1721
> Cisco running c1700-k9o3sy7-mz.123-23.bin. "ospfctl show fib ospf"
> shows 2 networks, the loopbacks and the gre link however "ospfctl show
> database area 0.0.0.0" shows only the loopbacks, why doesn't the
> database show the gre link, and how is there an ospf route in the fib
> when its not in the database?
> 

Because "ospfctl show data" only shows a brief overview of the LSDB.
Only the info to identify a LSA are included the actual data inside the
LSA is not shown. You need to use "ospfctl show data router" to see all
included networks (especially the stub networks) included in a particular
router LSA. You can also view detailed outputs for network, inter-area and
as-external LSA outputs with the network, asbr and external keyword.

ospfctl show database is not yet perfect as you can not combine stuff or
select a specific LSA by the type, link ID and adv. router triplet.

> 
> Thank you for any help
> 
> 
> 
> # ospfctl show data area 0.0.0.0
> 
>                 Router Link States (Area 0.0.0.0)
> 
> Link ID         Adv Router      Age  Seq#       Checksum
> 192.168.179.1   192.168.179.1   988  0x80000003 0xe33b
> 192.168.179.2   192.168.179.2   959  0x8000002e 0x0fbe
> 
> # ospfctl show fib osp
> flags: * = valid, O = OSPF, C = Connected, S = Static
> Flags  Destination          Nexthop
> *O     172.16.0.0/30        172.16.0.2
> *O     192.168.179.2/32     172.16.0.2
> 
> 
> 
> 
> 
> 
> 
> # ifconfig gre0 inet
> gre0: flags=9011<UP,POINTOPOINT,LINK0,MULTICAST> mtu 1476
>         groups: gre
>         physical address inet X --> X
>         inet 172.16.0.1 --> 172.16.0.2 netmask 0xfffffffc
> 
> 
> # cat /etc/ospfd.conf
> 
> router-id 192.168.179.1
> 
> area 0.0.0.0 {
>         interface lo1:192.168.179.1
>         interface gre0
> }
> 
> 
> 
> Router#sho run | b ospf
> router ospf 179
>  router-id 192.168.179.2
>  log-adjacency-changes
>  network 172.16.0.0 0.0.15.255 area 0
>  network 192.168.179.0 0.0.0.255 area 0
> 
> 
> 
> -- 
> -Lawrence
> -Student ID 1028219
> 

-- 
:wq Claudio

Reply via email to