cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4357
Views
0
Helpful
16
Replies

Simple OSPF configuration, but not work as I imagined

berniechen
Level 1
Level 1

Hi

I try to set up a very simple OSPF configuration.  Cause I do not have Cisco router, it is tested by qugga in VM.

RTA(192.168.0.1) <------->(192.168.0.2) RTB (192.168.2.2)<--------> (192.168.2.3)RTC

All of interfaces belong back-bone area.

When I ping 192.168,2,2 from RTA, it is OK. Then I ping 192.168.2.3, it fails. I paste running-config below. It is quite simple. Can anyone tell me what is wrong with it. It is a quagga's issue, configuration issue or it just work as OSPF designed?

BTW, I try to set 192.168.0.0/24 to area 0.0.0.1, but nothing changes.

RTA

Current configuration:

!

hostname ospfd

password zebra

log stdout

!

!

!

interface eth0

!

interface lo

!

router ospf

network 192.168.0.0/24 area 0.0.0.0

!

line vty

!

end

RTB

Current configuration:

!

hostname ospfd

password zebra

log stdout

!

!

!

interface eth1

!

interface eth2

!

interface lo

!

router ospf

network 192.168.0.0/24 area 0.0.0.0

network 192.168.2.0/24 area 0.0.0.0

!

line vty

!

end

RTC

Current configuration:

!

hostname ospfd

password zebra

log stdout

!

!

!

interface eth3

!

interface lo

!

router ospf

network 192.168.2.0/24 area 0.0.0.0

!

line vty

!

end

16 Replies 16

viswamin
Cisco Employee
Cisco Employee

can you check if the neighborship is established betwee RTB and RTC?

or pass on the output of the following commands

sh ip ospf int br

sh ip ospf nei

sh ip ospf database

-Vijay

I believe the neighborship has been established. Cause I can ping 192.168.0.2 from RTC

Anyway I paste more information below as you requested. Thanks in advance

RTA

ospfd# show ip ospf interface

eth0 is up

  ifindex 2, MTU 1500 bytes, BW 0 Kbit

  Internet Address 192.168.0.1/24, Broadcast 192.168.0.255, Area 0.0.0.0

  MTU mismatch detection:enabled

  Router ID 192.168.0.1, Network Type BROADCAST, Cost: 10

  Transmit Delay is 1 sec, State Backup, Priority 1

  Designated Router (ID) 192.168.2.2, Interface Address 192.168.0.2

  Backup Designated Router (ID) 192.168.0.1, Interface Address 192.168.0.1

  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters

  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5

    Hello due in 4.235s

  Neighbor Count is 1, Adjacent neighbor count is 1

lo is up

  ifindex 1, MTU 16436 bytes, BW 0 Kbit

  OSPF not enabled on this interface

ospfd# show ip ospf database

       OSPF Router with ID (192.168.0.1)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
192.168.0.1     192.168.0.1      222 0x80000004 0x7923 1
192.168.2.2     192.168.2.2      209 0x80000005 0x2c74 2
192.168.2.3     192.168.2.3      205 0x80000002 0x810f 1

                Net Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum
192.168.0.2     192.168.2.2      228 0x80000001 0x9019
192.168.2.2     192.168.2.2      209 0x80000001 0xa4fe


ospfd# show ip ospf ne
ospfd# show ip ospf neighbor

    Neighbor ID Pri State           Dead Time Address         Interface            RXmtL RqstL DBsmL
192.168.2.2       1 Full/DR           36.240s 192.168.0.2     eth0:192.168.0.1         0     0     0

RTB

ospfd# show ip ospf interface

eth1 is up

  ifindex 2, MTU 1500 bytes, BW 0 Kbit

  Internet Address 192.168.0.2/24, Broadcast 192.168.0.255, Area 0.0.0.0

  MTU mismatch detection:enabled

  Router ID 192.168.2.2, Network Type BROADCAST, Cost: 10

  Transmit Delay is 1 sec, State DR, Priority 1

  Designated Router (ID) 192.168.2.2, Interface Address 192.168.0.2

  Backup Designated Router (ID) 192.168.0.1, Interface Address 192.168.0.1

  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters

  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5

    Hello due in 8.473s

  Neighbor Count is 1, Adjacent neighbor count is 1

eth2 is up

  ifindex 3, MTU 1500 bytes, BW 0 Kbit

  Internet Address 192.168.2.2/24, Broadcast 192.168.2.255, Area 0.0.0.0

  MTU mismatch detection:enabled

  Router ID 192.168.2.2, Network Type BROADCAST, Cost: 10

  Transmit Delay is 1 sec, State DR, Priority 1

  Designated Router (ID) 192.168.2.2, Interface Address 192.168.2.2

  Backup Designated Router (ID) 192.168.2.3, Interface Address 192.168.2.3

  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters

  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5

    Hello due in 7.923s

  Neighbor Count is 1, Adjacent neighbor count is 1

lo is up

  ifindex 1, MTU 16436 bytes, BW 0 Kbit

  OSPF not enabled on this interface

ospfd# show ip ospf database

       OSPF Router with ID (192.168.2.2)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
192.168.0.1     192.168.0.1      259 0x80000004 0x7923 1
192.168.2.2     192.168.2.2      243 0x80000005 0x2c74 2
192.168.2.3     192.168.2.3      239 0x80000002 0x810f 1

                Net Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum
192.168.0.2     192.168.2.2      263 0x80000001 0x9019
192.168.2.2     192.168.2.2      243 0x80000001 0xa4fe


ospfd# show ip ospf nei     
ospfd# show ip ospf neighbor

    Neighbor ID Pri State           Dead Time Address         Interface            RXmtL RqstL DBsmL
192.168.0.1       1 Full/Backup       39.540s 192.168.0.1     eth1:192.168.0.2         0     0     0
192.168.2.3       1 Full/Backup       39.341s 192.168.2.3     eth2:192.168.2.2         0     0     0

RTC

eth3 is up

  ifindex 2, MTU 1500 bytes, BW 0 Kbit

  Internet Address 192.168.2.3/24, Broadcast 192.168.2.255, Area 0.0.0.0

  MTU mismatch detection:enabled

  Router ID 192.168.2.3, Network Type BROADCAST, Cost: 10

  Transmit Delay is 1 sec, State Backup, Priority 1

  Designated Router (ID) 192.168.2.2, Interface Address 192.168.2.2

  Backup Designated Router (ID) 192.168.2.3, Interface Address 192.168.2.3

  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters

  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5

    Hello due in 0.732s

  Neighbor Count is 1, Adjacent neighbor count is 1

eth4 is down

  ifindex 3, MTU 1500 bytes, BW 0 Kbit

  OSPF not enabled on this interface

eth5 is down

  ifindex 4, MTU 1500 bytes, BW 0 Kbit

  OSPF not enabled on this interface

lo is up

  ifindex 1, MTU 16436 bytes, BW 0 Kbit

  OSPF not enabled on this interface

ospfd# show ip ospf database

       OSPF Router with ID (192.168.2.3)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
192.168.0.1     192.168.0.1      156 0x80000004 0x7923 1
192.168.2.2     192.168.2.2      141 0x80000005 0x2c74 2
192.168.2.3     192.168.2.3      135 0x80000002 0x810f 1

                Net Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum
192.168.0.2     192.168.2.2      160 0x80000001 0x9019
192.168.2.2     192.168.2.2      141 0x80000001 0xa4fe

ospfd# show ip ospf neighbor

    Neighbor ID Pri State           Dead Time Address         Interface            RXmtL RqstL DBsmL
192.168.2.2       1 Full/DR           36.222s 192.168.2.2     eth3:192.168.2.3         0     0     0

Hi ,

You should check the routing table of the systems.

RTC : route -n

RTB : route -n

RTA : route -n

Dan

Hi Dan

I think the routing table in RTB is wrong. I also capture the ping packet, when I ping 192.168.2.3 from RTA, the ping request packet only can be catched in ETH1 RTB. But why? Did I miss anything for OSPF configration.

RTA

:~# route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.2.0     192.168.0.2     255.255.255.0   UG    20     0        0 eth0

192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0

RTB

:~# route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.2.0     0.0.0.0         255.255.255.0   U     1      0        0 eth2

192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1

169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth1

0.0.0.0         192.168.2.2     0.0.0.0         UG    0      0        0 eth2

RTC

:~# route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth3

192.168.0.0     192.168.2.2     255.255.255.0   UG    20     0        0 eth3

ebarticel
Level 4
Level 4

Why you have so many zeros after area? Also you don't have a process ID for OSPF.

When you configure network statement, area has only one 0.

Example:

router ospf 1

network 192.168.0.0 0.0.0.255 area 0

network 192.168.2.0 0.0.0.255 area 0

That should fix your OSPF routing

Eugen

Hi Eugen

Thanks for your suggestion, it does not work. And I personally dun think there is any difference between 0.0.0.0 and 0

And I am not sure whta is process ID, is it router ID? If yes, quagga will assiagn the router ID automatically.

Thanks

Chen Xi

Area ID si different from process ID.

Area ID has a 32 bit lenght.

So area 0 is area 0.0.0.0 , area 1 is area 0.0.0.1 ... and so on

Dan

It seams ok.RTB has 2 connected networks and RTC and RTA have 1 connected and 1 routed each

Do you have any filtering on any of the systems ?

iptables -L -nxv

Also can you check from RTB that you can ping both RTA and RTB.

Dan

I don't know much about Quadda, but I have another suggestion.

If this is a software solution why don't you set OSPF priority to 0 on RTA and RTC and have just RTB as DR, without BDR.

Maybe it will help.

Eugen

Hi Eugen,

this is a Quagga config not an IOS config so no need for the pid and concerning the area number this is a 32 bits value which can be expressed in decimal or dotted decimal notation so 0.0.0.0 is perfectly valid.

Regards.

Alain

Don't forget to rate helpful posts.

Hi Alain,

Even with IOS , the 32bit area id is valid.

Dan

Hi Dan,

I know but  I didn't say the contrary, did I ? 

Regards.

Alain.

Don't forget to rate helpful posts.

Not explicitly

Dan

Thanks Alain. I never heard of Quagga config. What is that?

Eugen