12-09-2021 09:43 AM - edited 12-09-2021 09:44 AM
Hello,
I can't get an ipv6 address from a router set up as a dhcpv6 server. I've got both a stateful and stateless server setup for the router, and I don't know what I'm doing wrong.
Attached is the pkt file
12-09-2021 09:56 AM
can a mod delete this thread, please? i posted in the wrong sub. I meant to post it in the IPv6 sub.
12-09-2021 10:25 AM
Hi @mandolordian ,
On R1, you need to apply the IPv6 configuration under the sub interface rather than under the main interface.
interface GigabitEthernet0/0/1
description Link to LAN 1
ip address 10.0.0.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/0/1.100
description Client Network
encapsulation dot1Q 100
ip address 192.168.1.1 255.255.255.192
ipv6 address 2001:DB8:ACAD:1::1/64
ipv6 dhcp server IPv6-STATEFUL
!
Regards,
12-09-2021 10:48 AM
Hello,
the IPv6 DHCP config is on the physical interface, there is nothing connected on the physical interface, you need to put it under the Vlan 100 subinterface. Also, the DHCP server you are referencing has no address prefix, you need to use the other one that does:
interface GigabitEthernet0/0/1.100
description Client Network
encapsulation dot1Q 100
ip address 192.168.1.1 255.255.255.192
ipv6 address 2001:DB8:ACAD:1::1/64
ipv6 nd other-config-flag
ipv6 address autoconfig
ipv6 enable
ipv6 dhcp server IPV6-STATEFUL
09-17-2022 05:35 AM - edited 09-17-2022 01:36 PM
Hi,
I hope that you have already solved your problem but I would like to inform that where the problem exist in your network topology. I attached here a scenario for your easy understand.
There are more than two options you can correct this without any problem, Switch1-client machines will be assigned IPv6 address by Router1-DHCP Server R1-STATELESS. Under below described all tree options.
1. First Option: (easy one)
You have already connected PC0 to Switch1-F0/6 port and assinged switch port to Vlan 100 (switchport access vlan 100). Remove it (no switchport access vlan 100) or change it to swithport access vlan 1. The PC0 at Switch1 will be received IPv6 address from DHCP server pool now.
2. Second Option: (add new DHCPv6 pool to Vlan 100)
You have to work out creating new IPv6 DHCP pool name for Vlan 100 as exempel (ipv6 dhcp pool Vlan100) use new network Prefix 2001:DB8:ACAD:6::/64 as a address pool and assigned to IPv6 interface address to sub-interface G0/0/1.100 as 2001:DB8:ACAD:2::1/64. It should be changed IPv6 DHCP server name that newly created pool name (ipv6 dhcp poll Vlan100). Then Switch1-port F0/6 client automatically recives IPv6 host address from DHCPv6 server pool.
3. Third Option: (restucturing existing configuration)
Remove all the configuration you have done in (main) interface of G0/0/1 and issue no shutdown command.
no ip address 10.0.0.1 255.255.255.0 <--- //you have not created IPv4 DHCP pool name therefore APIPA address assigned to Vlan1 client (in first option)
no ipv6 address 2001:DB8:ACAD:1::1/64
no ipv6 nd other-config-flag
no ipv6 address autoconfig
no ipv6 dhcp server R1-STATELESS
Then go to sub-interface mode of G0/0/1.100 and issue same commands under sub-interface while existing configuration remain as it is.
ip address 192.168.1.1 255.255.255.192 <--should be this IPv4 address,
ipv6 address 2001:DB8:ACAD:1::1/64
ipv6 nd other-config-flagipv6 address autoconfig <--- //this command not neccesssay at all because you have already assign static IPv6 address 2001:DB8:ACAD:1::1/64
ipv6 dhcp server R1-STATELESS
Thanks for you all. If this solution helpful and solve your problem give me a helpful vote. It will be more valuable for other uses learn things.
Regards/Sisira
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: