This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
how_route_lacnic_ipv4_block_with_oneprovider [2018/05/22 23:58] admin |
how_route_lacnic_ipv4_block_with_oneprovider [2019/05/31 00:40] (current) 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 == | ||