> On 27 Dec 2014, at 04:50, Andrew <[email protected]> wrote:
>
> Hi all.
>
> I tried to run multiple OSPF instances in BIRD for VRF, other clients -
> quagga machines that listens both vlans and see each other.
>
> BIRD sends packets from xx.xx.132.7 (which has mask /32 and is set on lo) to
> vlan3, but saw neighbors; other neighbors don't saw bird ('cause it sends
> packets from wrong ip)
There is no easy way to get “primary” address for interface, so you need to
specify it explicitly for interface with multiple addresses:
protocol device { primary “vlan3” 10.255.192.1; }
>
> What's wrong with brird/config?
>
> Here is part of config:
> # ==== OSPF ====
> protocol ospf ospf_world {
> # disabled;
> debug all;
> table world;
> import all;
> export filter export_OSPF;
>
> area 100 {
> networks {
> 10.255.192.0/24;
> };
> interface "vlan3" {
> cost 5;
> type broadcast;
> hello 10;
> retransmit 5;
> wait 40;
> dead count 4;
> authentication none;
> stub no;
> };
> };
> }
>
> protocol ospf ospf_uaix {
> # debug all;
> table uaix;
> import all;
> export filter export_OSPF;
>
> area 1 {
> networks {
> 192.168.255.160/27;
> };
> interface "vlan2" {
> cost 5;
> type broadcast;
> hello 10;
> retransmit 5;
> wait 40;
> dead count 4;
> authentication none;
> stub no;
> };
> };
> }
>
>
> Here is interfaces status:
>
> bird> show ospf interface ospf_world
> ospf_world:
> Interface vlan3 (10.255.192.0/24)
> Type: broadcast
> Area: 0.0.0.100 (100)
> State: dr
> Priority: 1
> Cost: 5
> Hello timer: 10
> Wait timer: 40
> Dead timer: 40
> Retransmit timer: 5
> Designed router (ID): 192.168.255.190
> Designed router (IP): 10.255.192.202
> Backup designed router (ID): 0.0.0.0
> Backup designed router (IP): 0.0.0.0
> bird> show ospf interface ospf_uaix
> ospf_uaix:
> Interface vlan2 (192.168.255.160/27)
> Type: broadcast
> Area: 0.0.0.1 (1)
> State: drother
> Priority: 1
> Cost: 5
> Hello timer: 10
> Wait timer: 40
> Dead timer: 40
> Retransmit timer: 5
> Designed router (ID): 192.168.255.183
> Designed router (IP): 192.168.255.183
> Backup designed router (ID): 192.168.255.184
> Backup designed router (IP): 192.168.255.184
>
> Here is bird's neighmouts:
> bird> show ospf neighbors ospf_world
> ospf_world:
> Router ID Pri State DTime Interface Router IP
> 10.255.192.3 1 init/other 00:38 vlan3 10.255.192.3
> 10.255.192.1 1 init/other 00:39 vlan3 10.255.192.1
> 10.255.192.102 1 init/other 00:39 vlan3 10.255.192.102
> 10.255.192.2 1 init/other 00:38 vlan3 10.255.192.2
> 10.255.192.101 1 init/other 00:39 vlan3 10.255.192.101
>
> and quagga neighbours:
>
> subst-66# sh ip ospf neighbor vlan3
>
> Neighbor ID Pri State Dead Time Address Interface
> RXmtL RqstL DBsmL
> 10.255.192.1 1 2-Way/DROther 31.138s 10.255.192.1
> vlan3:10.255.192.101 0 0 0
> 10.255.192.2 1 Full/Backup 38.369s 10.255.192.2
> vlan3:10.255.192.101 0 0 0
> 10.255.192.3 1 2-Way/DROther 30.861s 10.255.192.3
> vlan3:10.255.192.101 0 0 0
> 10.255.192.102 1 Full/DR 39.187s 10.255.192.102
> vlan3:10.255.192.101 0 0 0
>
> routing table:
>
> bird> show route table world
> 192.168.255.160/27 dev vlan2 [direct1 02:16:18] * (240)
> 10.255.192.0/24 dev vlan3 [direct1 02:16:18] * (240)
> dev vlan3 [ospf_world 03:42:35] I (150/5) [192.168.255.190]
> xx.xx.186.200/30 dev vlanX [direct1 02:16:18] * (240)
> 10.255.0.12/32 dev lo [direct1 02:16:18] * (240)
> xx.xx.132.12/32 dev lo [direct1 02:16:18] * (240)
> xx.xx.58.0/23 unreachable [static_bgp_w 02:16:18] * (200)
> xx.xx.132.7/32 dev lo [direct1 02:16:18] * (240)
> xx.xx.56.0/23 unreachable [static_bgp_w 02:16:18] * (200)
> xx.xx.242.128/30 dev vlanY [direct1 02:16:18] * (240)
> xx.xx.134.0/23 unreachable [static_bgp_w 02:16:18] * (200)
> xx.xx.132.0/23 unreachable [static_bgp_w 02:16:18] * (200)
>
> Debug logs have nothing interesting
>
>
>