Reply
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1
Accepted Solution

EdgeRouter Lite IPv6 DHCPv6 /60

Hey, 

 

Anyone noticed that the Lite router does not optain IPv6 from DHCP? My ISP assings me a /60 from DHCPv6. All devices from outside the router, gets an IPv6 but no devices behind the router gets. I have enabled DHCPv6 and DHCP in the router configuration. 

 

 

 


Accepted Solutions
Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Try:

configure
delete interfaces ethernet eth0 address dhcpv6
delete interfaces ethernet eth0 ipv6
delete interfaces ethernet eth1 dhcpv6-pd
delete interfaces ethernet eth2 dhcpv6-pd
commit
save
exit

Also note that you have no IPv6 firewall.

EdgeMAX Router Software Development

View solution in original post

Highlighted
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Just a headsup 

 

 

I got a gigswitch removed br0,

 

ran this

configure
set interfaces ethernet eth1 dhcpv6-pd pd 0
set interfaces ethernet eth1 dhcpv6-pd pd 0 interface eth0 service slaac
set interfaces ethernet eth1 dhcpv6-pd pd 0 prefix-length 60
commit
save
exit

 

and now it works and deligating IPv6 within my netowrk and over the wifi aps. 

 

Cheers for your help. 

 

 

 

View solution in original post


All Replies
Regular Member
Posts: 356
Registered: ‎03-11-2015
Kudos: 80
Solutions: 23

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Yes, it isn't native quite yet. I believe Ubiquiti commented and they're working on getting something working. However it will definately work with configuration, I posted a guide for how I setup my /64 from Comcast. You might be able to replicate that with your /60. It's all done via CLI and you won't have to touch your config.boot.

Enthusiast using EdgeMax, AirMax, and UniFi.
Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60

I'm not sure what Remix means by "isn't native", but he're my Comcast dhcpv6-pd config - LINK.

EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

[ Edited ]

Hey thank you for your response,

 

I see that your config has SLAC, My ISP only support DHCPv6. 

 

 

 

 

@Remix  I did edit your guide 

 

set interfaces ethernet eth1 dhcpv6-pd pd 0
set interfaces ethernet eth1 dhcpv6-pd pd 0 interface eth0
set interfaces ethernet eth1 dhcpv6-pd pd 0 prefix-length 60

 

and 

 

set interfaces ethernet eth0 ipv6 router-advert prefix ::/60
set interfaces ethernet eth0 ipv6 router-advert managed-flag true

 

 

Lets see if dhcp gives me v6 

 

 

 

 

edit:

 

It does

 

Interface    IP Address                        S/L  Description
---------    ----------                        ---  -----------
br0          192.168.1.1/24                    u/u  Local Bridge
eth0         84.211.xxx.xxx/20                  u/u  Internet
             2a02:fe0:xxx:x:xxxx:xxxx:xxx:xx/64
eth1         -                                 u/u  Local Bridge
eth2         -                                 u/u  Local Bridge
lo           127.0.0.1/8                       u/u
             ::1/128

 

Ping6 does not work from within cli


login@ubnt:~$ ping6 2001:4860:4860::8888
connect: Network is unreachable

 

 

Edit 2:

@ubnt:~$ show ipv6 route
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       IA - OSPF inter area, E1 - OSPF external type 1,
       E2 - OSPF external type 2, N1 - OSPF NSSA external type 1,
       N2 - OSPF NSSA external type 2, B - BGP
Timers: Uptime
IP Route Table for VRF "default"
C      ::1/128 via ::, lo, 18:05:56
C      2a02:fe0:xxx:x::/64 via ::, eth0, 00:09:28
C      fe80::/64 via ::, eth1, 18:05:21

 

 

Unable to ping6 anything. noe radvd giving out to ap or other clinets onnetwork

New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

anyone?

Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60


Niklas1 wrote:

Hey thank you for your response,

 

I see that your config has SLAC, My ISP only support DHCPv6. 


SLAAC is how I'm assigning addresses to my LAN, has nothing to do with getting a WAN address and prefix for the LAN.  Does your ISP support DHCPv6 or DHCPv6-PD?

EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

[ Edited ]

My ISP refuse to support SLAAC or any other proper way of doing IPv6 deligation.

 

Only DHCPv6 from a /60

 

https://www.get.no/v3/kundeservice/sok/kan-jeg-f%C3%A5-ipv6-hos-get

 

Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60


Niklas1 wrote:

My ISP refuse to support SLAAC or any other proper way of doing IPv6 deligation.

 

Only DHCPv6 from a /60

 

https://www.get.no/v3/kundeservice/sok/kan-jeg-f%C3%A5-ipv6-hos-get

 


As I mentioned slaac is just for the lan side, it has nothing to do with your ISP.  Also it looks like your wan is eth0 and your lan is br0, so why are you applying dhcpv6-pd to a lan interface?  Could you just try:

 

configure
set interfaces ethernet eth0 dhcpv6-pd pd 0
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface br0 service slaac
set interfaces ethernet eth0 dhcpv6-pd pd 0 prefix-length 60
commit
save
exit

 

You might also have to do:

 

release dhcpv6-pd interface eth0
delete dhcpv6-pd duid 
renew dhcpv6-pd interface eth0
EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Ping6 works now from within the router,  however to get it to deltage from the /60 to clinets on br0 (wifi on eth2 and a computer on eth1) it does not. 

Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60

What does "show interfaces" and "show ipv6 route" show?  You should probably post your config file.

EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

[ Edited ]


Interface IP Address S/L Description
--------- ---------- --- -----------
br0 192.168.1.1/24 u/u Local Bridge
eth0 84.211.97.170/20 u/u WAN
2a02:fe0:c100:xxx:xxxx:c86d:7972:48f7/64
eth1 - u/u Local Bridge
eth2 - u/u Local Bridge
lo 127.0.0.1/8 u/u
::1/128

 


IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, B - BGP
Timers: Uptime
IP Route Table for VRF "default"
K ::/0 [0/1024] via fe80::82e0:1dff:fe6d:9819, eth0, 00:48:22
C ::1/128 via ::, lo, 2d21h02m
C 2a02:fe0:c100:5::/64 via ::, eth0, 2d03h05m
C fe80::/64 via ::, eth2, 00:39:31

 

 

firewall {
    all-ping enable
    broadcast-ping disable
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    bridge br0 {
        address 192.168.1.1/24
        aging 300
        bridged-conntrack disable
        description "Local Bridge"
        hello-time 2
        max-age 20
        priority 32768
        promiscuous enable
        stp false
    }
    ethernet eth0 {
        address dhcp
        address dhcpv6
        description WAN
        dhcpv6-pd {
            pd 0 {
                interface br0 {
                    service slaac
                }
                prefix-length 60
            }
            rapid-commit enable
        }
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        ipv6 {
            dup-addr-detect-transmits 1
            router-advert {
                cur-hop-limit 64
                link-mtu 0
                managed-flag true
                max-interval 600
                other-config-flag false
                prefix ::/60 {
                    autonomous-flag true
                    on-link-flag true
                    valid-lifetime 2592000
                }
                prefix ::/64 {
                    autonomous-flag true
                    on-link-flag true
                    valid-lifetime 2592000
                }
                reachable-time 0
                retrans-timer 0
                send-advert true
            }
        }
        speed auto
    }
    ethernet eth1 {
        bridge-group {
            bridge br0
        }
        description "Local Bridge"
        dhcpv6-pd {
            pd 0 {
                interface eth0 {
                }
                prefix-length 60
            }
            rapid-commit enable
        }
        duplex auto
        speed auto
    }
    ethernet eth2 {
        bridge-group {
            bridge br0
        }
        description "Local Bridge"
        dhcpv6-pd {
            pd 0 {
                interface eth0 {
                }
                prefix-length /64
            }
            rapid-commit enable
        }
        duplex auto
        speed auto
    }
    loopback lo {
    }
}
port-forward {
    auto-firewall enable
    hairpin-nat enable
    lan-interface eth2
    lan-interface eth1
    wan-interface eth0
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN_BR {
            authoritative disable
            subnet 192.168.1.0/24 {
                default-router 192.168.1.1
                dns-server 192.168.1.1
                dns-server 8.8.8.8
                lease 86400
                start 192.168.1.38 {
                    stop 192.168.1.243
                }
                static-mapping Chromecast {
                    ip-address 192.168.1.84
               
                }
                static-mapping backup {
                    ip-address 192.168.1.39
             
                }
                static-mapping media {
                    ip-address 192.168.1.208
         
                }
                unifi-controller 192.168.1.208
            }
        }
    }
    dns {
        forwarding {
            cache-size 150
            listen-on br0
        }
    }
    gui {
        https-port 443
    }
    nat {
        rule 5010 {
            description "masquerade for WAN"
            outbound-interface eth0
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
}
system {
    domain-name 192.168.1.1
    host-name ubnt
    login {
        user niklas {
            authentication {
                encrypted-password 
            }
            level admin
        }
    }
    name-server 8.8.8.8
    name-server 8.8.4.4
    ntp {
        server 0.ubnt.pool.ntp.org {
        }
        server 1.ubnt.pool.ntp.org {
        }
        server 2.ubnt.pool.ntp.org {
        }
        server 3.ubnt.pool.ntp.org {
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone Europe/Oslo
}


/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.8.0.4853089.160219.1607 */

 

 

I'll think I'll get a unmanged gigabit switch tomorrow and setup without bridge, need more ports anyways. 

Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Try:

configure
delete interfaces ethernet eth0 address dhcpv6
delete interfaces ethernet eth0 ipv6
delete interfaces ethernet eth1 dhcpv6-pd
delete interfaces ethernet eth2 dhcpv6-pd
commit
save
exit

Also note that you have no IPv6 firewall.

EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

I am aware of that i have no firewall (yet), Ill conifugre that once i get this up and running.

 

 

 

I ran thsoe comands, and ipv6 no longer present on eth0.

Highlighted
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Just a headsup 

 

 

I got a gigswitch removed br0,

 

ran this

configure
set interfaces ethernet eth1 dhcpv6-pd pd 0
set interfaces ethernet eth1 dhcpv6-pd pd 0 interface eth0 service slaac
set interfaces ethernet eth1 dhcpv6-pd pd 0 prefix-length 60
commit
save
exit

 

and now it works and deligating IPv6 within my netowrk and over the wifi aps. 

 

Cheers for your help. 

 

 

 

Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Is eth0 your WAN interface?  dhcpv6-pd should be configure on the WAN interface and the interfaces under the dhcpv6-pd config are the LAN interfaces that you want to delegate a prefix to.

EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Eth1 was set to wan with the wizard. I though it was strange too. I'll edit it in config when I'll get home
Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60


Niklas1 wrote:
Eth1 was set to wan with the wizard. I though it was strange too. I'll edit it in config when I'll get home

Oh, if eth1 is you WAN, then those commands look ok.

EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

Yup it still odd that the wizard from ubnt used eth1 as wan without ability to change it in wizard
Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3125
Solutions: 945
Contributions: 16

Re: EdgeRouter Lite IPv6 DHCPv6 /60


Niklas1 wrote:
Yup it still odd that the wizard from ubnt used eth1 as wan without ability to change it in wizard

There are 2 WAN+2LAN wizards.  The original one use eth1 as the WAN since you are connected to eth0.  The newer WAN+2LAN2 wizard puts WAN on eth0, but this mean after the reboot you need to disconnect your laptop from eth0 and move it to one of the LAN interfaces.

EdgeMAX Router Software Development
New Member
Posts: 28
Registered: ‎05-03-2016
Solutions: 1

Re: EdgeRouter Lite IPv6 DHCPv6 /60

2lan2 also created a sw bridge with adds load on cpu. I was not able to test much after I changed my network. Had to run out again. But when I used 2lan 2 I was able to use more than 100mbit
Reply