-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent network setup when using DHCP static IP #17
Comments
Same issue when no sdcard is present but configuration still exists in /etc/tpi.cfg.
Everything works fine (correct nework setup) when configuration is cleared and not sdcard/tpi.ini present
|
Your ini only sets mac but not ip
The static ip will first use It is recommended to set the static ip as the router network segment, so that the network can be accessed. you should set
|
Hello, wenyi0421 and nerocide I also happend this issue using only MAC address (without IP address) in tpi.ini. There is a workaround for this issue. Simply put, wite MAC address into /etc/network/interfaces. But, I hope to fix this issue. Thanks, ASAI |
Thanks @wenyi0421 & @ShigeakiAsai for your suggestions. @wenyi0421 indeed i didn't set ip= in tpi.ini on purpose, thinking the forced mac= in tpi.ini would suffise be applied, then a dhcp request would be made. New try, after specifying the ip= in tpi.ini
It appears 2 dhcp requests are made, one before mounting sdcartd, an other after. serial output
But at the end ip comes from dhcp. NIC's still not static.
This is not problematic, and probably less invasive than @ShigeakiAsai workarround, might just need to be specified somewhere in documentation. @ShigeakiAsai i'll try your workarround. I thought mac= in tpi.ini would manage it already. |
Hello, @nerocide and @wenyi0421 I have a suggestion temporary fix for this issue. tpi.ini file is used in \etc\setStaticNet.sh. In this script, MAC address is replaced in Line 70-76.
It looks like DHCP client is not updated, only MAC address is changed. But, I would like to IP address is controlled by DHCP server. My suggestion is :
So, DHCP clent is updated when MAC address is valid and IP address is not valid. This modification works in my environment. How is it? Thanks, ASAI |
ok i will fix it |
Hello, @wenyi0421 I want to replace my temporary fix because 2 udhcpc process remaind on system. from: When udhcpc receive USR1 signal, udhcpc renew IP address. Replaced code is here
Thanks, ASAI |
If you execute /etc/setStaticNet.sh 5 times (i know this should never happen), you'll get 6 processes
If number of processes matters, same change you provide should be applied line 83?
This way only first process is asking for the new IP.
|
Hello @nerocide @wenyi0421
Thank you for your information! My suggestion was "temporary fix" when just only using MAC address in tpi.ini. ...But there was another issue, I found. I will report this issue. |
When using static reserved IP on DHCP with a defined MAC (in tpi.ini on sdCard) for BMC.
For example i want 192.164.1.41 for f6:5a:84:cc:a0:94
Looks like BMC's NIC starts up with a random MAC then applies configuration found in tpi.ini
Serial console output
MAC is correct but network configuration isn't setup properly. This prevents BMC to reach the Internet.
Workarround for correct network setup, (also ensure dhcpc is working fine after bootup).
The text was updated successfully, but these errors were encountered: