Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
nbctcp
New Contributor III

DHCP6 IPv6

I have  Fortigate VM Eval 6.2.3 with these configs

config system interface edit "port4"    set vdom "root"    set type physical    config ipv6    set ip6-address 2001::1/124    set ip6-allowaccess ping https ssh fgfm    end    next end

config system dhcp6 server edit 1    set dns-service default    set domain "domain.com"    set subnet 2001::/124    set interface "port4"    config ip-range    edit 1    set start-ip 2001::    set end-ip 2001::f    next    end    next end

 

GOAL:

-set up dhcp6 server in fortigate

 

QUESTIONS:

1. how do I know my local ipv6 address using CLI

I can't see using "show sys int ?"

2. where in dhcp6 server stated my gateway ipv6 address.

tq

http://goo.gl/lhQjmUhttp://nbctcp.wordpress.com
1 Solution
tinyadmin
New Contributor III

Hello nbctcp,

I found the question you wrote several months ago. If you still have the question, I try to give a few answers. Maybe someone else will read this and solve an issue...

 

Short answers for the questions:

1. # diagnose ipv6 address list   you get back fe80... addresses and configured once

2. no gateway in dhcp6, delivered by RA from router

 

Now a few more details:

In IPv6 you must tell the client with router advertisement (RA) flags to ask for the DHCPv6 information.

There is the "other" flag for stateless DHCPv6 (only information line DNS-Server, NTP Server and so on) and the "managed" flag for stateful DHCPv6 which includes the IPv6 address for the client.

Example to configure: (FortiOS 6.0.13)

config system interface     edit "port4"          config ipv6             set ip6-send-adv enable  # send of RA in general for this interface             set ip6-manage-flag enable # set managed flag = client get address from DHCPv6 server             set ip6-other-flag enable  # set other flag = client gets for example DNS-server using DHCPv6 # don't forget to configure prefix list for RAs and activate sending RAs         end     next end

Next step is to configure the DHCPv6 service for this interface:

config system dhcp6 server     edit 0    #use next free number         set lease-time 14400         set domain "example.com"         set subnet 2001:db8:1234:abcd::/64         set interface "port4"         set option1 56 '0001001020010db828000000000000000ac30123' # option for NTPv6 server IP address

# NTP server IPv6 address in this example is 2001:db8:2800::ac:123         set option2 56 '00030010013304706f6f6c036e7470036f726700' # option for NTPv6 server name

# NTP server name is 3.pool.ntp.org         config ip-range             edit 1                 set start-ip 2001:db8:1234:abcd::c:1                 set end-ip 2001:db8:1234:abcd::c:ff             next         end         set dns-server1 2001:db8:1234:a53::53         set dns-server2 2001:db8:1234:b53::53     next end

In the DHCPv6 configuration in NO default router/gateway. This information must the client take from RA packets. This is different in DHCPv4 :)

 

I hope this helps someone to configure IPv6.

 

Have fun

tinyadmin

View solution in original post

1 REPLY 1
tinyadmin
New Contributor III

Hello nbctcp,

I found the question you wrote several months ago. If you still have the question, I try to give a few answers. Maybe someone else will read this and solve an issue...

 

Short answers for the questions:

1. # diagnose ipv6 address list   you get back fe80... addresses and configured once

2. no gateway in dhcp6, delivered by RA from router

 

Now a few more details:

In IPv6 you must tell the client with router advertisement (RA) flags to ask for the DHCPv6 information.

There is the "other" flag for stateless DHCPv6 (only information line DNS-Server, NTP Server and so on) and the "managed" flag for stateful DHCPv6 which includes the IPv6 address for the client.

Example to configure: (FortiOS 6.0.13)

config system interface     edit "port4"          config ipv6             set ip6-send-adv enable  # send of RA in general for this interface             set ip6-manage-flag enable # set managed flag = client get address from DHCPv6 server             set ip6-other-flag enable  # set other flag = client gets for example DNS-server using DHCPv6 # don't forget to configure prefix list for RAs and activate sending RAs         end     next end

Next step is to configure the DHCPv6 service for this interface:

config system dhcp6 server     edit 0    #use next free number         set lease-time 14400         set domain "example.com"         set subnet 2001:db8:1234:abcd::/64         set interface "port4"         set option1 56 '0001001020010db828000000000000000ac30123' # option for NTPv6 server IP address

# NTP server IPv6 address in this example is 2001:db8:2800::ac:123         set option2 56 '00030010013304706f6f6c036e7470036f726700' # option for NTPv6 server name

# NTP server name is 3.pool.ntp.org         config ip-range             edit 1                 set start-ip 2001:db8:1234:abcd::c:1                 set end-ip 2001:db8:1234:abcd::c:ff             next         end         set dns-server1 2001:db8:1234:a53::53         set dns-server2 2001:db8:1234:b53::53     next end

In the DHCPv6 configuration in NO default router/gateway. This information must the client take from RA packets. This is different in DHCPv4 :)

 

I hope this helps someone to configure IPv6.

 

Have fun

tinyadmin

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors