Tiny Core Base > TCB Q&A Forum
Static ip/netmask/broadcast on switch (no router)
maro:
As the appropriatey named "Run Commands during Startup or Shutdown" Wiki-page (and countless threads in this forum) explains: add your commands to '/opt/bootlocal.sh' (or '/opt/bootsync.sh') and ensure that you perform a backup before shutdown.
PS: A bit of searching through the Wiki pages and this forum is kind of expected before raising this sort of questions that one could expect that many others have asked before ...
Evangelos:
I tried in two ways:
1) inserted ifconfig eth0 192.168.0.11 netmask 255.255.255.0 up in to the bootlocal.sh
2) insert /opt/eth0.sh with the ifconfig eth0 192.168.0.11 netmask 255.255.255.0 up
on bootlocal.sh to load on startup.
Everytime I did backup but after the reboot, no eth0!!!only lo with the ifconfic command appear.
then the ifconfig eth0 192.168.0.11 netmask 255.255.255.0 up
worked, but I wanted on startup.
maro:
Are you making sure that there is no DHCP client running when it comes to executing the 'ifconfig' command? What can be found when running the 'network' GUI tool (and saving it's configuration) is that the freshly created '/opt/eth0.sh' script first off kills the 'udhcpc' process. BTW, the same result could be achieved via the 'nodhcp' boot code.
Another thought is that (at least theoretically) the 'eth0' device might not be ready at the time the 'ifconfig' command gets executed. You might find that out by producing a 'dmesg' entry prior to the 'ifconfig' execution (e.g. by inserting echo 'Starting /opt/bootlocal.sh' > /dev/kmsg as the first command in '/opt/bootlocal.sh') and checking what 'eth0' related messages are showing up in the 'dmesg' output after this marker.
EDIT: Correction of a typo
Rich:
--- Quote ---Are you making sure that there is no DHCP client running when it comes to executing the 'ipconfig' command?
--- End quote ---
Didn't you mean ifconfig ?
EDIT: Disregard this post, previous post corrected.
Juanito:
--- Quote from: Evangelos on June 05, 2011, 06:28:00 PM ---p.s. another question, why it says ping: unknown protocol icmp
--- End quote ---
Because /etc/protocols is missing - there's a full version in the iana-etc extension or you can put something smaller yourself.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version