Tiny Core Base > TCB Q&A Forum

[SOLVED] Ip address is not permanent?

<< < (3/3)

gerald_clark:
Your echo stuff > /etc/hosts overwrites the file.
Just include

echo 192.168.10.1 pc1 >> /etc/hosts
echo 192.168.10.2 pc2 >> /etc/hosts

And leave the original contents alone.
Note the use of >> instead of >.

Unless you have configured a nameserver on this machine, you cannot have it be its own nameserver.

Why are you manually setting the IP address and then running /opt/eth0 ?

plug:
ok, i deleted /opt/eth0 and it is the same for the script.

Sorry, i don't understand the meaning of '>>' Can you explain to me better on symbol, gerald?

 

gerald_clark:
It is very basic.
http://linux.die.net/man/1/ash  lookup redirections

Also Linux basics
http://rute.2038bug.com/index.html.gz

plug:
in the meantime, I solved.
The PCs are seen in the network with the use of ping.

thanks gerald

Navigation

[0] Message Index

[*] Previous page

Go to full version