Dhcpv4 and Dhcpv6 Services
Dhcpv4 and Dhcpv6 Services
Dhcpv4 and Dhcpv6 Services
DHCPV6 Services
for
CCNA Students
By
Eng. Abeer Hosni
https://www.facebook.com/groups/1720572871550995/
Lab 1 (DHCP Service):
DHCP(dhcp-config)#default-router 192.168.0.1
DHCP(dhcp-config)#domain-name cita.net
DHCP(dhcp-config)#lease 2
DHCP(dhcp-config)#int f0/0
DHCP(config-if)#no shut
Notice that the renew process is just pass through the Request and Ack processes only.
If you wishes to release the lease between the client and the server use the cmd command:
Ipconfig /release
Lab 2 ( IP helper-address ):
DHCP(dhcp-config)#default-router 192.168.0.1
DHCP(dhcp-config)#dns-server 4.2.2.2
DHCP(dhcp-config)#domain-name cita.net
DHCP(dhcp-config)#default-router 10.0.0.1
DHCP(dhcp-config)#dns-server 4.2.2.2
DHCP(dhcp-config)#domain-name cita.net
DHCP(dhcp-config)#int f0/0
DHCP(config-if)#no shut
Router(config)#int f0/0
Router(config-if)#no shut
Router(config-if)#int f0/1
Router(config-if)#no shut
The DHCP server must have a route back to the 192.168.0.0 network:
Scenario 1) Configure a static route on the DHCP router server to reach the
192.168.0.0 network.
DHCP(config)#ip route 192.168.0.0 255.255.255.0 10.0.0.1
Scenario 2) Configure the DHCP router as a normal host.
DHCP(config)#no ip route 192.168.0.0 255.255.255.0 10.0.0.1
DHCP(config)#no ip routing
Hardware address/
User name
Pool LAN1 :
Leased addresses :1
Pool LAN2 :
Lab 3 (DHCPV6):
The dynamic assignment of IPv6 global unicast addresses can be configured in three ways:
DHCPV6#debug ipv6 nd
DHCPV6#config t
DHCPV6(config)#int f0/0
*Mar 1 00:06:33.959: ICMPv6-ND: Prefix Information change for 2001::/64, 0x0 -> 0xE0
DHCPV6(config-if)#no shut
*Mar 1 00:06:41.603: ICMPv6-ND: Sending NS for FE80::C002:7FF:FECC:0 on FastEthernet0/0
DHCPV6(config-if)#exit
DHCPV6(config)#ipv6 unicast-routing
Client1(config)#int f0/0
Client1(config-if)#no shut
FF02::1
FF02::1:FFCC:0
DHCPV6(config-dhcp)#domain-name cisco.com
DHCPV6(config-dhcp)#dns-server 2001::4:2:2:2
DHCPV6(config-dhcp)#int f0/0
DHCPV6(config-if)#ipv6 nd other-config-flag
FF02::1
FF02::1:FFCC:0
MTU is 1500 bytes
DUID: 00030001C20207CC0000
Preference: 0
Configuration parameters:
Rapid-Commit: disabled
Client1(config)#ip domain-lookup
3- Stateful DHCPv6:
The IOS I’m using doesn’t support stateless DHCPv6, but here is the configuration any
way.
DHCPV6(config)#ipv6 dhcp pool LAN
DHCPV6(config)#int f0/0
DHCPV6(config-if)#ipv6 nd managed-config-flag
Best Wishes
Abeer