User Tools

Site Tools


Sidebar

how_route_lacnic_ipv4_block_with_oneprovider

This is an old revision of the document!


You need have public IPv4 for the tunnel type in this howto. One server with BGP session options and talk to oneprovider to enable the option (it's not free, the price is on demand, here +50€/month).

Our ASN for the exemple is ASN 266671

Please add a route object from your LACNIC account pointing your range to your ASN 266671.

/etc/quagga/zebra.conf
!
! Zebra configuration saved from vty
!   2017/12/17 00:41:25
!
hostname XXXX
password XXXXXXXX
log file /var/log/bgpd.log
log stdout
!
line vty
!
/etc/quagga/bgpd.conf
!
! Zebra configuration saved from vty
!   2017/12/17 00:41:25
!
hostname XXXXXXXXXXXX
password XXXXXXXXXXXX
log file /var/log/bgpd.log
log stdout
!
router bgp 266671
 bgp router-id 185.64.105.21
 neighbor 185.64.105.1 remote-as 61272
!
 network 45.225.75.0/24
 neighbor 185.64.105.1 activate
 exit
!
line vty
!
command
echo '' > /var/log/bgpd.log
mkdir -p /run/quagga
chown quagga.quagga /run/quagga /var/log/bgpd.log
/usr/sbin/zebra --daemon -A 127.0.0.1 -g quagga -u quagga -f /etc/quagga/zebra.conf
sleep 20
/usr/sbin/bgpd --daemon -A 127.0.0.1 -g quagga -u quagga -f /etc/quagga/bgpd.conf
check BGP
  • vtysh
  • show ip bgp summary
    • Should show:
BGP router identifier 185.64.105.21, local AS number 266671
RIB entries 4, using 448 bytes of memory
Peers 1, using 9088 bytes of memory
Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
185.64.105.1    4 61272       8       9        0    0    0 00:04:22        2
Total number of neighbors 1
how_route_lacnic_ipv4_block_with_oneprovider.1516720160.txt.gz · Last modified: 2018/01/23 15:09 by admin