Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenBGPd IPv4 + IPv6

    Scheduled Pinned Locked Moved IPv6
    4 Posts 3 Posters 5.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Defoe
      last edited by

      I would like to implement IPv6 since my BGP provider support native IPv6.
      I don't seems to be able to add IPv6 as easy as I did with IPv4 in GUI.

      This is the raw config that I have.

      # This file was created by the package manager.  Do not edit!
      
      AS 132597
      fib-update yes
      listen on 27.50.33.26
      router-id 27.50.33.26
      network 103.16.26.0/23
      network 2001:df0:465::/48
      neighbor 27.50.33.25 {
      	descr "Hurricane Electric IPv4"
      	announce all  
      	remote-as 6939 
      	local-address 27.50.33.26
      }
      deny from any
      deny to any
      allow from 27.50.33.25
      allow to 27.50.33.25
      
      

      The GUI doesn't allow me to put my IPv6 address into listen on, router-id and local-address.

      This is my try to edit the raw but not working.

      # This file was created by the package manager.  Do not edit!
      
      AS 132597
      fib-update yes
      listen on 27.50.33.26
      router-id 27.50.33.26
      network 103.16.26.0/23
      network 2001:df0:465::/48
      neighbor 27.50.33.25 {
      	descr "Hurricane Electric IPv4"
      	announce all  
      	remote-as 6939 
      	local-address 27.50.33.26
      }
      
      listen on 2001:47:1:215::2
      router-id 2001:47:1:215::2
      network 103.16.26.0/23
      network 2001:df0:465::/48
      neighbor 2001:47:1:215::1 {
      	descr "Hurricane Electric IPv6"
      	announce all  
      	remote-as 6939 
      	local-address 2001:47:1:215::2
      }
      deny from any
      deny to any
      allow from 27.50.33.25
      allow to 27.50.33.25
      allow from 2001:47:1:215::1
      allow to 2001:47:1:215::1
      
      

      I don't know where to get my log as well.
      Can anyone help?

      1 Reply Last reply Reply Quote 0
      • R
        Reiner030
        last edited by

        yes… the author have no enough time for it (and perhaps no need, too ^^)

        but its easy...  if there were failures you can see it under system logs => routing with line number of failures
        http://www.openbsd.org/cgi-bin/man.cgi?query=bgpd.conf

        if you use IPv4 and IPv6 and want specify special filters you must identify them by "inet" or "inet6" but in your cases there is still no need for it.
        I guess that only the parameter  "listen on" and "router-id" with IPv6 address must be removed because they can't addressed twice
        (and didn't separate IPv4 and IPv6).
        And since you want listen on IPv4 and IPv6 the "listen on"should be removed for IPv4 too.
        The router id is optionally... can be removed, too.

        # This file was manually created; use no umlauts/special chars!
        AS 132597
        fib-update yes
        router-id 27.50.33.26
        
        network 103.16.26.0/23
        network 2001:df0:465::/48
        
        neighbor 27.50.33.25 {
        	descr "Hurricane Electric IPv4"
        	announce all  
        	remote-as 6939 
        	local-address 27.50.33.26
        }
        
        neighbor 2001:47:1:215::1 {
        	descr "Hurricane Electric IPv6"
        	announce all  
        	remote-as 6939 
        	local-address 2001:47:1:215::2
        }
        
        deny from any
        deny to any
        allow from 27.50.33.25
        allow to 27.50.33.25
        allow from 2001:47:1:215::1
        allow to 2001:47:1:215::1
        
        # dont forget one empty line after last command to let it work
        
        

        the last empty line is a very hidden "feature" ;)

        1 Reply Last reply Reply Quote 0
        • D
          Defoe
          last edited by

          work like a charm!

          1 Reply Last reply Reply Quote 0
          • D
            databeestje
            last edited by

            Yeah, it does work with both Protocols "as is"

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.