User Tools

Site Tools


how_route_lacnic_ipv4_block_with_oneprovider

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
how_route_lacnic_ipv4_block_with_oneprovider [2018/02/17 13:00]
admin
how_route_lacnic_ipv4_block_with_oneprovider [2018/02/22 03:33]
admin
Line 12: Line 12:
 {{:​lacnic-2.png?​direct|}} {{:​lacnic-2.png?​direct|}}
  
-== /etc/quagga/zebra.conf == +== /etc/bird/bird.conf == 
-  ! +    router id 185.64.105.21;
-  ! 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 == +  protocol bgp ONEPROVIDER 
-  ​echo ''​ > /​var/​log/​bgpd.log +  ​{ 
-  mkdir -p /run/quagga +      local as 266671; 
-  chown quagga.quagga /run/quagga /​var/​log/​bgpd.log +      ​source address 185.64.105.21; 
-  /​usr/​sbin/​zebra --daemon -A 127.0.0.1 -g quagga -u quagga -f /​etc/​quagga/​zebra.conf +      ​import none; 
-  ​sleep 20 +      export all; 
-  ​/​usr/​sbin/​bgpd --daemon -A 127.0.0.1 -g quagga -u quagga -f /etc/​quagga/​bgpd.conf+      graceful restart on; 
 +      multihop 2; 
 +      neighbor 185.64.105.1 as 61272; 
 +  ​} 
 +  ​ 
 +  protocol static 
 +  { 
 +      route   45.225.75.0/24 via 185.64.105.21;​ 
 +  } 
 +   
 +  protocol device 
 +  { 
 +      scan time 5; 
 +  }
  
-== check BGP == +== should show == 
-  ​* vtysh +    ​bird>​ show proto all 
-  ​* show ip bgp summary +    name     ​proto ​   table    state  since       info 
-    ​* Should show:+    ​ONEPROVIDER BGP      master ​  ​up ​    ​14:​14:​14 ​   Established 
 +    Preference: ​    100 
 +    Input filter: ​  ​REJECT 
 +    Output filter: ​ ACCEPT 
 +    ​Routes: ​        0 imported, 1 exported, 0 preferred 
 +    Route change stats: ​    ​received ​  ​rejected ​  ​filtered ​   ignored ​  ​accepted 
 +        Import updates: ​             2          0          2          0          0 
 +        Import withdraws: ​           0          0        ---          2          0 
 +        Export updates: ​             1          0          0        ---          1 
 +        Export withdraws: ​           0        ---        ---        ---          0 
 +    BGP state: ​         Established 
 +        Neighbor address: 185.64.105.1 
 +        Neighbor AS:      61272 
 +        Neighbor ID:      91.216.163.254 
 +        Neighbor caps:    refresh restart-aware AS4 
 +        Session: ​         external multihop AS4 
 +        Source address: ​  ​185.64.105.21 
 +        Hold timer: ​      ​155/​240 
 +        Keepalive timer: ​ 52/80 
 +     
 +    static1 ​ Static ​  ​master ​  ​up ​    ​14:​13:​47 
 +    Preference: ​    200 
 +    Input filter: ​  ​ACCEPT 
 +    Output filter: ​ REJECT 
 +    Routes: ​        1 imported, 0 exported, 1 preferred 
 +    Route change stats: ​    ​received ​  ​rejected ​  ​filtered ​   ignored ​  ​accepted 
 +        Import updates: ​             1          0          0          0          1 
 +        Import withdraws: ​           0          0        ---          0          0 
 +        Export updates: ​             0          0          0        ---          0 
 +        Export withdraws: ​           0        ---        ---        ---          0 
 +     
 +    device1 ​ Device ​  ​master ​  ​up ​    ​14:​13:​47 
 +    Preference: ​    240 
 +    Input filter: ​  ​ACCEPT 
 +    Output filter: ​ REJECT 
 +    Routes        0 imported, 0 exported, 0 preferred
  
-  BGP router identifier ​185.64.105.21, ​local AS number 266671 +== /​etc/​network/​interfaces == 
-  ​RIB entries 4, using 448 bytes of memory +  source /​etc/​network/​interfaces.d/​* 
-  ​Peers 1, using 9088 bytes of memory +   
-  ​Neighbor ​       V         AS MsgRcvd MsgSent ​  ​TblVer ​ InQ OutQ Up/​Down ​ State/​PfxRcd +  # The loopback network interface 
-  ​185.64.105.1    4 61272       ​8 ​      ​9 ​       0    0    0 00:04:22        ​+  auto lo 
-  Total number of neighbors ​1+  iface lo inet loopback 
 +   
 +  # The primary network interface 
 +  allow-hotplug eth0 
 +  iface eth0 inet static 
 +          address ​185.64.105.21/24 
 +          gateway 185.64.105.1 
 +          # dns-* options are implemented by the resolvconf packageif installed 
 +          dns-nameservers 91.216.163.2 91.216.163.3 
 +          dns-search op-net.com 
 +   
 +  ​#router gateway 
 +  ​ 
 +  auto eth0:0 
 +  iface eth0:0 inet static 
 +  ​address 45.225.75.1 
 +  netmask 255.255.255.255 
 +   
 +  ## Ipv6 configuration 
 +  iface eth0 inet6 static 
 +          address 2a04:2180:0:2::12b 
 +          ​netmask 64 
 +          gateway 2a04:​2180:​0:​2::​1 
 +          dns-nameservers 2a04:​2180::​101:​53 2a04:​2180::​102:​53
  
 == Setup the tunnel from oneprovider to confiared == == Setup the tunnel from oneprovider to confiared ==
Line 151: Line 191:
   /bin/ip rule add from 45.225.75.0/​24 table confiared   /bin/ip rule add from 45.225.75.0/​24 table confiared
   /bin/ip route add default via 10.0.0.1 dev oneprovider table confiared   /bin/ip route add default via 10.0.0.1 dev oneprovider table confiared
 +  /bin/ip route add 172.20.0.0/​16 dev eth0 table confiared
   ​   ​
  
how_route_lacnic_ipv4_block_with_oneprovider.txt · Last modified: 2019/05/31 00:40 by admin