Difference between revisions of "DHCPv6 Cisco IOS"
From Teknologisk videncenter
m (New page: This article will be written when the author gets experience using DHCPv6. (Hopefully shortly :-) Category:IPv6) |
m (→DHCPv6 other-config-flag) |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{In progress}} | ||
This article will be written when the author gets experience using DHCPv6. (Hopefully shortly :-) | This article will be written when the author gets experience using DHCPv6. (Hopefully shortly :-) | ||
− | [[Category:IPv6]] | + | {{TOCright}} |
+ | =DHCPv6 multicast= | ||
+ | *Local link DHCPv6 multicast FF02::1:2 | ||
+ | *Entire site DHCPv6 multicast FF05::1:3 | ||
+ | ;NOTE:When using entire site multicast remember to enable ipv6 multicast routing | ||
+ | <source lang=cli> | ||
+ | ipv6 multicast-routing | ||
+ | </source> | ||
+ | |||
+ | =DHCPv6 other-config-flag= | ||
+ | Node will autoconfigure its IPv6 address using [[Stateless Autoconfiguration IPv6 Cisco IOS|Stateless Autoconfiguration]]. The '''ipv6 nd other-config-flag''' teels the node to collect remaining setup from DHCPv6- in this case DNS-server IP and domain-name. | ||
+ | <source lang=cli> | ||
+ | ipv6 unicast-routing | ||
+ | ipv6 cef | ||
+ | ipv6 dhcp pool HOMEBOX | ||
+ | dns-server 2001:4860:4860::8888 | ||
+ | dns-server 2001:4860:4860::8844 | ||
+ | domain-name homebox.local | ||
+ | |||
+ | ! | ||
+ | interface FastEthernet0/1 | ||
+ | ipv6 address 2001:16D8:DD85:B000::1/64 | ||
+ | ipv6 enable | ||
+ | ipv6 nd other-config-flag | ||
+ | ipv6 dhcp server HOMEBOX | ||
+ | ! | ||
+ | </source> | ||
+ | |||
+ | =DHCPv6 Relay agent= | ||
+ | ==On local link== | ||
+ | <source lang=cli> | ||
+ | R1(config)#<input>interface fastethernet 0/0</input> | ||
+ | R1(config-if)#<input>ipv6 dhcp relay destination FE80::250:A2FF:FEBF:A056 fastethernet0/1</input> | ||
+ | </source> | ||
+ | ==To global unicast== | ||
+ | <source lang=cli> | ||
+ | R1(config)#<input>interface fastethernet 0/0</input> | ||
+ | R1(config-if)#<input>ipv6 dhcp relay destination 2001:16D8:DD85:146::2</input> | ||
+ | R1(config-if)#<input>ipv6 dhcp relay source-interface loopback 0</input> | ||
+ | </source> | ||
+ | |||
+ | ==To Multicast All Site Local DHCPv6 servers== | ||
+ | <source lang=cli> | ||
+ | R1(config)#<input>interface fastethernet 0/0</input> | ||
+ | R1(config-if)#<input>ipv6 dhcp relay destination FF05::1:3</input> | ||
+ | </source> | ||
+ | All Routers must have IPv6 Multicast Routing enabled. | ||
+ | <source lang=cli> | ||
+ | PE2(config)#<input>ipv6 multicast-routing</input> | ||
+ | </source> | ||
+ | |||
+ | ==Troubleshooting== | ||
+ | <source lang=cli> | ||
+ | R1#<input>show ipv6 dhcp pool ROOM308</input> | ||
+ | DHCPv6 pool: ROOM308 | ||
+ | DNS server: 2001:16D8:DD85:B000:20C:29FF:FE84:CC63 | ||
+ | Active clients: 0 | ||
+ | R1#<input>terminal monitor</input> | ||
+ | R1#<input>debug ipv6 dhcp database ?</input> | ||
+ | IPv6 DHCP database debugging is on | ||
+ | </source> | ||
+ | *See [http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-dhcp_ps6441_TSD_Products_Configuration_Guide_Chapter.html http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-dhcp_ps6441_TSD_Products_Configuration_Guide_Chapter.html] | ||
+ | *See [http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-dhcp.html#wp1054443 Cisco DHCPv6 configuration guide] | ||
+ | {{Source cli}} | ||
+ | [[Category:IPv6]][[Category:CiscoIPv6]][[Category:IOS]] |
Latest revision as of 12:21, 21 November 2014
This article will be written when the author gets experience using DHCPv6. (Hopefully shortly :-)
DHCPv6 multicast
- Local link DHCPv6 multicast FF02::1:2
- Entire site DHCPv6 multicast FF05::1:3
- NOTE
- When using entire site multicast remember to enable ipv6 multicast routing
ipv6 multicast-routing
DHCPv6 other-config-flag
Node will autoconfigure its IPv6 address using Stateless Autoconfiguration. The ipv6 nd other-config-flag teels the node to collect remaining setup from DHCPv6- in this case DNS-server IP and domain-name.
ipv6 unicast-routing
ipv6 cef
ipv6 dhcp pool HOMEBOX
dns-server 2001:4860:4860::8888
dns-server 2001:4860:4860::8844
domain-name homebox.local
!
interface FastEthernet0/1
ipv6 address 2001:16D8:DD85:B000::1/64
ipv6 enable
ipv6 nd other-config-flag
ipv6 dhcp server HOMEBOX
!
DHCPv6 Relay agent
On local link
R1(config)#<input>interface fastethernet 0/0</input>
R1(config-if)#<input>ipv6 dhcp relay destination FE80::250:A2FF:FEBF:A056 fastethernet0/1</input>
To global unicast
R1(config)#<input>interface fastethernet 0/0</input>
R1(config-if)#<input>ipv6 dhcp relay destination 2001:16D8:DD85:146::2</input>
R1(config-if)#<input>ipv6 dhcp relay source-interface loopback 0</input>
To Multicast All Site Local DHCPv6 servers
R1(config)#<input>interface fastethernet 0/0</input>
R1(config-if)#<input>ipv6 dhcp relay destination FF05::1:3</input>
All Routers must have IPv6 Multicast Routing enabled.
PE2(config)#<input>ipv6 multicast-routing</input>
Troubleshooting
R1#<input>show ipv6 dhcp pool ROOM308</input>
DHCPv6 pool: ROOM308
DNS server: 2001:16D8:DD85:B000:20C:29FF:FE84:CC63
Active clients: 0
R1#<input>terminal monitor</input>
R1#<input>debug ipv6 dhcp database ?</input>
IPv6 DHCP database debugging is on