Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2002 16:54:54 +0300 (EEST)
From:      Mike Futerko <mike@LITech.lviv.ua>
To:        <freebsd-net@freebsd.org>, <freebsd-questions@freebsd.org>
Subject:   zebra + gif
Message-ID:  <20020527164944.G3104-100000@ah.litech.net>

next in thread | raw e-mail | index | archive | help
Hi,

I have the following zebra configuration:

--- zebra.conf

hostname rt1
password **
!
interface xl0
!
interface xl1
!
interface xl2
!
interface lo0
!
interface gif0
!
interface gif1
!
interface gif2
!
interface gif3
!
interface gif4
!
interface gif5
!
interface gif6
!
interface tun0
!
interface tun1
!
interface tun2
!
line vty
!


--- ospfd.conf

hostname rt1
password **
!
interface gif1
 ip ospf network point-to-point
router ospf
 redistribute kernel
 redistribute connected
 redistribute static
 network 10.1.11.4/32 area 0
!
line vty
!


--- ifconfig -a

xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.1.2.1 netmask 0xffffff00 broadcast 10.1.2.255
        ether 00:60:08:cf:5c:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet xxx.xxx.207.38 netmask 0xffffff80 broadcast xxx.xxx.207.127
        ether 00:60:08:14:54:34
        media: Ethernet autoselect (10baseT/UTP)
        status: active
xl2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.1.10.4 netmask 0xffffff00 broadcast 10.1.10.255
        ether 00:60:08:cf:5c:60
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
        inet 10.0.2.251 netmask 0xffffff00
        inet xxx.xxx.207.169 netmask 0xffffffff
        inet xxx.xxx.207.170 netmask 0xffffffff
        inet xxx.xxx.207.171 netmask 0xffffffff
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet xxx.xxx.207.38 --> xxx.xxx.253.56
        inet 10.1.2.1 --> 10.1.1.1 netmask 0xffffffff
gif1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet xxx.xxx.207.170 --> xxx.xxx.16.50
        inet 10.1.10.4 --> 10.1.11.4 netmask 0xffffffff
gif2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet xxx.xxx.207.170 --> xxx.xxx.213.244
        inet 10.1.10.4 --> 10.1.12.4 netmask 0xffffffff
gif3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet xxx.xxx.207.170 --> xxx.xxx.134.177
        inet 10.1.10.4 --> 10.7.1.4 netmask 0xffffffff
gif4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet xxx.xxx.207.170 --> xxx.xxx.206.226
        inet 10.1.10.4 --> 10.3.1.4 netmask 0xffffffff
gif5: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet xxx.xxx.207.170 --> xxx.xxx.88.244
        inet 10.1.10.4 --> 10.4.6.4 netmask 0xffffffff
gif6: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        tunnel inet xxx.xxx.207.170 --> xxx.xxx.193.171
        inet 10.1.10.4 --> 10.2.10.4 netmask 0xffffffff
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 10.0.2.251 --> 10.0.1.251 netmask 0xffffffff
        Opened by PID 66
tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun2: flags=8010<POINTOPOINT,MULTICAST> mtu 1500


---- uname -rs
FreeBSD 4.5-STABLE, dated by Fri Mar 8 2002
But the same behavior observed on other FreeBSD systems including FreeBSD 4.5-RELEASE-p2


After running zebra:
telnet localhost ospfd
rt1> en
rt1# show ip ospf interface
gif1 is up, line protocol is up

  Internet Address 10.1.10.4/32, Area 0.0.0.0
  Router ID 10.1.10.4, Network Type POINTOPOINT, Cost: 10
  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 intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:00
  Neighbor Count is 0, Adjacent neighbor count is 0
xl0 is up, line protocol is up
  OSPF not enabled on this interface
xl1 is up, line protocol is up
  OSPF not enabled on this interface
xl2 is up, line protocol is up
  OSPF not enabled on this interface
lo0 is up, line protocol is up
  OSPF not enabled on this interface
gif0 is up, line protocol is up
  OSPF not enabled on this interface
gif2 is up, line protocol is up
  OSPF not enabled on this interface
gif3 is up, line protocol is up
  OSPF not enabled on this interface
gif4 is up, line protocol is up
  OSPF not enabled on this interface
gif5 is up, line protocol is up
  OSPF not enabled on this interface
gif6 is up, line protocol is up
  OSPF not enabled on this interface
tun0 is up, line protocol is up
  OSPF not enabled on this interface
tun1 is down, line protocol is down
  OSPF not enabled on this interface
tun2 is down, line protocol is down
  OSPF not enabled on this interface

That's fine, OSPF is enabled only on gif1 interface as required.
But hello packets sends not via gif1, as ospfd diagnostics show:

rt1# ter mon
rt1# debug ospf packet hello
2002/04/21 17:20:33 OSPF: Hello sent to [224.0.0.5] via [gif1:10.1.10.4].
2002/04/21 17:20:44 OSPF: Hello sent to [224.0.0.5] via [gif1:10.1.10.4].
2002/04/21 17:20:54 OSPF: Hello sent to [224.0.0.5] via [gif1:10.1.10.4].
....

"tcpdunp -npigif1 proto 89" shows nothing.

I have added rule into firewall to see OSPF packets:
router# ipfw add 10 allow log 89 from any to any
router# tail -f /var/log/security
Apr 21 17:20:34 relay /kernel: ipfw: 10 Accept P:89 10.1.10.4 224.0.0.5 out via gif6
Apr 21 17:20:44 relay /kernel: ipfw: 10 Accept P:89 10.1.10.4 224.0.0.5 out via gif6
Apr 21 17:20:54 relay /kernel: ipfw: 10 Accept P:89 10.1.10.4 224.0.0.5 out via gif6
....

Why zebra sends hello-packets via gif6? Concerning to the ospfd diagnostics
(show ip ospf interface) OSPF is enabled only on gif1 interface, and (debug
ospf packet hello) show that zebra sends hello-packets via gif1 (OSPF: Hello
sent to [224.0.0.5] via [gif1:10.1.10.4].)

Is it zebra or FreeBSD specific bug? Or maybe my misconfiguration?

When I stop zebra, delete gif6 interface and start zebra again, OSPF packets
start appears on gif5 interface, and so on...

I could provide more useful information, if required.

What is wrong with my zebra configuration?

Thanks in advance for any help...

Regards,
Mike


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020527164944.G3104-100000>