Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Apr 2006 10:17:32 +0200
From:      Thomas <mirrormaster@solnet.ch>
To:        freebsd-net@freebsd.org, boris@tagnet.ru
Subject:   problem with quagga 0.99.3 with freebsd 6.1-prerelease
Message-ID:  <4436201C.2020107@solnet.ch>

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

I have a strange behavior with the latest quagga 0.99.3 from the ports.

Zebra set all ips when quagga is started but it doesn't display them
"show run" on the management console (vytsh).

Perhaps someone can confirm this?


Details:

System: 6.1-PRERELEASE #2: Thu Apr  6 23:04:50 UTC 2006, RELENG_6 src
was last updated on April 6.

Quagga 0.99.3 from the ports  with all features enabled and with
--localstatedir=/usr/local/mydir/quagga/

The System is running on a flash card.

my make.conf
NO_ACPI=
NO_ATM=
NO_AUTHPF=
NO_BLUETOOTH=
NO_CVS=
NO_DICT=
NO_FORTRAN=
NO_GAMES=
NO_GDB=
NO_INFO=
NO_LPR=
NO_MODULES=
NO_PF=
NO_PROFILE=
NO_RCMDS=
NO_SHARE=
NO_SHAREDOCS=
NO_USB=
NO_BIND_DNSSEC=
NO_BIND_ETC=
NO_BIND_LIBS_LWRES=
NO_BIND_MTREE=
NO_BIND_NAMED=
# added by use.perl 2006-04-05 12:21:54
PERL_VER=5.8.8
PERL_VERSION=5.8.8


my rc.conf
ifconfig_em0="up mtu 1546 polling"
ifconfig_em1="up mtu 1546 polling"
quagga_enable="YES"

Quagga starts and all Interfaces get the correct IP addresses set by
zebra.conf.

ifconfig after boot:
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1546
        options=4b<RXCSUM,TXCSUM,VLAN_MTU,POLLING>
        inet6 fe80::230:48ff:fe2c:6b5d%em1 prefixlen 64 scopeid 0x2
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255

ifconfig on the system ist correct.

But as you see the vtysh output from zebra doesn't show any ip
(192.168.0.1/24) for em1;
vtysh output with "show run":
interface em1
 bandwidth 1000000
 description VLAN4
 ip ospf cost 55
 ipv6 nd suppress-ra
 link-detect

Show the zebra.conf file:
interface em1
 description VLAN4
 bandwidth 1000000
 link-detect
 ip address 192.168.0.1/24 <----- IP is here
 ipv6 nd suppress-ra


Second part. If i restart zebra, the IPs are shown in the vtysh mode.

Now I try to change the ip from 192.168.0.1/24 to 192.168.1.1/24
vtysh:
 conf t
(config)# interface em1
(config-if)# ip address 192.168.1.1/24
(config-if)# exit
(config)# exit
#show run
interface em1
 bandwidth 1000000
 description VLAN4
 ip address 192.168.0.1/24
 ip ospf cost 55
 ipv6 nd suppress-ra

zebra still shows the old IP address.

System ifconfig displays:
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1546
        options=4b<RXCSUM,TXCSUM,VLAN_MTU,POLLING>
        inet6 fe80::230:48ff:fe2c:6b5d%em1 prefixlen 64 scopeid 0x2
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
You see both IPs are added on the system

If I repeat this step then zebra shows me the new one too:
interface em1
 bandwidth 1000000
 description VLAN4
 ip address 192.168.0.1/24
 ip address 192.168.1.1/24
 ip ospf cost 55

If zebra doesn't show the correct or any IP and you do a "wr mem" it
will save the wrong ip's or non ip to the config file. All your configs
are gone!.
I don't have this problem on the same system with quagga 0.98.5.

Cheers,
Thomas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4436201C.2020107>