Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: 522690 on July 18, 2011, 09:03:07 AM
-
Hi, all.
Sorry for supid question
Where i can find network interfaces config file?
-
Hi:
It is in /opt
I edit it once in a while to change settings.
But when you use the panel you can configure and it will
automatically updated.
-
beerstein, you mean bootlocal.sh?
-
If you mean the debian specific file, there is none.
-
First, there is the nodhcp bootcode, which you have to use if you want to bring up your interfaces with some kind of network manager you like.
There is also the network app which lets you set up your ethernet interface in a graphical environment.
-
Hi 522690
If you open up control panel and click on the Network button you will be able to set your network
parameters. When you exit the network application it will create a script in the /opt directory, in
my case it created /opt/eth0.sh. It also adds an entry to /opt/bootlocal.sh to call that script.
-
beerstein, you mean bootlocal.sh?
the script acually is eth0.sh and it is menioned (listed) in bootlocal.sh
to keep the information inside the eth0.sh
I assume that if you have a second NIC you might have eth1.sh and so on...
522690 did you try to configure via cammandline using sudo ifconfig?
and then check the eth0.sh file
-
Hi beerstein
522690 did you try to configure via cammandline using sudo ifconfig?
and then check the eth0.sh file
If you are implying that ifconfig modifies eth0.sh, it does not.
-
sorry I thought:
$ ifconfig eth0 192.168.1.1 255.255.255.0
from the commandline would set the IP for eth0
So where does TC store the IP ?
Thank you
-
The IP is not "Stored" anywhere. It is just set in the driver/interface.
-
in tc and mc the dhcp-service connects to the network automatically, in most cases.
if i want to connect manually,
i use
$ sudo ifconfig eth0 192.168.1.1 up
to intialize the interface eth0
and
$ sudo ifconfig
to check the state of all my interfaces...
-
Hi beerstein
Yes, ifconfig eth0 192.168.1.1 255.255.255.0 at the command line will set the IP address to
192.168.1.1 for the current session. If you want that IP address to survive between reboots, that
is what the /opt/eth0.sh script is for. So if I understand your question, when you want to maintain
a constant IP address, it is stored in /opt/eth0.sh as part of the ifconfig command in that file.