User Tools

Site Tools


Sidebar

how_configure_bgp_with_tunnelbroker.net_with_quagga

How configure BGP with tunnelbroker.net (Hurricane Electric, AS 6939) with Quagga

Require public fixed IPv4

Note
  • Why Quagga? You don't be linked with specific hardware, any x86, ARM, … with EEE for PTP linux support and your preferred Linux is working
  • Why tunnelbroker.net (Hurricane Electric)? Allow free tunnel to do a basic setup.
  • Our ASN: 266671
  • We are using: net-misc/quagga-1.2.1::gentoo USE=“bgpclassless ipv6 readline”
  • Firstly we run: Example Configurations → Linux-net-tools
  • echo '' > /var/log/bgpd.log;chown quagga.quagga /var/log/bgpd.log
  • Always check your internet MTU support. Change MTU for limited MTU as GPON
    • ifconfig sit0 mtu 1280 up
    • ifconfig sit0 mtu 1280 up
    • On the avanced option into tunnel broker
zebra.conf
!
hostname ourrouterbgpname
password XXXXXXXXXXXXXXXXXXXXX
log file /var/log/bgpd.log
log stdout
!
line vty
!
bgpd.conf
!
hostname ourrouterbgpname
password XXXXXXXXXXXXXXXXX
log file /var/log/bgpd.log
log stdout
!
router bgp 266671
 bgp router-id [190.186.245.10 your public ip]
 neighbor [IPv6 Tunnel Endpoints, Server IPv6 Address] remote-as 6939
!
 address-family ipv6
 network 2803:1920::/32
 neighbor [IPv6 Tunnel Endpoints, Server IPv6 Address] activate
 exit-address-family
 exit
!
line vty
!
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 190.186.245.10  netmask 255.255.255.0  broadcast 190.186.203.255

sit0: flags=193<UP,RUNNING,NOARP>  mtu 1480
        inet6 ::192.168.0.9  prefixlen 96  scopeid 0x80<compat,global>
        inet6 ::127.0.0.1  prefixlen 96  scopeid 0x90<compat,host>
        inet6 ::172.20.0.9  prefixlen 96  scopeid 0x80<compat,global>
        inet6 ::190.186.203.22  prefixlen 96  scopeid 0x80<compat,global>
        sit  txqueuelen 1000  (IPv6-in-IPv4)

sit1: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1480
        inet6 2001:470:10:31::2  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::beba:cb16  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::c0a8:9  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::ac14:9  prefixlen 64  scopeid 0x20<link>
        sit  txqueuelen 1000  (IPv6-in-IPv4)
check BGP
  • vtysh
  • show ip bgp summary
    • Should show:
BGP router identifier 190.186.203.2, local AS number 266671
RIB entries 0, using 0 bytes of memory
Peers 1, using 4944 bytes of memory
Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2001:470:1
                4  6939  219827    2721        0    0    0 1d21h10m        0
Total number of neighbors 1
Total num. Established sessions 1
Total num. of routes received     0
how_configure_bgp_with_tunnelbroker.net_with_quagga.txt · Last modified: 2018/01/23 15:04 by admin