BGP connection between two peers
Hi I want to make BGP bettwen two peers. I have made this configuration and I don't know what is wrong. Command show route, shows nothing. How can I check If it works? Do you have some remarks on the configuration files? What do I need to do? Please, any remark is welcomed. RS o------------------------------------------------------------------o IXP1 AS 900 AS 100 Loopback 10.9.9/32 Loopback 10.1.1.1/32 GATEWAY 10.0.0.9/24 GATEWAY 10.0.0.1/24 Two virtual machines RS and IXP1. I have install BIRD 1.6.3 on a Ubuntu 16.04 LTS on a VM Oracle Box and I want to accomplish BGP connection. RS log syslog all; router id 10.9.9.9; protocol device { scan time 10; } protocol kernel { export all; scan time 15; } protocol bgp peer1 { import all; export all; local as 900; neighbor 10.0.0.1 as 100; } IXP1 log syslog all; router id 10.1.1.1; protocol device { scan time 10; } protocol kernel { export all; scan time 15; } protocol bgp peer9 { import all; export all; local as 100; neighbor 10.0.0.9 as 900; } Thank you for your help. Aleksandra
Hi. Begin from these steps: 1. Open the cli (birdc), then run the diagnostic commands. Also, you can run the commands in the shell cli (without interactive mode and autocompletion) 2. Run the command "show protocols all". It lists detailed information about configured protocols (include pseudoprotocols like 'device') - check the states of protocols - obviously, your protocol should be in the UP state. 3. There're a tons of reasons of what can happens wrong. If you don't see established BGP session, run the tcpdump and check the traffic. These step are basic troubleshooting tactics. Ask more questions and provide more information. 2017-09-25 17:19 GMT+03:00 Александра Урошевска <aleksuroshevska@gmail.com>:
Hi
I want to make BGP bettwen two peers. I have made this configuration and I don't know what is wrong. Command show route, shows nothing. How can I check If it works? Do you have some remarks on the configuration files? What do I need to do? Please, any remark is welcomed.
RS o------------------------------------------------------------------o IXP1 AS 900 AS 100 Loopback 10.9.9/32 Loopback 10.1.1.1/32 GATEWAY 10.0.0.9/24 GATEWAY 10.0.0.1/24
Two virtual machines RS and IXP1. I have install BIRD 1.6.3 on a Ubuntu 16.04 LTS on a VM Oracle Box and I want to accomplish BGP connection.
RS log syslog all; router id 10.9.9.9; protocol device { scan time 10; } protocol kernel { export all; scan time 15; } protocol bgp peer1 { import all; export all; local as 900; neighbor 10.0.0.1 as 100; }
IXP1 log syslog all; router id 10.1.1.1; protocol device { scan time 10; } protocol kernel { export all; scan time 15; } protocol bgp peer9 { import all; export all; local as 100; neighbor 10.0.0.9 as 900; }
Thank you for your help. Aleksandra
-- Anton.
After a hard work all day, I install again BIRD and seems to work very well. Thank you for the advices Anton Danilov, I can't say why didn't work. But, I can share my previous installation and the current installation, I don't know either is wrong there somethig or not. On my previous installation the commands showed no results. previous installation BIRD ---------------------------------- # sudo su # apt-get update # apt-get upgrade # sudo apt-get install build-essential ,GNU C Compiler (or LLVM Clang) и GNU Make. # sudo apt-get install bison, GNU Bison. # sudo apt-get install m4, GNU M4. # sudo apt-get install flex, Flex. # sudo apt-get install libncurses5-dev libncursesw5-dev, ncurses library. # sudo apt-get install libreadline6 libreadline6-dev, GNU Readline library (2.1 or newer). # sudo apt-get install linuxdoc-tools, Linuxdoc-Tools. # sudo apt-get install texlive-full, LaTeX. # apt-get update # apt-get upgrade # apt-get install bird # git clone git://git.nic.cz/bird.git # cd bird # autoreconf # ./configure # make # make install # invoke-rc.d bird start # birdc current installation BIRD ------------------------------------ # sudo su # apt-get update # apt-get upgrade # apt-get install bird # cd /etc # cd bird # cd /proc # cd sys # cd net # cd ipv4 # nano ip_forward 1 # cd etc # nano sysctl.conf uncomment for ipv4 That is it. After that I run this configuration here <https://ip.engineering/how-to-bird-ospf/> , which I don't need. But just to test it. and ... root@RS:/home/a# service bird start root@RS:/home/a# birdc BIRD 1.5.0 ready. bird> show protocols name proto table state since info direct1 Direct master up 21:55:40 kernel1 Kernel master up 21:55:40 device1 Device master up 21:55:40 static1 Static master up 21:55:40 MyOSPF OSPF master up 21:55:40 Alone bird> sh route 0.0.0.0/0 via 10.0.2.2 on enp0s3 [kernel1 21:55:40] * (10) 10.0.2.0/24 dev enp0s3 [direct1 21:55:40] * (240) 169.254.0.0/16 dev enp0s3 [kernel1 21:55:40] * (10) bird> Thank you again. On Mon, Sep 25, 2017 at 6:09 PM, Anton Danilov <littlesmilingcloud@gmail.com
wrote:
Hi. Begin from these steps: 1. Open the cli (birdc), then run the diagnostic commands. Also, you can run the commands in the shell cli (without interactive mode and autocompletion) 2. Run the command "show protocols all". It lists detailed information about configured protocols (include pseudoprotocols like 'device') - check the states of protocols - obviously, your protocol should be in the UP state. 3. There're a tons of reasons of what can happens wrong. If you don't see established BGP session, run the tcpdump and check the traffic. These step are basic troubleshooting tactics. Ask more questions and provide more information.
2017-09-25 17:19 GMT+03:00 Александра Урошевска <aleksuroshevska@gmail.com
:
Hi
I want to make BGP bettwen two peers. I have made this configuration and I don't know what is wrong. Command show route, shows nothing. How can I check If it works? Do you have some remarks on the configuration files? What do I need to do? Please, any remark is welcomed.
RS o------------------------------------------------------------------o IXP1 AS 900 AS 100 Loopback 10.9.9/32 Loopback 10.1.1.1/32 GATEWAY 10.0.0.9/24 GATEWAY 10.0.0.1/24
Two virtual machines RS and IXP1. I have install BIRD 1.6.3 on a Ubuntu 16.04 LTS on a VM Oracle Box and I want to accomplish BGP connection.
RS log syslog all; router id 10.9.9.9; protocol device { scan time 10; } protocol kernel { export all; scan time 15; } protocol bgp peer1 { import all; export all; local as 900; neighbor 10.0.0.1 as 100; }
IXP1 log syslog all; router id 10.1.1.1; protocol device { scan time 10; } protocol kernel { export all; scan time 15; } protocol bgp peer9 { import all; export all; local as 100; neighbor 10.0.0.9 as 900; }
Thank you for your help. Aleksandra
-- Anton.
On Wed, Sep 27, 2017 at 10:04:26PM +0200, Александра Урошевска wrote:
After a hard work all day, I install again BIRD and seems to work very well. Thank you for the advices Anton Danilov, I can't say why didn't work. But, I can share my previous installation and the current installation, I don't know either is wrong there somethig or not. On my previous installation the commands showed no results.
Hi I would guess that BGP in your previous configuration worked, BGP session was up (that could be verified by 'show protocols all') and would forward routes, but on both routers there was no protocol that would generate any route (like Static protocol for static routes or Direct protocol for direct routes), so 'show route' shows empty tables and BGP has nothing to forward. BGP itself does not define new routes and Kernel protocol requires 'learn' option to import routes from kernel, otherwise it only works in the other direction (BIRD -> kernel).
bird> sh route 0.0.0.0/0 via 10.0.2.2 on enp0s3 [kernel1 21:55:40] * (10) 10.0.2.0/24 dev enp0s3 [direct1 21:55:40] * (240) 169.254.0.0/16 dev enp0s3 [kernel1 21:55:40] * (10)
In your new configuration you have Direct protocol responsible for 10.0.2.0/24 route and Kernel protocol with 'learn' responsible for the other two routes. -- 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."
participants (3)
-
Anton Danilov -
Ondrej Zajicek -
Александра Урошевска