interface to BGP

Maria Matejka maria.matejka at nic.cz
Thu Sep 19 22:41:17 CEST 2024


Hello!

Your config only _allows_ this prefix to be exported but doesn't load it from anywhere.

If any address of 192.0.2.0/24 is assigned to a local interface, you may generate the route by "protocol direct".

If you added the route to kernel by hand, you can use "learn" inside the "protocol kernel" block.

Last but not least, you may just create the route with "protocol static".

Maria

On 19 September 2024 22:17:57 CEST, alpha_one_x86 <alpha_one_x86 at first-world.info> wrote:
>Hi, I try export 192.0.2.0/24 to BGP into a test env. Why not work?
>
>I attach my config file
>
>root at fake-asn1:~# birdc show protocol all
>BIRD 1.6.8 ready.
>name     proto    table    state  since       info
>kernel1  Kernel   master   up     20:08:35
> Preference:     10
> Input filter:   ACCEPT
> Output filter:  ACCEPT
> Routes:         0 imported, 0 exported, 0 preferred
> 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
>
>device1  Device   master   up     20:08:35
> Preference:     240
> Input filter:   ACCEPT
> Output filter:  REJECT
> Routes:         0 imported, 0 exported, 0 preferred
> 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
>
>IXP      BGP      master   up     20:08:40    Established
> Preference:     100
> Input filter:   (unnamed)
> Output filter:  (unnamed)
> Routes:         0 imported, 0 exported, 0 preferred
> 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 state:          Established
>   Neighbor address: 172.23.0.1
>   Neighbor AS:      65501
>   Neighbor ID:      172.23.0.1
>   Neighbor caps:    refresh enhanced-refresh restart-aware llgr-aware AS4
>   Session:          external AS4
>   Source address:   172.23.1.0
>   Hold timer:       128/240
>   Keepalive timer:  8/80
>
>root at fake-asn1:~# route -n -4
>Kernel IP routing table
>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
>172.23.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0
>192.0.2.0       0.0.0.0         255.255.255.0   U     0      0        0 ethFAKE
>
>-- 
>alpha_one_x86/BRULE Herman<alpha_one_x86 at first-world.info>
>Main developer of Supercopier/Ultracopier/CatchChallenger, Esourcing and server management
>IT, OS, technologies, research & development, security and business department

-- 
Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240919/748c7e5e/attachment.htm>


More information about the Bird-users mailing list