Got it

Router DHCP Server, Client, Relay and IPv6 Stateless Autoconfiguration Highlighted

Latest reply: Sep 30, 2018 11:00:57 5911 3 1 0 0

DHCP server

I should write my method of calculating host addresses and broadcast address here and I call it ABCD way. Just take for example.

At first we need to write subnet mask as



C=B/A=128(Get the Integer)(Network address)

D=A+C-1=255(Broadcast address)

Then host addresses will be

DIY, in order to improve myself and I decide to configure it totally by myself.

Here is my configuration:


dhcp enable


dhcp server group 1

 dhcp-server 1 (I don’t know what I’m doing, probably because I’m not familiar with dhcp CLI and this is totally unnecessary)


ip pool 1


network mask //Specify the range of IP addresses that can be dynamically allocated from the global IP address pool.(I just don’t know this kind of thing, so I don’t know how to allocate ip pool to specific network)                                         

 excluded-ip-address //Specify the IP address ( that cannot be automatically allocated from an IP address pool. ( In order to avoid IP address conflict, I didn’t aware that)

 excluded-ip-address //Specify the IP address ( that cannot be automatically allocated from an IP address pool.

 lease day 10 hour 12 minute 0





interface GigabitEthernet0/0/0

 ip address

 dhcp select interface (dhcp select global, the command is used to select global pool, there is no need for me to use dhcp server of specific interface)


interface GigabitEthernet0/0/1

 ip address

 dhcp select interface

 dhcp server lease day 5 hour 0 minute 0

 dhcp server dns-list

 dhcp server domain-name

In a word, use global pool with specific network, aware excluded-ip-address, which is what I learn from standard answer. At the same time, using dhcp server of specific interface is an alternate way and I can still achieve that.


DHCP client

I don’t know the command of interface: IP address dhcp-alloc. This one is easy, so I don't mention it here.

DHCP Relay

Client1 can’t get IP address from RouterB. I use a PC to connect with GE 0/0/1 of Router B, but it can’t get IP address, so I need to check the DHCP server function of Router B.

It turns out that I forget to configure Ethernet 0/0/0 port hybrid pvid vlan 10. Without the command, the client1 can’t ping vlanif 10.

Still it isn’t working. I find it’s caused by routing. So make sure every interface is reachable from other interfaces is really important in the lab. The best way is to configure default route like default gateway address.

IPv6 Auto

In this lab, I use my own computer instead for the PC in simulator isn't good enough.  (Cloud to connect my ethernet adaptor. )

There're four IPv6 addresses in total.

1) Automatically configured global unicast IPv6 address, which has the same prefix as the IPv6 address of GE0/0/0 (Stateless Autoconfiguration with RA)

(2) EUI-64 address generated using a MAC address fc01+link-local

(3) Link-local address (only for same local link with prefix FE80::/10+Interface ID. What’s interface ID? EUI-64. My PC’s MAC address is 78:45:C4:0F:66:6C, 78 equals 0111 1000, which needs to change to 0111 1010(7a)(The seventh bit needs to change from 0 to 1), so we get 7A:45:C4:FF:FE:0F:66:6C, finally FE80:: 7A:45:C4:FF:FE:0F:66:6C.

 (4) Automatically generated default gateway address, which is the link-local IPv6 address of the interface directly connecting the PC to the router(The router’s GE 0/0/0’s MAC address is 00e0:fc4e:286e, fe80+02e0:fcfffe4e:286e


This article contains more resources

You need to log in to download or view. No account? Register

  • x
  • convention:

Created Dec 25, 2014 02:22:11

Thank you.
View more
  • x
  • convention:

Created Dec 27, 2014 05:09:04

Reply 2 #

You're welcome.O(∩_∩)O~
View more
  • x
  • convention:

Author Created Sep 30, 2018 11:00:57

View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.