Got it

Need help with DHCP Server and Switch commands

Created: May 1, 2021 07:54:06Latest reply: May 19, 2021 16:31:48 396 12 2 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi,


I am having a DHCP Server in X VLAN and I need to send all DHCP Requests to this DHCP Server from all my other VLANs Y, Z.


Can anyone send me a list of things to do on the switch to work on this?


I am having a windows Server for DHCP Server and All Huawei Swicthes.

Featured Answers

Ok;

  • For your DHCP clients on VLAN 120 you do not need to configure anything special on the Huawei switch - instead you need to configure DHCP Relay on the Alcatel switch. Remember: because DHCP Relay uses unicast to communicate with the DHCP server, there can be multiple segments between the DHCP relay & server - you just need to have unicast IP routing working properly.

  • For DHCP clients on VLAN 20 - I've just realised that the example I sent you had DHCP Relay configured on a router rather than a switch - the only difference is that for a switch we will configure the relay on a Vlan IF rather than a physical interface. Also we'll remove the DHCP sever group to keep it simpler. So on the Huawei switch, just showing the config fragments related to DHCP & VLAN 20:

    vlan batch 20 50 150

    dhcp enable

    interface Vlanif1
     ip address 172.16.0.202 255.255.255.0

    interface Vlanif20
     ip address 10.1.20.1 255.255.255.0
     dhcp select relay
     dhcp relay server-ip 172.16.0.201

    interface Vlanif150
     ip address 192.168.150.1 255.255.255.0

    interface g x/y/z - This is the interface towards your VLAN 20 client
     port link-type access
     port default vlan 20


You may also want to configure DHCP snooping, but that's another story...


View more
  • x
  • convention:

IndianKid
IndianKid Created May 3, 2021 07:08:46 (0) (0)
Thanks, Bro. You are awesome. if anything I will ask you. Appreciate your help and valuable time.  
IndianKid
IndianKid Created May 3, 2021 07:10:27 (0) (0)
AND people like you are really valuable to the community. Thanks for being with us.  

Recommended answer

chenhui
Admin Created May 1, 2021 07:59:15

You can configure the vlan mapping to translate the vlan y or vlan z to vlan x.
View more
  • x
  • convention:

All Answers
You can configure the vlan mapping to translate the vlan y or vlan z to vlan x.
View more
  • x
  • convention:

Please refer to https://support.huawei.com/hedex/hdx.do?lib=EDOC1100175712AEJ1221J&docid=EDOC1100175712&lang=en&v=02&tocLib=EDOC1100175712AEJ1221J&tocV=02&id=EN-US_CONCEPT_0177102938&p=t&fe=1&ui=3&tocURL=resources%252Fdc%252Fdc_cfg_vlanmapping_0004.html&keyword=vlan%2Bmapping
View more
  • x
  • convention:

IndianKid
IndianKid Created May 1, 2021 09:23:49 (0) (0)
so here, all the DHCP requests from other VLAN's(Y,Z) go to my Server which is sitting in VLAN X?  
Hi,
Suppose that the topology is as below:
client--------(vlan y)sw1(vlan x)-------sw2------server
On the sw1,configure the vlan mapping could translat the valn y to vlan x
View more
  • x
  • convention:

IndianKid
IndianKid Created May 2, 2021 08:52:37 (0) (0)
Hi, Chenhui,

can you check my latest reply and i attcahed network diagram.  

Hi @IndianKid


Have you considered configuring DHCP Relay on your intermediate switch? Downstream it acts as a DHCP server, exchanging DHCP messages with the DHCP clients on VLANs Y & Z, but upstream it uses unicast on VLAN X to communicate your DHCP server:

DHCP Relay messaging

Huawei S-Series switches support DHCP Relay - here is a configuration example:

DHCP Relay configuration

View more
  • x
  • convention:

IndianKid
IndianKid Created May 2, 2021 08:52:13 (0) (0)
Hi, can you check my new reply and and provide me list of commands to run on huawei Core. i have attached network diagramm below this replly.  
IndianKid
IndianKid Moderator Author Created May 2, 2021 08:51:25

Ab



Hi,


This is my Setup. can you provide me full list of commands to run on Huaweircore sw to make it work?



View more
  • x
  • convention:

Ok;

  • For your DHCP clients on VLAN 120 you do not need to configure anything special on the Huawei switch - instead you need to configure DHCP Relay on the Alcatel switch. Remember: because DHCP Relay uses unicast to communicate with the DHCP server, there can be multiple segments between the DHCP relay & server - you just need to have unicast IP routing working properly.

  • For DHCP clients on VLAN 20 - I've just realised that the example I sent you had DHCP Relay configured on a router rather than a switch - the only difference is that for a switch we will configure the relay on a Vlan IF rather than a physical interface. Also we'll remove the DHCP sever group to keep it simpler. So on the Huawei switch, just showing the config fragments related to DHCP & VLAN 20:

    vlan batch 20 50 150

    dhcp enable

    interface Vlanif1
     ip address 172.16.0.202 255.255.255.0

    interface Vlanif20
     ip address 10.1.20.1 255.255.255.0
     dhcp select relay
     dhcp relay server-ip 172.16.0.201

    interface Vlanif150
     ip address 192.168.150.1 255.255.255.0

    interface g x/y/z - This is the interface towards your VLAN 20 client
     port link-type access
     port default vlan 20


You may also want to configure DHCP snooping, but that's another story...


View more
  • x
  • convention:

IndianKid
IndianKid Created May 3, 2021 07:08:46 (0) (0)
Thanks, Bro. You are awesome. if anything I will ask you. Appreciate your help and valuable time.  
IndianKid
IndianKid Created May 3, 2021 07:10:27 (0) (0)
AND people like you are really valuable to the community. Thanks for being with us.  
andersoncf1
andersoncf1 MVE Author Created May 19, 2021 16:31:48

Thanks for sharing dear friend Need help with DHCP Server and Switch commands-3936143-1
View more
  • x
  • convention:

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.