interface to BGP
alpha_one_x86
alpha_one_x86 at first-world.info
Thu Sep 19 22:17:57 CEST 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240919/6289ded2/attachment.htm>
-------------- next part --------------
# This is a minimal configuration file, which allows the bird daemon to start
# but will not cause anything else to happen.
#
# Please refer to the documentation in the bird-doc package or BIRD User's
# Guide on http://bird.network.cz/ for more information on configuring BIRD and
# adding routing protocols.
# Change this into your BIRD router ID. It's a world-wide unique identification
# of your router, usually one of router's IPv4 addresses.
router id 198.51.100.1;
# The Kernel protocol is not a real routing protocol. Instead of communicating
# with other routers in the network, it performs synchronization of BIRD's
# routing tables with the OS kernel.
protocol kernel {
scan time 60;
import all;
export all; # Actually insert routes into the kernel routing table
}
# The Device protocol is not a real routing protocol. It doesn't generate any
# routes and it only serves as a module for getting information about network
# interfaces from the kernel.
protocol device {
scan time 60;
}
protocol bgp IXP
{
local as 64496;
source address 172.23.1.0;
import filter {
accept;
};
export filter {
if net = 192.0.2.0/24 then accept;
reject;
};
# default bgp_local_pref 500;
graceful restart on;
neighbor 172.23.0.1 as 65501;
}
More information about the Bird-users
mailing list