Got it

Configuration DHCP relay on the OLT

Latest reply: Oct 16, 2021 09:23:34 771 21 13 0 0


Hello, everyone!



Today, I will show you basic commands for configuration DHCP relay on the OLT. There are a few commands for configuration.


In this example, we have one server group 1, this group contains one DHCP server. It works in active mode, and its IP address is X.X.80.10. The max response time is 20 s, and max count of response timeout is 10. For services HSI, VoIP, IPTV and MNG, we use different VLANs (HSI – vlan100, VoIP – vlan200, IPTV – vlan300, and MNG – vlan400). And we have defined VLAN interfaces for all of these services. And the end, we have to bind server group 1 to users in VLANs (with the IP address of the L3 interface).



1. Command for configuring the DHCP forwarding mode:


TEST(config)#dhcp mode layer-3 standard


Configuration mode can be:

  • Layer-2 mode is used by OLT for transparently transmission packets and it doesn`t process these packets.

  • Layer-3 is used for forwarding packets. This mode can be:

    • mac range – in this mode, DHCP server selects according MAC range,

    • option60 – DHCP server selects according option60 domain, and

    • standard – DHCP server selects according to interface.


We choose layer-3 standard, because we want to forward packets according interface.



2. Command for setting network parameters of DHCP server group:


TEST(config)#dhcp-server1 ipX.X.80.10


The first part of command, dhcp-server, is a command for creating DHCP server group.


This number 1 in command is the number of DHCP server groups. This number can be from 0 to 19. And after that, we have to put IP address of this DHCP server group.


In our case, we have one DHCP server, and because of that, we put the number 1 for DHCP server group and one IP address for this DHCP server. This IP address must be the same as the IP address of the DHCP server on the network side.



3. Command for setting the working mode of the DHCP server


TEST(config)#dhcp server mode backup 20 10


There are two modes:

  • backup. With this mode, the system can send packets from users only to the current active DHCP server.

  • shareload. In this mode, the system can send packets from users to both the active and standby servers.


Number 20 in this command indicates a maximum response time, it is 20s. The next number is 10 and it is the maximum count of response timeout.



4. Commands for defining VLAN interfaces and binding for server group


TEST(config)#interface vlanif X

TEST(config-if-vlanifX)#ip address X.X.1.2 X.X.255.0

TEST(config-if-vlanifX)#dhcp-server 1


With the last commands, we defined VLAN interfaces for all of services – HSI, VoIP, IPTV and MNG. After that, we have to bind server group 1 to users in VLANs.


After that, we have to configure DHCPoption82, because DHCP protocol is not secure. I will explain DHCPoption82 in one of the next articles.



Thank you!


Diego.Silva
MVE Author Created Aug 17, 2021 17:54:23

Very usefull!
View more
  • x
  • convention:

Vlada85
Vlada85 Created Aug 19, 2021 16:31:09 (0) (0)
Thank you!  
andersoncf1
MVE Author Created Aug 17, 2021 18:56:48

Well done. Thanks for sharing
View more
  • x
  • convention:

Vlada85
Vlada85 Created Aug 19, 2021 16:31:00 (0) (0)
welcome!  
Thanks dear.
View more
  • x
  • convention:

Vlada85
Vlada85 Created Aug 19, 2021 16:30:49 (0) (0)
welcome!  
Great, thanks for ssharing
View more
  • x
  • convention:

Good Share
View more
  • x
  • convention:

Vlada85
Vlada85 Created Aug 27, 2021 19:29:32 (0) (0)
thank you!  
Good post, thanks
View more
  • x
  • convention:

Sara_Obaid
Moderator Created Aug 25, 2021 11:39:17

Good Post. A nice summary on the basic commands for configuration of DHCP relay on OLT!
View more
  • x
  • convention:

Vlada85
Vlada85 Created Aug 27, 2021 19:29:19 (0) (0)
thank you!  
Nice post. Keep up the good work.
View more
  • x
  • convention:

Kevin_Thomas
Kevin_Thomas Created Aug 26, 2021 05:01:11 (0) (0)
 
Vlada85
Vlada85 Created Aug 27, 2021 19:29:10 (0) (0)
thank you!  
Thanks for sharing
View more
  • x
  • convention:

12
Back to list

Comment

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

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

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.