[zebra 23081] Re: zebra, ospf, ping and traceroute problem

"Michal Nehasil" <[email protected]> Thu, 6 Dec 2007 00:48:18 +0100
Newsgroups gmane.network.zebra
Message-ID <[email protected]>
Hi Daniel,

you said you set up couple of Linux machines but showing us just
config and outputs of r2. So it is hard to guess what is wrong. Why
are you using ip ospf network command on interface, what kind of
network between neighbours are you useing? Can ypu provide us with sh
ip ospf neigh command and respective config of neighbors?

Regards, Michal

2007/12/5, Daniel Andrzejewski <[email protected]>:
> Hi,
>
> I have a problem. I set up couple Linux machines as routers using Zebra.
> However, I cannot ping machines that are on different subnets, can't use
> traceroute either. If I add static routes using route command then I can
> ping but still can't use traceroute. The below output shows that
> 'routing tables' are empty. Why is that? Is there something I'm missing
> in the conf files?
>
> r2# show ip ospf interface
> lo is up, line protocol is up
>   OSPF not enabled on this interface
> eth0 is up, line protocol is up
>   Internet Address 192.168.2.2/24, Area 0.0.0.0
>   Router ID 192.168.1.2, Network Type POINTOMULTIPOINT, Cost: 100
>   Transmit Delay is 1 sec, State Point-To-Point, Priority 1
>   No designated router on this network
>   No backup designated router on this network
>   Timer intervals configured, Hello 5, Dead 40, Wait 40, Retransmit 5
>     Hello due in 00:00:04
>   Neighbor Count is 2, Adjacent neighbor count is 2
> r2# show ip ospf interface
> lo is up, line protocol is up
>   OSPF not enabled on this interface
> eth0 is up, line protocol is up
>   Internet Address 192.168.2.2/24, Area 0.0.0.0
>   Router ID 192.168.1.2, Network Type POINTOMULTIPOINT, Cost: 100
>   Transmit Delay is 1 sec, State Point-To-Point, Priority 1
>   No designated router on this network
>   No backup designated router on this network
>   Timer intervals configured, Hello 5, Dead 40, Wait 40, Retransmit 5
>     Hello due in 00:00:04
>   Neighbor Count is 2, Adjacent neighbor count is 2
> eth1 is up, line protocol is up
>   Internet Address 192.168.1.2/24, Area 0.0.0.0
>   Router ID 192.168.1.2, Network Type POINTOMULTIPOINT, Cost: 100
>   Transmit Delay is 1 sec, State Point-To-Point, Priority 1
>   No designated router on this network
>   No backup designated router on this network
>   Timer intervals configured, Hello 5, Dead 40, Wait 40, Retransmit 5
>     Hello due in 00:00:02
>   Neighbor Count is 1, Adjacent neighbor count is 1
> sit0 is down, line protocol is down
>   OSPF not enabled on this interface
>
>
> r2> show ip ospf databa
>
>        OSPF Router with ID (192.168.1.2)
>
>                 Router Link States (Area 0.0.0.0)
>
> Link ID         ADV Router      Age  Seq#       CkSum  Link count
> 192.168.1.2     192.168.1.2     1585 0x80000003 0xe9bc 5
> 192.168.1.3     192.168.1.3     1586 0x80000003 0x2e73 5
> 192.168.2.1     192.168.2.1     1585 0x80000002 0xde94 3
>
>                 AS External Link States
>
> Link ID         ADV Router      Age  Seq#       CkSum  Route
> 192.168.1.0     192.168.2.1      978 0x80000001 0x3545 E2 192.168.1.0/24
> [0x0]
> 192.168.3.0     192.168.1.2      673 0x80000001 0x3d39 E2 192.168.3.0/24
> [0x0]
> 192.168.3.0     192.168.1.3       13 0x80000001 0x373e E2 192.168.3.0/24
> [0x0]
> 192.168.3.0     192.168.2.1      800 0x80000001 0x1f59 E2 192.168.3.0/24
> [0x0]
>
>
> r2# show ip ospf route
> ============ OSPF network routing table ============
>
> ============ OSPF router routing table =============
>
> ============ OSPF external routing table ===========
>
>
> The following is a listing of the ospfd.conf and zebra.conf files.
>
> r2:~# cat /mnt/sda/r2/ospfd_r2.conf
> hostname r2
> password ospf
> enable password ospf
> log file /usr/local/etc/temp/ospfd.log
> log record-priority
> !
> interface lo
> !
> interface eth0
>  description connection with r1 and r3
>  ip ospf network point-to-multipoint
>  ip ospf cost 100
>  ip ospf hello-interval 5
>  ip ospf retransmit-interval 5
> !
> interface eth1
>  description connection with r3 and r6
>  ip ospf network point-to-multipoint
>  ip ospf cost 100
>  ip ospf hello-interval 5
>  ip ospf retransmit-interval 5
> !
> interface sit0
> !
> router ospf
>  ospf router-id 192.168.1.2
>  network 192.168.1.0/24 area 0
>  network 192.168.2.0/24 area 0
> ! Enable RFC-1583 compatibility to avoid routing loops
>  compatible rfc1583
>  redistribute connected
>  redistribute static
>  redistribute kernel
>  refresh timer 30
> !neighbor 192.168.2.1
> !neighbor 192.168.2.3
> !neighbor 192.168.1.3
> !neighbor 192.168.1.6
> !
> line vty
> !
>
> r2:~# cat /mnt/sda/r2/zebra_r2.conf
> hostname r2
> password zebra
> enable password zebra
> log file /usr/local/etc/temp/zebra.log
> log record-priority
> !
> debug zebra events
> debug zebra kernel
> !
> ! OSPF-ALL.MCAST.NET
> ip route 224.0.0.5/32 127.0.0.1
> !
> ! OSPF-DSIG.MCAST.NET
> ip route 224.0.0.6/32 127.0.0.1
> !
> interface lo
>  ip address 127.0.0.1/8
> !
> interface eth0
>  ip address 192.168.2.2/24
> !
> interface eth1
>  ip address 192.168.1.2/24
> !
> line vty
> !
>
> Thank you in advance,
>
> --
> Daniel Andrzejewski
> student IT Administrator
> Electrical Engineering and Computer Science
> University of Tennessee
> (865) 974 - 4388 (work)
> (865) 274 - 1499 (cell)
>
> "Investment in knowledge always pays the best interest" Benjamin Franklin
> --
> _______________________________________________
> Zebra mailing list
> [email protected]
> http://ml.zebra.org/mailman/listinfo/zebra
>