OpenBGPd IPv4 + IPv6



  • 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?



  • 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" ;)



  • work like a charm!



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


Log in to reply