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
how_route_lacnic_ipv4_block_with_oneprovider [2018/02/22 03:33]
admin
how_route_lacnic_ipv4_block_with_oneprovider [2019/05/31 00:40]
admin
Line 1: Line 1:
 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). 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, announced route is: 45.225.75.0/​24,​ oneprovider ASN is 61272+Our ASN for the exemple is ASN 266671, announced route is: 45.225.75.0/​24,​ oneprovider ASN is 9009
  
 Here we use limited MTU to work over PPP (GPON) Here we use limited MTU to work over PPP (GPON)
Line 11: Line 11:
 {{:​lacnic-1.png?​direct|}} {{:​lacnic-1.png?​direct|}}
 {{:​lacnic-2.png?​direct|}} {{:​lacnic-2.png?​direct|}}
 +
 +== /​etc/​bird/​bird6.conf ==
 +  router id 37.120.157.227;​
 +  ​
 +  protocol bgp ONEPROVIDER
 +  {
 +    local as 266671;
 +    source address 2A0D:​5600:​X:​2;​
 +    import none;
 +    export all;
 +    graceful restart on;
 +    multihop 2;
 +    neighbor 2A0D:​5600:​X::​1 as 9009;
 +  }
 +  ​
 +  protocol static
 +  {
 +    route 2803:​1920::/​32 via 2A0D:​5600:​X::​2;​
 +  }
 +  ​
 +  protocol device
 +  {
 +    scan time 5;
 +  }
  
 == /​etc/​bird/​bird.conf == == /​etc/​bird/​bird.conf ==
Line 23: Line 47:
       graceful restart on;       graceful restart on;
       multihop 2;       multihop 2;
-      neighbor 185.64.105.1 as 61272;+      neighbor 185.64.105.1 as 9009;
   }   }
   ​   ​
Line 51: Line 75:
     BGP state: ​         Established     BGP state: ​         Established
         Neighbor address: 185.64.105.1         Neighbor address: 185.64.105.1
-        Neighbor AS:      ​61272+        Neighbor AS:      ​9009
         Neighbor ID:      91.216.163.254         Neighbor ID:      91.216.163.254
         Neighbor caps:    refresh restart-aware AS4         Neighbor caps:    refresh restart-aware AS4
Line 75: Line 99:
     Output filter: ​ REJECT     Output filter: ​ REJECT
     Routes: ​        0 imported, 0 exported, 0 preferred     Routes: ​        0 imported, 0 exported, 0 preferred
 +
 +== /​etc/​quagga/​bgpd.conf ==
 +  !
 +  hostname hades
 +  password Ddnv6ovqSEwtdiL9q89KKAmV
 +  log file /​var/​log/​bgpd.log
 +  log stdout
 +  !
 +  router bgp 266671
 +   bgp router-id 37.120.157.Z
 +   ​neighbor 37.120.157.Y remote-as 9009
 +   ​neighbor 2A0D:​5600:​X::​1 remote-as 9009
 +  !
 +   ​address-family ipv6
 +   ​network 2803:​1920::/​32
 +   ​neighbor 2A0D:​5600:​X::​1 activate
 +   ​exit-address-family
 +   ​address-family ipv4
 +   ​network 45.225.75.0/​24
 +   ​neighbor 37.120.157.Y activate
 +   ​exit-address-family
 +   exit
 +  !
 +  line vty
 +  !
  
 == /​etc/​network/​interfaces == == /​etc/​network/​interfaces ==
Line 110: Line 159:
   /​sbin/​modprobe ipip   /​sbin/​modprobe ipip
   /sbin/ip tu ad confiared mode ipip local 185.64.105.21 remote 190.186.245.10 ttl 64 dev eth0   /sbin/ip tu ad confiared mode ipip local 185.64.105.21 remote 190.186.245.10 ttl 64 dev eth0
-  /sbin/ip ad ad dev confiared 10.0.0.1 peer 10.0.0.2/32+  /sbin/ip ad ad dev confiared 10.0.0.1 peer 45.225.75.2/32
   /sbin/ip li se dev confiared up   /sbin/ip li se dev confiared up
   /sbin/ip link set dev confiared mtu 1280   /sbin/ip link set dev confiared mtu 1280
-  /​bin/​ping ​10.0.0.2 & +  /​bin/​ping ​45.225.75.2 & 
-  /sbin/ip ro ad 45.225.75.0/​24 via 10.0.0.2+  /sbin/ip ro ad 45.225.75.0/​24 via 45.225.75.2
   ​   ​
 == service script == == service script ==
Line 182: Line 231:
   /​sbin/​modprobe ipip   /​sbin/​modprobe ipip
   /bin/ip tu ad oneprovider mode ipip local 190.186.245.10 remote 185.64.105.21 ttl 64 dev eth0   /bin/ip tu ad oneprovider mode ipip local 190.186.245.10 remote 185.64.105.21 ttl 64 dev eth0
-  /bin/ip ad ad dev oneprovider ​10.0.0.2 peer 10.0.0.1/32+  /bin/ip ad ad dev oneprovider ​45.225.75.2 peer 10.0.0.1/32
   /bin/ip li se dev oneprovider up   /bin/ip li se dev oneprovider up
   /bin/ip link set dev oneprovider mtu 1280   /bin/ip link set dev oneprovider mtu 1280
how_route_lacnic_ipv4_block_with_oneprovider.txt · Last modified: 2019/05/31 00:40 by admin