Hi, Please find below requested info. Some omitted because of size You may clearly see the issue on 1st show bird> show route table table_vrf01 Table table_vrf01: 192.34.1.2/31 unicast [direct_vrf01 15:43:55.271] * (240) dev swp17.201 191.34.1.2/31 unicast [direct_vrf01 15:43:55.271] * (240) dev swp18.301 190.34.32.0/24 unicast [direct_vrf01 15:43:55.271] * (240) dev swp32.101 134.0.0.0/24 unicast [bgp_vrf01_ixia1 15:44:26.288] * (100) [AS65134i] via 190.34.32.101 on swp32 134.1.0.0/24 unicast [bgp_vrf01_ixia1 15:44:26.288] * (100) [AS65134i] via 190.34.32.101 on swp32 bird> bird> show route table table_vrf02 Table table_vrf02: 192.34.1.2/31 unicast [direct_vrf02 15:43:55.271] * (240) dev swp17.202 191.34.1.2/31 unicast [direct_vrf02 15:43:55.271] * (240) dev swp18.302 190.34.32.0/24 unicast [direct_vrf02 15:43:55.271] * (240) dev swp32.102 134.0.0.0/24 unicast [bgp_vrf02_ixia1 15:44:31.250] * (100) [AS65134i] via 190.34.32.102 on swp32 134.1.0.0/24 unicast [bgp_vrf02_ixia1 15:44:31.250] * (100) [AS65134i] via 190.34.32.102 on swp32 bird> bird> show interfaces lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=65536 127.0.0.1/8 (Preferred, scope host) ::1/128 (Preferred, scope host) ... swp32 up (index=24) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 190.34.32.254/24 (Preferred, scope univ) fe80::ee0d:9aff:fe5d:f1df/64 (Preferred, scope link) ... swp7 up (index=33) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 190.12.34.2/31 (Preferred, opposite 190.12.34.3, scope univ) fe80::ee0d:9aff:fe5d:f1f1/64 (Preferred, scope link) swp8 up (index=34) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 fe80::ee0d:9aff:fe5d:f1f3/64 (Preferred, scope link) swp5 up (index=35) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 190.11.34.2/31 (Preferred, opposite 190.11.34.3, scope univ) fe80::ee0d:9aff:fe5d:f1f5/64 (Preferred, scope link) swp6 up (index=36) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 fe80::ee0d:9aff:fe5d:f1f7/64 (Preferred, scope link) swp3 up (index=37) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 190.2.34.2/31 (Preferred, opposite 190.2.34.3, scope univ) fe80::ee0d:9aff:fe5d:f1f9/64 (Preferred, scope link) swp4 up (index=38) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 fe80::ee0d:9aff:fe5d:f1fb/64 (Preferred, scope link) swp1 up (index=39) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 190.1.34.2/31 (Preferred, opposite 190.1.34.3, scope univ) fe80::ee0d:9aff:fe5d:f1fd/64 (Preferred, scope link) swp2 up (index=40) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 fe80::ee0d:9aff:fe5d:f1ff/64 (Preferred, scope link) vrf01 up (index=41) MultiAccess AdminUp LinkUp MTU=65536 vrf02 up (index=42) MultiAccess AdminUp LinkUp MTU=65536 swp32.101 up (index=43 master=vrf01) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 190.34.32.254/24 (Preferred, scope univ) fe80::ee0d:9aff:fe5d:f1df/64 (Preferred, scope link) swp32.102 up (index=44 master=vrf02) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 190.34.32.254/24 (Preferred, scope univ) fe80::ee0d:9aff:fe5d:f1df/64 (Preferred, scope link) swp17.201 up (index=45 master=vrf01) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.34.1.3/31 (Preferred, opposite 192.34.1.2, scope univ) fe80::ee0d:9aff:fe5d:f1c1/64 (Preferred, scope link) swp17.202 up (index=46 master=vrf02) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.34.1.3/31 (Preferred, opposite 192.34.1.2, scope univ) fe80::ee0d:9aff:fe5d:f1c1/64 (Preferred, scope link) swp18.301 up (index=47 master=vrf01) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 191.34.1.3/31 (Preferred, opposite 191.34.1.2, scope univ) fe80::ee0d:9aff:fe5d:f1c3/64 (Preferred, scope link) swp18.302 up (index=48 master=vrf02) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 191.34.1.3/31 (Preferred, opposite 191.34.1.2, scope univ) fe80::ee0d:9aff:fe5d:f1c3/64 (Preferred, scope link) bird> show protocols all Name Proto Table State Since Info device1 Device --- up 15:43:55.266 direct1 Direct --- up 15:43:55.266 Channel ipv4 State: UP Table: master4 Preference: 240 Input filter: ACCEPT Output filter: REJECT Routes: 15 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 15 0 0 0 15 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 Channel ipv6 State: UP Table: master6 Preference: 240 Input filter: ACCEPT Output filter: REJECT Routes: 0 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 0 0 0 0 0 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 kernel1 Kernel master4 up 15:43:55.266 Channel ipv4 State: UP Table: master4 Preference: 10 Input filter: REJECT Output filter: ACCEPT Routes: 0 imported, 45 exported Route change stats: received rejected filtered ignored accepted Import updates: 1 0 1 0 0 Import withdraws: 0 0 --- 1 0 Export updates: 1245 0 0 --- 1245 Export withdraws: 293 --- --- --- 293 kernel2 Kernel master6 up 15:43:55.266 Channel ipv6 State: UP Table: master6 Preference: 10 Input filter: ACCEPT Output filter: ACCEPT Routes: 0 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 0 0 0 0 0 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 static1 Static master4 up 15:43:55.266 Channel ipv4 State: UP Table: master4 Preference: 200 Input filter: ACCEPT Output filter: REJECT Routes: 0 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 0 0 0 0 0 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 bfd1 BFD --- up 15:43:55.266 ... ixia16 BGP --- up 15:44:00.013 Established BGP state: Established Neighbor address: 190.34.32.16 Neighbor AS: 65134 Neighbor ID: 190.34.32.16 Local capabilities Multiprotocol AF announced: ipv4 Route refresh Graceful restart Restart time: 120 AF supported: ipv4 AF preserved: 4-octet AS numbers Enhanced refresh Neighbor capabilities Multiprotocol AF announced: ipv4 ipv6 Route refresh Graceful restart Restart time: 45 AF supported: ipv4 ipv6 AF preserved: ipv4 ipv6 4-octet AS numbers Session: external AS4 Source address: 190.34.32.254 Hold timer: 7.076/9 Keepalive timer: 1.985/3 Channel ipv4 State: UP Table: master4 Preference: 100 Input filter: ACCEPT Output filter: ACCEPT Routes: 0 imported, 36 exported Route change stats: received rejected filtered ignored accepted Import updates: 2 0 0 0 2 Import withdraws: 2 0 --- 0 2 Export updates: 698 2 0 --- 696 Export withdraws: 293 --- --- --- 291 BGP Next hop: 190.34.32.254 kernel_vrf01 Kernel table_vrf01 up 15:43:55.266 VRF: vrf01 Channel ipv4 State: UP Table: table_vrf01 Preference: 10 Input filter: REJECT Output filter: ACCEPT Routes: 0 imported, 5 exported Route change stats: received rejected filtered ignored accepted Import updates: 0 0 0 0 0 Import withdraws: 0 0 --- 0 0 Export updates: 5 0 0 --- 5 Export withdraws: 0 --- --- --- 0 direct_vrf01 Direct --- up 15:43:55.266 VRF: vrf01 Channel ipv4 State: UP Table: table_vrf01 Preference: 240 Input filter: ACCEPT Output filter: REJECT Routes: 3 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 3 0 0 0 3 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 static_vrf01 Static table_vrf01 up 15:43:55.266 VRF: vrf01 Channel ipv4 State: UP Table: table_vrf01 Preference: 200 Input filter: ACCEPT Output filter: REJECT Routes: 0 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 0 0 0 0 0 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 bgp_vrf01_n1 BGP --- start 15:43:55.266 Idle VRF: vrf01 BGP state: Idle Neighbor address: 191.34.1.4 Neighbor AS: 65001 Channel ipv4 State: DOWN Table: table_vrf01 Preference: 100 Input filter: ACCEPT Output filter: (unnamed) bgp_vrf01_n2 BGP --- start 15:43:55.266 Idle VRF: vrf01 BGP state: Idle Neighbor address: 192.34.1.4 Neighbor AS: 65001 Channel ipv4 State: DOWN Table: table_vrf01 Preference: 100 Input filter: ACCEPT Output filter: (unnamed) bgp_vrf01_ixia1 BGP --- up 15:44:26.249 Established BGP state: Established Neighbor address: 190.34.32.101 Neighbor AS: 65134 Neighbor ID: 190.34.32.101 Local capabilities Multiprotocol AF announced: ipv4 Route refresh Graceful restart Restart time: 120 AF supported: ipv4 AF preserved: 4-octet AS numbers Enhanced refresh Neighbor capabilities Multiprotocol AF announced: ipv4 ipv6 Route refresh Graceful restart Restart time: 45 AF supported: ipv4 ipv6 AF preserved: ipv4 ipv6 4-octet AS numbers Session: external AS4 Source address: 190.34.32.254 Hold timer: 7.266/9 Keepalive timer: 2.310/3 Channel ipv4 State: UP Table: table_vrf01 Preference: 100 Input filter: ACCEPT Output filter: ACCEPT Routes: 2 imported, 3 exported Route change stats: received rejected filtered ignored accepted Import updates: 2 0 0 0 2 Import withdraws: 0 0 --- 0 0 Export updates: 5 2 0 --- 3 Export withdraws: 0 --- --- --- 0 BGP Next hop: 190.34.32.254 kernel_vrf02 Kernel table_vrf02 up 15:43:55.266 VRF: vrf02 Channel ipv4 State: UP Table: table_vrf02 Preference: 10 Input filter: REJECT Output filter: ACCEPT Routes: 0 imported, 5 exported Route change stats: received rejected filtered ignored accepted Import updates: 0 0 0 0 0 Import withdraws: 0 0 --- 0 0 Export updates: 5 0 0 --- 5 Export withdraws: 0 --- --- --- 0 direct_vrf02 Direct --- up 15:43:55.266 VRF: vrf02 Channel ipv4 State: UP Table: table_vrf02 Preference: 240 Input filter: ACCEPT Output filter: REJECT Routes: 3 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 3 0 0 0 3 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 static_vrf02 Static table_vrf02 up 15:43:55.266 VRF: vrf02 Channel ipv4 State: UP Table: table_vrf02 Preference: 200 Input filter: ACCEPT Output filter: REJECT Routes: 0 imported, 0 exported Route change stats: received rejected filtered ignored accepted Import updates: 0 0 0 0 0 Import withdraws: 0 0 --- 0 0 Export updates: 0 0 0 --- 0 Export withdraws: 0 --- --- --- 0 bgp_vrf02_n1 BGP --- start 15:43:55.266 Idle VRF: vrf02 BGP state: Idle Neighbor address: 191.34.1.6 Neighbor AS: 65001 Channel ipv4 State: DOWN Table: table_vrf02 Preference: 100 Input filter: ACCEPT Output filter: (unnamed) bgp_vrf02_n2 BGP --- start 15:43:55.266 Idle VRF: vrf02 BGP state: Idle Neighbor address: 192.34.1.6 Neighbor AS: 65001 Channel ipv4 State: DOWN Table: table_vrf02 Preference: 100 Input filter: ACCEPT Output filter: (unnamed) bgp_vrf02_ixia1 BGP --- up 15:44:31.250 Established BGP state: Established Neighbor address: 190.34.32.102 Neighbor AS: 65134 Neighbor ID: 190.34.32.102 Local capabilities Multiprotocol AF announced: ipv4 Route refresh Graceful restart Restart time: 120 AF supported: ipv4 AF preserved: 4-octet AS numbers Enhanced refresh Neighbor capabilities Multiprotocol AF announced: ipv4 ipv6 Route refresh Graceful restart Restart time: 45 AF supported: ipv4 ipv6 AF preserved: ipv4 ipv6 4-octet AS numbers Session: external AS4 Source address: 190.34.32.254 Hold timer: 6.307/9 Keepalive timer: 2.470/3 Channel ipv4 State: UP Table: table_vrf02 Preference: 100 Input filter: ACCEPT Output filter: ACCEPT Routes: 2 imported, 3 exported Route change stats: received rejected filtered ignored accepted Import updates: 2 0 0 0 2 Import withdraws: 0 0 --- 0 0 Export updates: 5 2 0 --- 3 Export withdraws: 0 --- --- --- 0 BGP Next hop: 190.34.32.254 bird> No such command. Press `?' for help. bird> show route Table master4: 190.12.34.2/31 unicast [direct1 15:43:55.271] * (240) dev swp7 190.12.35.2/31 unicast [bgp3421 15:49:46.366] * (100) [AS65035i] via 191.34.2.2 on swp19 unicast [bgp3422 15:49:46.366] (100) [AS65035i] via 192.34.2.2 on swp20 190.11.34.2/31 unicast [direct1 15:43:55.271] * (240) dev swp5 190.11.35.2/31 unicast [bgp3421 15:49:46.366] * (100) [AS65035i] via 191.34.2.2 on swp19 unicast [bgp3422 15:49:46.366] (100) [AS65035i] via 192.34.2.2 on swp20 192.35.1.2/31 unicast [bgp3421 15:49:46.366] * (100) [AS65035i] via 191.34.2.2 on swp19 unicast [bgp3422 15:49:46.366] (100) [AS65035i] via 192.34.2.2 on swp20 192.35.2.2/31 unicast [bgp3421 15:44:51.377] * (100) [AS65002i] via 191.34.2.2 on swp19 unicast [bgp3422 15:43:59.441] (100) [AS65002i] via 192.34.2.2 on swp20 192.34.1.2/31 unicast [direct1 15:43:55.271] * (240) dev swp17 unicast [direct1 15:43:55.271] (240) dev swp17.202 unicast [direct1 15:43:55.271] (240) dev swp17.201 192.34.2.2/31 unicast [direct1 15:43:55.271] * (240) dev swp20 unicast [bgp3421 15:44:51.377] (100) [AS65002i] via 191.34.2.2 on swp19 unicast [bgp3422 15:43:59.441] (100) [AS65002i] via 192.34.2.2 on swp20 191.34.2.2/31 unicast [direct1 15:43:55.271] * (240) dev swp19 unicast [bgp3421 15:44:51.377] (100) [AS65002i] via 191.34.2.2 on swp19 unicast [bgp3422 15:43:59.441] (100) [AS65002i] via 192.34.2.2 on swp20 134.0.0.0/17 unicast [ixia1 15:43:59.877] * (100) [AS65134i] via 190.34.32.1 on swp32 134.1.0.0/21 unicast [ixia5 15:44:00.490] * (100) [AS65134i] via 190.34.32.5 on swp32 191.34.1.2/31 unicast [direct1 15:43:55.271] * (240) dev swp18 unicast [direct1 15:43:55.271] (240) dev swp18.302 unicast [direct1 15:43:55.271] (240) dev swp18.301 134.0.0.0/16 unicast [ixia1 15:43:59.877] * (100) [AS65134i] via 190.34.32.1 on swp32 134.1.0.0/20 unicast [ixia4 15:43:59.051] * (100) [AS65134i] via 190.34.32.4 on swp32 134.0.0.0/19 unicast [ixia3 15:43:59.995] * (100) [AS65134i] via 190.34.32.3 on swp32 134.1.0.0/23 unicast [ixia7 15:45:22.424] * (100) [AS65134i] via 190.34.32.7 on swp32 134.0.0.0/18 unicast [ixia2 15:43:59.057] * (100) [AS65134i] via 190.34.32.2 on swp32 134.1.0.0/22 unicast [ixia6 15:44:01.544] * (100) [AS65134i] via 190.34.32.6 on swp32 191.35.2.2/31 unicast [bgp3421 15:44:51.377] * (100) [AS65002i] via 191.34.2.2 on swp19 unicast [bgp3422 15:43:59.441] (100) [AS65002i] via 192.34.2.2 on swp20 134.0.0.0/21 unicast [ixia5 15:44:00.490] * (100) [AS65134i] via 190.34.32.5 on swp32 134.1.0.0/17 unicast [ixia1 15:43:59.877] * (100) [AS65134i] via 190.34.32.1 on swp32 190.1.34.2/31 unicast [direct1 15:43:55.271] * (240) dev swp1 191.35.1.2/31 unicast [bgp3421 15:49:46.366] * (100) [AS65035i] via 191.34.2.2 on swp19 unicast [bgp3422 15:49:46.366] (100) [AS65035i] via 192.34.2.2 on swp20 190.1.35.2/31 unicast [bgp3421 15:49:46.366] * (100) [AS65035i] via 191.34.2.2 on swp19 unicast [bgp3422 15:49:46.366] (100) [AS65035i] via 192.34.2.2 on swp20 134.0.0.0/20 unicast [ixia4 15:43:59.051] * (100) [AS65134i] via 190.34.32.4 on swp32 134.1.0.0/16 unicast [ixia1 15:43:59.877] * (100) [AS65134i] via 190.34.32.1 on swp32 134.0.0.0/23 unicast [ixia7 15:45:22.424] * (100) [AS65134i] via 190.34.32.7 on swp32 134.1.0.0/19 unicast [ixia3 15:43:59.995] * (100) [AS65134i] via 190.34.32.3 on swp32 190.34.32.0/24 unicast [direct1 15:43:55.271] * (240) dev swp32 unicast [direct1 15:43:55.271] (240) dev swp32.102 unicast [direct1 15:43:55.271] (240) dev swp32.101 134.0.0.0/22 unicast [ixia6 15:44:01.544] * (100) [AS65134i] via 190.34.32.6 on swp32 134.1.0.0/18 unicast [ixia2 15:43:59.057] * (100) [AS65134i] via 190.34.32.2 on swp32 134.0.0.0/25 unicast [ixia9 15:44:00.550] * (100) [AS65134i] via 190.34.32.9 on swp32 190.2.34.2/31 unicast [direct1 15:43:55.271] * (240) dev swp3 190.2.35.2/31 unicast [bgp3421 15:49:46.366] * (100) [AS65035i] via 191.34.2.2 on swp19 unicast [bgp3422 15:49:46.366] (100) [AS65035i] via 192.34.2.2 on swp20 134.0.0.0/24 unicast [ixia8 15:43:59.535] * (100) [AS65134i] via 190.34.32.8 on swp32 172.0.0.0/16 unicast [bgp3421 15:44:51.377] * (100) [AS65002i] via 191.34.2.2 on swp19 unicast [bgp3422 15:43:59.441] (100) [AS65002i] via 192.34.2.2 on swp20 134.0.0.0/26 unicast [ixia10 15:44:00.145] * (100) [AS65134i] via 190.34.32.10 on swp32 134.1.0.0/25 unicast [ixia9 15:44:00.550] * (100) [AS65134i] via 190.34.32.9 on swp32 134.1.0.0/24 unicast [ixia8 15:43:59.535] * (100) [AS65134i] via 190.34.32.8 on swp32 134.1.0.0/26 unicast [ixia10 15:44:00.145] * (100) [AS65134i] via 190.34.32.10 on swp32 bird> bird> show route table table_vrf01 Table table_vrf01: 192.34.1.2/31 unicast [direct_vrf01 15:43:55.271] * (240) dev swp17.201 191.34.1.2/31 unicast [direct_vrf01 15:43:55.271] * (240) dev swp18.301 190.34.32.0/24 unicast [direct_vrf01 15:43:55.271] * (240) dev swp32.101 134.0.0.0/24 unicast [bgp_vrf01_ixia1 15:44:26.288] * (100) [AS65134i] via 190.34.32.101 on swp32 134.1.0.0/24 unicast [bgp_vrf01_ixia1 15:44:26.288] * (100) [AS65134i] via 190.34.32.101 on swp32 bird> -- Semion Lisyansky On Mon, Nov 5, 2018 at 1:22 PM Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Mon, Nov 05, 2018 at 10:42:27AM +0200, Semion Lisyansky wrote:
Thanks, Alexander
Using bird 2.0.2. Guess it does not include patch you mentioned
Have another question: Configured peers in vrf with different addresses but still in overlapping subnets. BGP session are established and some prefixes advertised. The issue is that bird/bgp tries to resolve nexthops for all vrfs only in default.
Hi
This should work in 2.0.2, the routes are supposed to be resolved by default in the same table to which the BGP protocol is connected, in your case table_vrf01. Could you send output of BIRD commands:
show interfaces show protocols all show route show route table table_vrf01 ?
-- Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."