dhcp enablement

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dhcp enablement

1,649 Views
rak14
Contributor III

Hi,

I'm able to assign static IP address and PING to the S32K148 Board.

To enable the dhcp, In configurator this has been done. But I'm not able to get the IP address.

Any steps need to be followed or any insights to make it work?

And found test_dhcp.c and test_dhcp.h in the C:\NXP\S32DS_ARM_v2.2\S32DS\software\S32SDK_S32K1xx_RTM_3.0.0\middleware\tcpip\lwip\test\unit what is the significance of this?

rak14_0-1682599359951.png

 

  

0 Kudos
Reply
4 Replies

103 Views
sw_ma
Contributor II

Hello, I tried to use DHCP on s32k314 but couldn't get an IP address. The configuration screenshot is shown below. May I ask where else needs to be configured?

sw_ma_4-1765353875990.png

 

sw_ma_0-1765353779152.png

sw_ma_1-1765353811504.png

sw_ma_2-1765353843580.pngsw_ma_3-1765353860206.png

sw_ma_5-1765353890811.png

 

 

 

 

 

0 Kudos
Reply

1,635 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @rak14 

Just to be sure, to be able to get the example working you will need a prior setting of the IP on your PC.

On Windows, this can be done from:

Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings > Network adapter that connects to the board.

Select Internet Protocol Version 4 and click Properties; select Use the following IP address and configure the IP address and subnet mask. Configuration example: IP - 192.168.0.10, subnet mask - 255.255.255.0.

Did you do this process?

 

B.R.

VaneB

0 Kudos
Reply

1,615 Views
rak14
Contributor III

@VaneB Thank you for the quick response.

Yes, I've set the static IP address in PC and in board as well PING command is working fine.

But I need to connect the board to the office network and dhcp should be enabled in board, right?

In configurator I've enabled dhcp by checking it, but still I'm not able see the offered IP address.

How to enable the DHCP in board in brief would be helpful.

0 Kudos
Reply

1,572 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @rak14 

It is not necessary to use DHCP, you only need to know which IPs are available and assign one. You can not assign an IP already used, this could cause a conflict of IP's.

DHCP makes the selection easier because the request automatically to the node an IP available. But to know the automatic IP it is required an IP finder.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1641593%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Edhcp%20enablement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1641593%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%20able%20to%20assign%20static%20IP%20address%20and%20PING%20to%20the%20S32K148%20Board.%3C%2FP%3E%3CP%3ETo%20enable%20the%20dhcp%2C%20In%20configurator%20this%20has%20been%20done.%20But%20I'm%20not%20able%20to%20get%20the%20IP%20address.%3C%2FP%3E%3CP%3EAny%20steps%20need%20to%20be%20followed%20or%20any%20insights%20to%20make%20it%20work%3F%3C%2FP%3E%3CP%3EAnd%20found%20test_dhcp.c%20and%20test_dhcp.h%20in%20the%26nbsp%3BC%3A%5CNXP%5CS32DS_ARM_v2.2%5CS32DS%5Csoftware%5CS32SDK_S32K1xx_RTM_3.0.0%5Cmiddleware%5Ctcpip%5Clwip%5Ctest%5Cunit%20what%20is%20the%20significance%20of%20this%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22rak14_0-1682599359951.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22rak14_0-1682599359951.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F221114i01166F4F1CC61568%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22rak14_0-1682599359951.png%22%20alt%3D%22rak14_0-1682599359951.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2258770%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20dhcp%20enablement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258770%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I%20tried%20to%20use%20DHCP%20on%20s32k314%20but%20couldn't%20get%20an%20IP%20address.%20The%20configuration%20screenshot%20is%20shown%20below.%20May%20I%20ask%20where%20else%20needs%20to%20be%20configured%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sw_ma_4-1765353875990.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sw_ma_4-1765353875990.png%22%20style%3D%22width%3A%20392px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369289i2C455B856136C50F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sw_ma_4-1765353875990.png%22%20alt%3D%22sw_ma_4-1765353875990.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sw_ma_0-1765353779152.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sw_ma_0-1765353779152.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369285i82C62905BBB9FE0D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sw_ma_0-1765353779152.png%22%20alt%3D%22sw_ma_0-1765353779152.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sw_ma_1-1765353811504.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sw_ma_1-1765353811504.png%22%20style%3D%22width%3A%20312px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369286i0318672E1DD4C498%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sw_ma_1-1765353811504.png%22%20alt%3D%22sw_ma_1-1765353811504.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sw_ma_2-1765353843580.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sw_ma_2-1765353843580.png%22%20style%3D%22width%3A%20300px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369287iC18C1849C2CF06F4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sw_ma_2-1765353843580.png%22%20alt%3D%22sw_ma_2-1765353843580.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sw_ma_3-1765353860206.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sw_ma_3-1765353860206.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369288i0D61529EA94C0537%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sw_ma_3-1765353860206.png%22%20alt%3D%22sw_ma_3-1765353860206.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sw_ma_5-1765353890811.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sw_ma_5-1765353890811.png%22%20style%3D%22width%3A%20238px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369290iCF2C99C0FFF3F374%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sw_ma_5-1765353890811.png%22%20alt%3D%22sw_ma_5-1765353890811.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1643229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20dhcp%20enablement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1643229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F195341%22%20target%3D%22_blank%22%3E%40rak14%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20is%20not%20necessary%20to%20use%20DHCP%2C%20you%20only%20need%20to%20know%20which%20IPs%20are%20available%20and%20assign%20one.%20You%20can%20not%20assign%20an%20IP%20already%20used%2C%20this%20could%20cause%20a%20conflict%20of%20IP's.%3C%2FP%3E%0A%3CP%3EDHCP%20makes%20the%20selection%20easier%20because%20the%20request%20automatically%20to%20the%20node%20an%20IP%20available.%20But%20to%20know%20the%20automatic%20IP%20it%20is%20required%20an%20IP%20finder.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1642538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20dhcp%20enablement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1642538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%26nbsp%3BThank%20you%20for%20the%20quick%20response.%3C%2FP%3E%3CP%3EYes%2C%20I've%20set%20the%20static%20IP%20address%20in%20PC%20and%20in%20board%20as%20well%20PING%20command%20is%20working%20fine.%3C%2FP%3E%3CP%3EBut%20I%20need%20to%20connect%20the%20board%20to%20the%20office%20network%20and%20dhcp%20should%20be%20enabled%20in%20board%2C%20right%3F%3C%2FP%3E%3CP%3EIn%20configurator%20I've%20enabled%20dhcp%20by%20checking%20it%2C%20but%20still%20I'm%20not%20able%20see%20the%20offered%20IP%20address.%3C%2FP%3E%3CP%3EHow%20to%20enable%20the%20DHCP%20in%20board%20in%20brief%20would%20be%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1642464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20dhcp%20enablement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1642464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F195341%22%20target%3D%22_blank%22%3E%40rak14%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJust%20to%20be%20sure%2C%20to%20be%20able%20to%20get%20the%20example%20working%20you%20will%20need%20a%20prior%20setting%20of%20the%20IP%20on%20your%20PC.%3C%2FP%3E%0A%3CP%3EOn%20Windows%2C%20this%20can%20be%20done%20from%3A%3C%2FP%3E%0A%3CP%3EControl%20Panel%20%26gt%3B%20Network%20and%20Internet%20%26gt%3B%20Network%20and%20Sharing%20Center%20%26gt%3B%20Change%20adapter%20settings%20%26gt%3B%20Network%20adapter%20that%20connects%20to%20the%20board.%3C%2FP%3E%0A%3CP%3ESelect%20Internet%20Protocol%20Version%204%20and%20click%20Properties%3B%20select%20Use%20the%20following%20IP%20address%20and%20configure%20the%20IP%20address%20and%20subnet%20mask.%20Configuration%20example%3A%20IP%20-%20192.168.0.10%2C%20subnet%20mask%20-%20255.255.255.0.%3C%2FP%3E%0A%3CP%3EDid%20you%20do%20this%20process%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EB.R.%3C%2FP%3E%0A%3CP%3EVaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E